LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-30-2010, 04:17 PM   #1
bigbill5
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; 192.168.0.0/24; };
allow-query-cache { localhost; 192.168.0.0/24; };

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


Test 1 - On the new dns server:
nslookup hp.com localhost
works
nslookup xxx.mydomain.com localhost
works

Test 2 On the new dns server
nslookup hp.com
works
nslookup xxx.mydomain.com
fails. server can't find xxx.mydomain.com: NXDOMAIN

Test 3 On another machine
nslookup hp.com 192.168.xxx.xxx
fails. server can't find hp.com: NXDOMAIN
nslookup xxx.mydomain.com
fails. server can't find xxx.mydomain.com: 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.

Bill
 
Old 07-30-2010, 04:50 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,938

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
Hi,

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:
Code:
nameserver 127.0.0.1
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:
Code:
allow-recursion {127.0.0.1; 192.168.0.0/24;};
 
Old 07-30-2010, 10:33 PM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 13,051

Rep: Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741
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, 08:20 PM   #4
DJ Shaji
Member
 
Registered: Dec 2004
Location: India
Distribution: Debian Squeeze, Fedora 17
Posts: 434
Blog Entries: 15

Rep: Reputation: 80
Might I suggest using google's dns somewhere in this setup:
8.8.8.8
8.8.4.4
 
  


Reply

Tags
dns


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 04:40 PM
DNS problem in fedora 10 mashiurrahman Linux - Networking 1 07-22-2009 06:36 AM
DNS problem with Fedora Core 6 r_babaei Linux - Networking 17 04-04-2007 02:04 PM
dns problem with fedora 4 ecnzl Linux - Networking 2 11-27-2005 11:57 AM
DNS Server problem in Fedora Linux linux_rookee Linux - Networking 2 11-14-2004 11:29 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration