Solved

Setting up a Caching Only DNS Server on CentOS 5.5

Posted on 2010-09-14
6
961 Views
Last Modified: 2012-05-10
We have the need to set up a CentOS 5.5 server to act as a DNS Caching server to do lookups.  This server will not provide any zone hosting.  It is simply so that we do not have to rely on our ISPs DNS servers for our client systems.   We would however want to make sure that only that clients within our IP ranges are allowed to use the server for DNS lookups.

Does anyone have an easy HowTo?  I have searched and foudn some references but I just cant seem to get things working in the most basic of scenarios.
0
Comment
Question by:BladesAway
  • 2
6 Comments
 
LVL 34

Accepted Solution

by:
Seth Simmons earned 300 total points
ID: 33678425
http://www.adminkernel.com/linux/bind-dns-server-installation-and-configuration-on-centos-5-3

You could write iptables rules for allowing only certain hosts on udp 53
0
 

Author Comment

by:BladesAway
ID: 33678496
That breings me right back to one of the issues that I was having, which is the mixxing named.rfc1912.zones file.  I was able to find that in the /usr/share/doc/bind-9.3.6/sample/etc/ and I moved it to /var/named/chroot/etc.  They when I start named I get what is displayed below.  I guess I could just locate and copy each of these files but I'm pretty sure I tried that last night and just got deeper into the weeds.

[root@centos etc]# service named start
Starting named:
Error in named configuration:
zone localdomain/IN: loading master file localdomain.zone: file not found
_default/localdomain/IN: file not found
zone localhost/IN: loading master file localhost.zone: file not found
_default/localhost/IN: file not found
zone 0.0.127.in-addr.arpa/IN: loading master file named.local: file not found
_default/0.0.127.in-addr.arpa/IN: file not found
zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loading master file named.ip6.local: file not found
_default/0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: file not found
zone 255.in-addr.arpa/IN: loading master file named.broadcast: file not found
_default/255.in-addr.arpa/IN: file not found
zone 0.in-addr.arpa/IN: loading master file named.zero: file not found
_default/0.in-addr.arpa/IN: file not found
[FAILED]
0
 
LVL 76

Assisted Solution

by:arnold
arnold earned 200 total points
ID: 33678712
post the named.conf
In chrooted setup which is what you seems to have the files should be in /var/name/chroot/var/named/.



0
 
LVL 76

Expert Comment

by:arnold
ID: 34815050
The link http:#33678425 resolves/provides a user a guide to setup a caching DNS.

The user seems to have added entries to /etc/named.conf but did not create the corresponding zone files nor responded to my followup to see whether the asker somehow altered where named would be looking for these files.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I will assume you are running a non-server version of some sort of Windows throughout this article. There are many flavors of Windows since Windows Server 2000 - 2008, XP Home & Pro, Vista Home & Pro, and Windows 7 Starter, Home, Pro, Ultimate, etc.…
I wrote this article to explain some important DNS concepts that should be known to avoid some typical configuration errors I often see in forums. I assume that what is described here is the typical behavior of Microsoft DNS client. I don't know …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now