question about Subdomain query to Domain

Truong Tan Son sontt at fcv.fujitsu.com
Fri Dec 2 01:03:58 UTC 2005


Dear Sir,

Following you teach, I insert root hints to yy.yy.yy.20 (dns1.sub.domain.com) to query to parent "domain.com".

** /etc/named.conf:
options {
        directory "/var/named";
};
zone "." IN {
        type hint;
         ^^^^^^^     
        file "/var/named/root.hint";
            ^^^^^^^^^^^^^^^^^
};
zone "sub.domain.com" IN {
        type master;
        file "/var/named/sub.domain.com.db";
        allow-update { any;};
};

** /var/named/root.hint
.                               99999    IN     NS    root.domain.com.
root.domain.com.     99999    IN     A       xx.xx.xx.10


Now, it works.Subdomain can query to parent.


It that right ?


regards,
--


>
>My server currently is running Bind 9, and have trouble to query to root domain server.
>
>domain name:            domain.com
>server-ip                   root.domain.com (xx.xx.xx.10)
>
>subdomain name:     sub.domain.com
>sub-server-ip:          dns1.sub.domain.com (yy.yy.yy.20)
>
>
>I setting on   yy.yy.yy.20 :
>
>#/etc/named.conf
>....
>zone "sub.domain.com" IN {
>        type master;
>        file "/var/named/sub.domain.com.db";
>        allow-transfer { xx.xx.xx.10;};
>};
>
>#/var/named/sub.domain.com.db:
>....
>                                  IN      NS      dns1.sub.domain.com.
>                                  IN      NS      root.domain.com.
>root.domain.com.       IN      A         xx.xx.xx.10
>
>mail                            IN      A        yy.yy.yy.ab
>www                          IN      A        yy.yy.yy.cd
>
>
>DNS clients using yy.yy.yy.20 (dns1.sub.domain.com) can not query  records of  xx.xx.xx.10 (root.domain.com).
>
>Do I have missing on config file above ?
>
How is the .20 server set up to resolve queries outside of the 
sub.domain.com zone? Forwarding, root hints, stub zone(s), what? Perhaps 
you should have shown us your entire config, so we wouldn't have to go 
around guessing at such things...

- Kevin






More information about the bind-users mailing list