LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   DNS service not working (https://www.linuxquestions.org/questions/linux-newbie-8/dns-service-not-working-776221/)

OzzyBlood 12-16-2009 05:45 PM

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.

chrism01 12-16-2009 05:50 PM

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

sudo iptables -nvL

OzzyBlood 12-16-2009 06:03 PM

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

Tinkster 12-16-2009 06:46 PM

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

OzzyBlood 12-16-2009 06:52 PM

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.

Tinkster 12-16-2009 06:57 PM

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

OzzyBlood 12-16-2009 07:09 PM

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

Tinkster 12-16-2009 07:23 PM

Hmmm .. and when you connect to 53 from the local box?

OzzyBlood 12-16-2009 07:25 PM

yeah connects fine from the localhost, just another machine won't connect.

Tinkster 12-16-2009 07:28 PM

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

OzzyBlood 12-16-2009 07:50 PM

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!

Tinkster 12-16-2009 07:55 PM

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


All times are GMT -5. The time now is 05:11 AM.