LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-16-2009, 06:45 PM   #1
OzzyBlood
LQ Newbie
 
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23

Rep: Reputation: 16
DNS service not working


Hey guys,

I installed DNS on my linux machine (Fedora 12) using yum. I then went and started the DNS service "sudo service named start" and it appears to be running. I can telnet to port 53 from the linux machine "telnet localhost 53" but I cannot reach it from another machine on the same network "Telnet IP 53", it then gives a connection refused. I'm sure i've disabled the firewall, but I can telnet into port 80 when httpd is running from the remote machine.

Any ideas on what I could be doing wrong?
Obviously when I have another machine set to use the linux box as a DNS server it doesn't work.

Thanks for any help.
 
Old 12-16-2009, 06:50 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,414

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
Check the f/w (iptables) on both machines. Are they on the same LAN segment; no other system in between?

sudo iptables -nvL
 
Old 12-16-2009, 07:03 PM   #3
OzzyBlood
LQ Newbie
 
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23

Original Poster
Rep: Reputation: 16
Hi thanks for the quick response.

The other machine I'm trying to connect to it from is a Windows 7 machine. My linux machine is actually running in VMware workstation on this computer. So Windows 7 is the host and Fedora 12 is the guest or virtual machine.

The results from iptables -nvL is below.

sudo iptables -nvL
Chain INPUT (policy ACCEPT 15628 packets, 23M bytes)
pkts bytes target prot opt in out source destination


Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination


Chain OUTPUT (policy ACCEPT 7962 packets, 327K bytes)
pkts bytes target prot opt in out source destination

I've disabled the firewall in the system-config-firewall in the gui.

Thanks
 
Old 12-16-2009, 07:46 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Would windblows 7 be stopping DNS queries to other machines than
the one(s) it has knowledge of as being its authoritative ones?

Just a thought - since the iptables rules accept anything (and you
must have failed to disable them [or you didn't reboot since you
disabled iptables).



Cheers,
Tink
 
Old 12-16-2009, 07:52 PM   #5
OzzyBlood
LQ Newbie
 
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23

Original Poster
Rep: Reputation: 16
I quickly went ahead and created another linux virtual machine and installed DNS on it, disabled the firewall, and tested it - same issue.

The two linux machines can't connect to 53 however I started apache on both and they can telnet to those two fine. Obviously there's something I'm doing wrong. Really the only thing I'm doing is installing bind through yum and then started the service. Obviously there are additional configuration steps that could be done, but I would think that you should still be able to telnet to the port/service.
 
Old 12-16-2009, 07:57 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
That is indeed another possibility. What do you get when
you check binds status after you initially started it?

Out of the box it won't be doing much, that's for sure.



Cheers,
Tink
 
Old 12-16-2009, 08:09 PM   #7
OzzyBlood
LQ Newbie
 
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23

Original Poster
Rep: Reputation: 16
when checking the status of named I get the following:

[root@localhost jeremy]# service named status
version: 9.6.1-P2-RedHat-9.6.1-13.P2.fc12
CPUs found: 1
worker threads: 1
number of zones: 15
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running
named (pid 1893) is running...

Thanks again for the help
 
Old 12-16-2009, 08:23 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hmmm .. and when you connect to 53 from the local box?
 
Old 12-16-2009, 08:25 PM   #9
OzzyBlood
LQ Newbie
 
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23

Original Poster
Rep: Reputation: 16
yeah connects fine from the localhost, just another machine won't connect.
 
Old 12-16-2009, 08:28 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
And since I'm not very good with FC .. is SELinux enabled, do you
see anything in the logs pertaining to SE blocking network traffic?

But again: my suspicion is still on the HOST OS ;}



Cheers,
Tink
 
1 members found this post helpful.
Old 12-16-2009, 08:50 PM   #11
OzzyBlood
LQ Newbie
 
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23

Original Poster
Rep: Reputation: 16
good thinking.
I went ahead and disabled SElinux and rebooted, nothing changed.
quite a strange issue. Oh well maybe it is something to do with the Host being Windows 7.
I disabled the firewall on Windows to see if anything changed, but no still can't connect.

Oh well, Thanks for the help Tinkster, a big blue thumbs up thank you for you!
 
Old 12-16-2009, 08:55 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Pleasure mate.

Sorry we didn't get the issue resolved, though! :/ Hope you find some
resource that gets you going all the way.


Cheers,
Tink
 
  


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
Do I _want_ a DNS service? headrift Linux - Server 6 07-09-2008 02:43 PM
Dns Service praveenv Linux - Newbie 2 09-08-2004 01:24 PM
DNS Service not working all the time NetAX Linux - Networking 3 08-05-2004 05:14 PM
DNS ERROR: Name or service not known. rioguia Linux - Networking 25 10-21-2003 10:46 AM
DNS Service ddepuemd Linux - Networking 1 05-16-2002 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:35 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