LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-21-2005, 06:48 PM   #1
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Rep: Reputation: 30
Cache DNS server and zone file


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

Rgds
Daniel
 
Old 09-22-2005, 11:55 AM   #2
linuxmanju
Member
 
Registered: Sep 2003
Location: India
Distribution: Debian
Posts: 50

Rep: Reputation: 15
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.
 
Old 09-25-2005, 05:27 AM   #3
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
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.
 
Old 09-25-2005, 07:10 PM   #4
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
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.
 
Old 09-26-2005, 06:15 AM   #5
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
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
 
Old 09-26-2005, 06:17 AM   #6
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
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.
 
Old 09-26-2005, 10:32 AM   #7
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
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.
 
Old 09-26-2005, 11:00 AM   #8
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS zone file question DanielTan Linux - General 3 09-21-2005 09:52 PM
Need help with DNS zone file please:-) TippyToes Linux - Networking 5 04-28-2004 05:32 PM
DNS Zone file config for mail server viniosity Linux - Software 4 09-16-2003 03:59 PM
BIND DNS Problems with Zone file and Config Init-0 Linux - Networking 6 07-30-2003 04:58 PM
RFC - DNS - what is required in a zone file Bluesuperman General 0 02-25-2003 05:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration