LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-27-2004, 09:01 AM   #1
Paintballguy59
LQ Newbie
 
Registered: Oct 2004
Posts: 9

Rep: Reputation: 0
problems connecting to dns server


I have a local lan DNS server setup that is working properly except for a new machine I'm using. I know for a fact the DNS server is working properly because I have another machine that resolves names fine.

I edited the resolv.conf file to say "nameserver X.X.X.X" where the X's are the IP to the DNS server. When I do a dig on a machine, it sais connection to dns server timed out. But, I can ping the DNS server fine. Is there some configuration I'm missing here?
 
Old 10-27-2004, 05:55 PM   #2
neilman
Member
 
Registered: Oct 2004
Location: Northville, MI
Distribution: Slackware
Posts: 65

Rep: Reputation: 15
First, rule out any type of firewall/ipchains/iptables lock-out. From your client, do this:

telnet x.x.x.x 53

If you get:

Trying x.x.x.x...
Connected to dns.foo.com.


..then that rules that out. However, if you cannot connect to port 53 of x.x.x.x (your DNS server) then you're really not getting through.

--

If you ARE getting through, you can't resolve, you need to check your named.conf to make sure that you have it open to do name resolution for that particular client's IP address. It's often a very good idea (not sure if it ships stock) to lock down BIND so that recursive queries aren't performed for outside hosts.
 
Old 10-28-2004, 07:35 AM   #3
Paintballguy59
LQ Newbie
 
Registered: Oct 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Ok I tried doing the telnet to port 53 and it worked.

How do I lock down bind?

-edit: while poking around in the log files I found out that my named.conf file is not parsing right.

Last edited by Paintballguy59; 10-28-2004 at 08:34 AM.
 
Old 10-28-2004, 08:56 AM   #4
neilman
Member
 
Registered: Oct 2004
Location: Northville, MI
Distribution: Slackware
Posts: 65

Rep: Reputation: 15
Ahh, very cool. Then it's just your BIND conf file -- most likely a simple syntax error, or a non-terminating bracket.
 
Old 10-28-2004, 10:03 AM   #5
Paintballguy59
LQ Newbie
 
Registered: Oct 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Yea I found a problem with my syntax, it was just a wrong comment. Anyways, now im getting an "I/O Error".
 
Old 10-28-2004, 12:09 PM   #6
neilman
Member
 
Registered: Oct 2004
Location: Northville, MI
Distribution: Slackware
Posts: 65

Rep: Reputation: 15
Where is the I/O error popping up and can you paste it here?
 
Old 10-28-2004, 12:55 PM   #7
Paintballguy59
LQ Newbie
 
Registered: Oct 2004
Posts: 9

Original Poster
Rep: Reputation: 0
I managed to fix it by using the /usr/sbin/named startup script rather than the /etc/init.d/named one. I had to also use the -u command with the user being named.
 
  


Reply



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
MY ISP DNS SERVER IP ...is creating some problems for my mail server daaku_n01 Linux - Networking 2 01-23-2006 05:09 PM
aMule - problems connecting to a server kao00 Linux - Software 5 07-04-2005 01:30 PM
Problems connecting to server with debian net-install caged Debian 8 01-22-2004 08:24 PM
Problems with connecting to a Remote CUPS Server Techweenie1 Linux - Newbie 6 04-28-2003 08:43 AM
problems connecting to dhcp server qanopus Linux - General 15 12-20-2002 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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