Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-30-2010, 05:17 PM   #1
LQ Newbie
Registered: Apr 2006
Posts: 2

Rep: Reputation: 0
DNS problem in Fedora 12

I am trying to set up a dns server to replace an older machine. The new dns server will have dns look-ups for a few machines inside the firewall and will be "caching" server for lookups to the rest of the world.

On my new dns server box:
I installed named. I copied my zone files from an old machine running Fedora 9. I updated /etc/named.conf, then I enabled named in system-config-services. I opened port 53 in system-config-firewall. Then I stopped SELINUX. Reboot.
Note, the following is a snippet from top part of named.conf:

allow-query { localhost;; };
allow-query-cache { localhost;; };

recursion yes;
forwarders {;; };
-- code for zones is included in named.conf

Test 1 - On the new dns server:
nslookup localhost
nslookup localhost

Test 2 On the new dns server
fails. server can't find NXDOMAIN

Test 3 On another machine
fails. server can't find NXDOMAIN
fails. server can't find NXDOMAIN

Conclusions (correct me if I am wrong):
The dns server appears to be up.
The dns server does not seem to be taking its local data as authoritive, and tries to go my ISP's DNS.
The dns server does not seem to be able to get anything from port 53.

Any clues? Anything that I should check? I appreciate help, clues etc.

Old 07-30-2010, 05:50 PM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,206

Rep: Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394

The dns server is up and its responding to queries. Just check /etc/resolv.conf to see if you have it as the 1st entry:
You don't need the forwarders statement, because your server will ask them to find the answer to a query. What you need is the hint "." zone, so your dns will work as a caching dns.

You can also limit recursion to LAN only, using:
allow-recursion {;;};
Old 07-30-2010, 11:33 PM   #3
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,636

Rep: Reputation: Disabled
i take it you do not mind NOT having any security updates .
fedora 9 running and installing fedora 12 ( in 6 mo. - no security updates)

you might want to use CentOS 5.5 for a dns server - it has a 5 year life span ( VS. fedora's 13 month)
Old 08-02-2010, 09:20 PM   #4
DJ Shaji
Registered: Dec 2004
Location: India
Distribution: Fedora 21, ArchLinux
Posts: 501
Blog Entries: 15

Rep: Reputation: 96
Might I suggest using google's dns somewhere in this setup:



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] DNS problem with Fedora 11 AceCraft Linux - Networking 2 07-22-2009 05:40 PM
DNS problem in fedora 10 mashiurrahman Linux - Networking 1 07-22-2009 07:36 AM
DNS problem with Fedora Core 6 r_babaei Linux - Networking 17 04-04-2007 03:04 PM
dns problem with fedora 4 ecnzl Linux - Networking 2 11-27-2005 12:57 PM
DNS Server problem in Fedora Linux linux_rookee Linux - Networking 2 11-15-2004 12:29 AM

All times are GMT -5. The time now is 07:37 AM.

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