Results 1 to 6 of 6
I am having a problem getting a Fedora Redhat box to service DNS as a caching-DNS server. I have the named service up and running, however it is not responding ...
- 08-08-2007 #1Just Joined!
- Join Date
- Aug 2007
- Location
- Pittsburgh
- Posts
- 2
Caching DNS problem
I am having a problem getting a Fedora Redhat box to service DNS as a caching-DNS server. I have the named service up and running, however it is not responding to queries from other machines. I disabled the firewall to ensure I am not blocking port 53.
Any suggestions?
Thanks
- 08-09-2007 #2
Hey,
What queries you are firing on other machines? What is the output of those queries?
Can you post them both? Also post the output of
#dig domainname
#nslookup domainnameRegards,
who |grep -i blonde |
date; cd~; unzip; touch;
strip; finger; mount; gasp;
yes; uptime; umount;
sleep

Newbie clicks
http://www.linuxforums.org/forum/lin...ead-first.html
- 08-09-2007 #3Just Joined!
- Join Date
- Dec 2006
- Posts
- 24
You could check that BIND (I assume you're using BIND) is listening on all interfaces (perhaps it's just listening on loopback), and don't forget to check /var/log/messages
- 08-13-2007 #4Just Joined!
- Join Date
- Aug 2007
- Location
- Pittsburgh
- Posts
- 2
Figured it out
Hey guys thanks for the help. After playing around a bit more, I got it to work. However it may not be the ideal configuration. I changed several options in named.conf from localhost to "any". That did the trick. I also tried to serve some local name resolution, however that didn't work, so I commented it out below.
options {
listen-on port 53 { 127.0.0.1; };
listen-on port 53 { 10.161.205.100; };
listen-on port 53 { 192.168.168.80; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
// query-source port 53;
// query-source-v6 port 53;
allow-query { any; };
recursion yes;
version "0";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
match-clients { any; };
match-destinations { any; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
// view "external" {
// match-clients { !localhosts; any; };
//recursion yes;
//allow-transfer { dns_slaves; };
//zone "example.com" {
// type master;
// file "example.com.zone";
// };
//};
zone "." {
type hint;
file "/var/named/root.hints";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "/var/named/127.0.0";
};
- 08-13-2007 #5
Hey,
Your most welcome. That was cool stuff.
Regards,
who |grep -i blonde |
date; cd~; unzip; touch;
strip; finger; mount; gasp;
yes; uptime; umount;
sleep

Newbie clicks
http://www.linuxforums.org/forum/lin...ead-first.html
- 08-14-2007 #6Just Joined!
- Join Date
- Jul 2006
- Posts
- 11
Which OS you are installed.
For Caching nameserver, you need start named service and then run command -
before rndc command first try with "nslookup domainname"Code:rndc dumpdb
it will create file called cache_dump.db in /var/named/chroot/var/named/data/
This is for manualy for crontab you want to put entry like this
every 10 sec it will run in backgroundCode:*/10 * * * * root /usr/sbin/rndc dumpdb


Reply With Quote