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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-16-2009, 06:45 PM
|
#1
|
LQ Newbie
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23
Rep:
|
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.
|
|
|
12-16-2009, 06:50 PM
|
#2
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,414
|
Check the f/w (iptables) on both machines. Are they on the same LAN segment; no other system in between?
sudo iptables -nvL
|
|
|
12-16-2009, 07:03 PM
|
#3
|
LQ Newbie
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23
Original Poster
Rep:
|
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
|
|
|
12-16-2009, 07:46 PM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
12-16-2009, 07:52 PM
|
#5
|
LQ Newbie
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23
Original Poster
Rep:
|
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.
|
|
|
12-16-2009, 07:57 PM
|
#6
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
12-16-2009, 08:09 PM
|
#7
|
LQ Newbie
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23
Original Poster
Rep:
|
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
|
|
|
12-16-2009, 08:23 PM
|
#8
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Hmmm .. and when you connect to 53 from the local box?
|
|
|
12-16-2009, 08:25 PM
|
#9
|
LQ Newbie
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23
Original Poster
Rep:
|
yeah connects fine from the localhost, just another machine won't connect.
|
|
|
12-16-2009, 08:28 PM
|
#10
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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.
|
12-16-2009, 08:50 PM
|
#11
|
LQ Newbie
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23
Original Poster
Rep:
|
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!
|
|
|
12-16-2009, 08:55 PM
|
#12
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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 12:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|