This is a question about DNS subdomain.
The DNS server for the parent DNS domain is dns1.ours.com.
The DNS server for the child/sub DNS domain is bee.child.ours.com.
Configurations on dns1.ours.com:
File: db.ours.com�F
@IN SOA dns1.ours.com. postmaster.ours.com. (
10051215 ; sn
86400 ;refresh
7100 ;retry
777600 ;expire
126000 ) ;min
@ IN NS dns1.ours.com.
dns1 IN A 210.x.x.15
�c
[color=Blue]child.ours.com. IN NS bee.child.ours.com.
bee.child.ours.com. IN A 210.x.x.10[color]
I did not changed anything in named.conf.
Configurations on bee.child.ours.com:
File db.child.ours.com:
@ IN SOA bee.child.ours.com. test.child.ours.com (
10051215 ; sn
86400 ;refresh
7100 ;retry
777600 ;expire
126000 ) ;min
@ IN NS bee.child.ours.com.
bee IN A 210.x.x.10
test IN A 210.x.x.x
File named.conf:
options {
directory "/var/named";
};
zone "." {
type hint;
file "master/db.cache";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "master/db.0.0.127";
};
zone "x.x.210.in-addr.arpa" {
type master;
file "master/db.child.ours.com.rev";
};
zone "child.ours.com" {
type master;
file "master/db.child.ours.com";
};
#nslookup
Default Server: 210.x.x.10
Address: 210.x.x.10
// bee.child.ours.com: the DNS server for the child/sub DNS domain: child.ours.com
www.ours.com
Server: 210.x.x.10
Address: 210.x.x.10
*** localhost can't find www.ours.com: No response from server
//failed to resolve A records in the parent domain, but can resolve A records in its own domain and other domains on the Internet.
set type=ns
ours.com
Server: 210.x.x.10
Address: 210.x.x.10
Non-authoritative answer:
ours.com nameserver = dns1.ours.com
Authoritative answers can be found from:
dns1.ours.com internet address = 210.x.x.15
//find the DNS server for the parent domain
> server 210.x.x.15
// dns1.ours.com: the DNS server for the parent DNS domain: ours.com
Default Server: dns1.ours.com
Address: 210.x.x.15
test.child.ours.com
Server: dns1.ours.com
Address: 210.x.x.15
*** dns1.ours.com can't find test.child.ours.com: No response from server
//failed to resolve A records in the child domain, but can resolve A records in its own domain and other domains on the Internet.
set type=ns
child.ours.com
Server: dns1.ours.com
Address: 210.x.x.15
Non-authoritative answer:
child.ours.com nameserver = bee.child.ours.com
Authoritative answers can be found from:
bee.child.ours.com internet address = 210.x.x.10
//find the DNS server for the child domain
> server 210.x.x.100
// a public DNS server on the Internet
Default Server: [210.x.x.100]
Address: 210.x.x.100
set type=a
www.ours.com
Server: [210.x.x.100]
Address: 210.x.x.100
Non-authoritative answer:
Name: www.ours.com
Address: 210.x.x.72
//find the A record in the parent domain
test.child.ours.com
Server: [210.x.x.100]
Address: 210.x.x.100
Non-authoritative answer:
Name: test.child.ours.com
Address: 210.x.x.x
//find the A record in the child domain
I wonder why. It is BIND v8.2.2.
Thanks.