LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Cache DNS server and zone file (https://www.linuxquestions.org/questions/linux-networking-3/cache-dns-server-and-zone-file-365740/)

DanielTan 09-21-2005 06:48 PM

Cache DNS server and zone file
 
If i want to setup a caching DND server, do i need to create zone ? Thanks

Rgds
Daniel

linuxmanju 09-22-2005 11:55 AM

Nope.. If u are creating a caching only name server u don need to create a zone entry.. In most distros u put ur ISP's DNS servers in /etc/resolv.conf and start named . And it will start working as a caching only name server.

DanielTan 09-25-2005 05:27 AM

I get this rndc error " rndc: connect failed: connection refused. Any idea ? rndc.key ,rndc.conf and other files all have inside the /chroot/etc and /chroot/var/named/ . Named service can be started but not stopped.

Rgds
Daniel



Quote:

Originally posted by linuxmanju
Nope.. If u are creating a caching only name server u don need to create a zone entry.. In most distros u put ur ISP's DNS servers in /etc/resolv.conf and start named . And it will start working as a caching only name server.

DanielTan 09-25-2005 07:10 PM

Hi, i find out that i required to create rndc key and configure named.conf to get the rndc error away. Pls advise on how to do that ? Thanks .

Rgds
Daniel

Quote:

Originally posted by linuxmanju
Nope.. If u are creating a caching only name server u don need to create a zone entry.. In most distros u put ur ISP's DNS servers in /etc/resolv.conf and start named . And it will start working as a caching only name server.

scowles 09-26-2005 06:15 AM

Quote:

Originally posted by linuxmanju
Nope.. If u are creating a caching only name server u don need to create a zone entry.. In most distros u put ur ISP's DNS servers in /etc/resolv.conf and start named . And it will start working as a caching only name server.
Are you possibly talking about configuring "forwarders"? If you just put your ISP's nameservers in resolv.conf, then the local resolver libs of that system will never query the caching name server you just setup. Other hosts on your LAN would also need to have their resolver libs configured to use this caching only servers IP address.

FWIW: On my system running named, I put localhost followed by one of my ISP's name servers in resolv.conf. ie.
Code:

# cat /etc/resolv.conf
search mydomain.com
nameserver 127.0.0.1
nameserver x.x.x.x


scowles 09-26-2005 06:17 AM

Quote:

Originally posted by DanielTan
Hi, i find out that i required to create rndc key and configure named.conf to get the rndc error away. Pls advise on how to do that ? Thanks .
Please see: man rndc-confgen

In particular, the -a command line option.

DanielTan 09-26-2005 10:32 AM

Eve after i use the command to generate key , it still have the RNDC connection refused error. I copy the key to named.conf and rndc.conf . Anything i missed ? Pls help. Thanks

Regards
Daniel



Quote:

Originally posted by scowles
Please see: man rndc-confgen

In particular, the -a command line option.


DanielTan 09-26-2005 11:00 AM

No i'm talking abt cache server. i discovered that each time i put in 127.0.0.1 , after running named again it will loss that line. Also when shutdown system, named service will have some libcrypto error messages. Pls advise.

Regards
Daniel




Quote:

Originally posted by scowles
Are you possibly talking about configuring "forwarders"? If you just put your ISP's nameservers in resolv.conf, then the local resolver libs of that system will never query the caching name server you just setup. Other hosts on your LAN would also need to have their resolver libs configured to use this caching only servers IP address.

FWIW: On my system running named, I put localhost followed by one of my ISP's name servers in resolv.conf. ie.
Code:

# cat /etc/resolv.conf
search mydomain.com
nameserver 127.0.0.1
nameserver x.x.x.x




All times are GMT -5. The time now is 03:05 AM.