Operating System - Linux
1827855 Members
1666 Online
109969 Solutions
New Discussion

how to set a root DNS server in BIND version 9.X?

 

how to set a root DNS server in BIND version 9.X?

Hi,
i do not know how to set the root DNS server, which will redirect the query to the (world wide) root DNS server once the query out of the range what local server maintain. before, i can set it in the /var/named/root.cache, however, the file seems disappear.

my version is RH7.3
thanks
Frederick van targero
frederick
2 REPLIES 2
Kodjo Agbenu
Honored Contributor

Re: how to set a root DNS server in BIND version 9.X?

Hello Frederick,

I will re-formulate your question, just to make sure I'm clear about what you are looking for.

You want your DNS server to be "master" (primary) for your local domain addresses, and to forward other resolution requests to Internet DNS servers.

Here is the configuration file I can suggest to you :

options {
directory "/var/named";
forward first;
forwarders {
your_isp_dns1;
hour_isp_dns2;
...
};
};

zone "." IN {
type hint;
file "root.cache";
};

zone "localhost" IN {
type master;
file "localhost.zone";
};

zone "your-primary-zone" IN {
type master;
file "your-primary-zone-file";
};


zone "your-primary-zone-reverse" IN {
type master;
file "your-primary-zone-reverse-file";
};


REMARKS :

* the "root.cache" file is the one standardized and published at ftp://rs.internic.net/domain/named.root

* the "localhost.zone" file is the one used to resolve loopback address 127.0.0.1.


If you need further information, please post your current named.conf file.

Good luck.

Kodjo
Learn and explain...

Re: how to set a root DNS server in BIND version 9.X?

thanks kodjo,i got it

frederick
frederick