Help - Search - Members - Calendar
Full Version: Bind9 Configuration From Console
Linuxhelp > Support > Technical Support
Robert83
Hi,

So I've got this WBE 3.0 EL , Squid installed, and BIND9 installed, I've read that I need a /etc/named.conf file, but I've got none, can anyone help me , on how to set up BIND9 to run?

my ISP's DNS server is 217.26.64.130


Sincerely
Robert B
hughesjr
You will only have a named.conf if you have the machine setup as DNS server ... if you install

bind-utils-9.2.2-21
bind-9.2.2-21


it will default as a caching only DNS server (it can find names, but doesn't control any zones except localhost and 0.0.127.in-addr.arpa)

But only if you want the machine to be a DNS server....

If this machine has GUI ... there is a program called:

redhat-config-bind-2.0.0-14

that is good to setup DNS zones as well.

Once you have it setup as a Caching only DNS, you can point all your local boxes to it (for their DNS server, with your ISPs as a secondary DNS server) which will reduce network traffic and speed up name lookups.....
hughesjr
make sure to start /etc/init.d/named on startup if you want to have a caching DNS server.
Robert83
Hi,

I don't have a gui installed on that computer, so how can I do that DNS configuration in console?


Sincerely
Robert B
hughesjr
Oppps, i forgot to tell you to install:

caching-nameserver-7.2-7
--------------------------------------------------
yum install caching-nameserver

should do the trick.....
Robert83
Hi,

Thank you for you're help,
now it reports that it has 4 zones, etc...and it's up and running.

Just one more question, now I've got a /etc/named.conf, but I wonder can I leave it like that? will it allow in default other computers in my lan to use Bind on this proxy/name server ?


Sincerely
Robert B
hughesjr
I think that you can leave it alone ... here is what my named.conf looks like:

CODE
// a caching only nameserver config
//
controls {
       inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
       type hint;
       file "named.ca";
};
                                                                               
zone "localhost" IN {
       type master;
       file "localhost.zone";
       allow-update { none; };
};
                                                                               
zone "0.0.127.in-addr.arpa" IN {
       type master;
       file "named.local";
       allow-update { none; };
};
                                                                               
include "/etc/rndc.key";


You can set the local machines to use this as DNS (if they are currently using the ISP servers as DNS).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.