LinuxQuestions.org
Help answer threads with 0 replies.
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-16-2003, 09:26 AM   #1
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
Problems with DNS


Howzit

I have M$ nameserver running which resolves all my M$ requests but with my Linux Box itś a no go. Under /etc/resolv.conf file I have placed the Ip for the servers and still no go.

What am I doing wrong.

chow
 
Old 10-16-2003, 10:32 AM   #2
snerfu
Member
 
Registered: Sep 2003
Distribution: Debian/GNU
Posts: 30

Rep: Reputation: 15
Can you paste the contents of your /etc/resolv.conf here please?

Your entries should look like:

nameserver 1.2.3.4
nameserver 1.2.3.5
 
Old 10-16-2003, 10:55 AM   #3
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Original Poster
Rep: Reputation: 30
Howzit

Yip that's how it's been setup

nameserver xxx.xxx.xxx.xxx
nameserver bbb.bbb.bbb.bbb

when I ping it gets a response that says:
unkown host

chow
 
Old 10-16-2003, 11:10 AM   #4
snerfu
Member
 
Registered: Sep 2003
Distribution: Debian/GNU
Posts: 30

Rep: Reputation: 15
Sorry i should have asked this before, but If you put another known working DNS server in your resolv.conf file like your ISP's will it work...Thereby isolating it to specifically having a problem with the windows DNS server. Also Is this the IIS DNS server and what version of windows please. Thanks.
 
Old 10-16-2003, 11:17 AM   #5
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Original Poster
Rep: Reputation: 30
Howzit

This is a W2k server running in the internal part of our network the other DNS server is a linux box and is setup just to resolv addr from the outside.

chow
 
Old 10-17-2003, 05:46 AM   #6
ncorreia
Member
 
Registered: Apr 2003
Distribution: Red Hat
Posts: 37

Rep: Reputation: 15
Bom dia, ;-)

Is there any firewall in the way of that box and the dns server you're trying to reach?
Can you ping the nameserver from your linux box using its ip instead of its name? (i assume, judging from the answer you gave about pinging it, you did it using the hostname before...)

Xau
 
Old 10-27-2003, 02:37 AM   #7
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Original Poster
Rep: Reputation: 30
Howzit

Sorry for such a alte reply but I was out last week . Yes to the quetion if I am able to ping the DNS server with IP, the FW is also not enabled..........

I also added thge following line to the /etc/resolv.conf file to see if anything happend.

search mydomain.pt
nameserver xxx.xxx.xxx.xxx
nameserver bbb.bbb.bbb.bbb

I tried pinging the server coflx01 & coflx01.mydomain.pt and nothing

Thanx for the responses so far

chow
 
Old 10-27-2003, 02:44 AM   #8
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
A better way to test would be by using dig.

dig @ip-of-ms-ns google.com
dig @ip-of-ms-ns some-internal-host

etc...

if you have your Linux box name server setup as authoritative for your zone, but you are in fact looking for hosts in your zone that are only defined in internal DNS, then you're getting exactly what you asked for. Your Linux box won't resolve it because it's not in the external version of your DNS zone. That's why you need to dig specifically off the internal server to see what answer you get.

By the way it's entirely possible that there is a firewall between your Linux box and the MS box, one that you do not control. Check with your network/security team to see if there is a firewall between the Linux box and the MS box. If so, they will need to allow the Linux box to make requests on port 53/TCP&UDP to the Windows box.
 
Old 10-27-2003, 03:12 AM   #9
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Original Poster
Rep: Reputation: 30
Howzit

when i dig @my.domain.pt coflx01 which is a internal machine it says canīt find my.domain.pt but if I do a dig -x xxx.xxx.xxx.xxx coflx01 it responsded and resolves it.

The answer to the FW quetion is no thereis no FW between me and the W2K box as I am the network admin

just wondering why this never worked

chow
 
Old 10-27-2003, 10:45 AM   #10
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
Can you ping anything on the internet like 4.2.2.2 (it's a DNS server somewhere, i just remember the IP because it's easy)

if you cant ping anything at all then the problem is beyond DNS. check also for a firewall on the linux box.

iptables -L
iptables -L -t nat
 
Old 10-27-2003, 10:52 AM   #11
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Original Poster
Rep: Reputation: 30
Howzit

can ping everthing thats un IP but not a name I have disabled FW buy service iptables stop then service iptables save.

chow
 
Old 10-27-2003, 11:12 AM   #12
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
You have your dig backwards. To the immediate right of @ should be your name server. The record you're looking for can either come directly to the left of the @ (google.com@ns1.google.com) or after the name server with a space (@ns1.google.com google.com).

Assuming the IP of your Windows nameserver is 192.168.2.2 you can look for a host in internal DNS like this:
dig @192.168.2.2 coflx01.domain.pt, this should locate the A record for coflx01 in the internal DNS zone.
 
Old 10-29-2003, 11:01 AM   #13
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Original Poster
Rep: Reputation: 30
Howzit

Thanx everyone for your help and quick responses I have just worked it out that the domain name in my resolv.conf file was incorrect changed that and

Once again Thanx

chow
 
  


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
DNS problems Wimpie22 Linux - Networking 4 05-25-2003 03:30 AM
Dns Problems. SpookMonkey Linux - Networking 0 05-09-2002 11:11 AM
need help: DNS problems kcwoo Linux - General 0 03-12-2002 10:53 PM
DNS problems (again!) Aleks Linux - Networking 3 01-26-2002 10:58 PM
DNS Problems goochable Linux - Networking 3 05-06-2001 11:40 PM

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

All times are GMT -5. The time now is 09:38 AM.

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