LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-14-2012, 04:16 AM   #1
leamassiot
Member
 
Registered: Dec 2005
Location: France
Distribution: Debian
Posts: 123

Rep: Reputation: 17
Question DNS names resolution


Hello,

Thank you for reading my post.

I'm working in a mixed Linux/Windows environment.
I've a Debian server "S" acting as a DHCP server, DNS server and Samba server and some (client) Windows machines (mostly).
All these machines belong to the same LAN, to the same name domain and to the same Samba domain.

- Machines either get their IP address via DHCP or have a statically assigned IP address.
- For each statically assigned IP addresses, there is a record (hostname, IP) and the reverse record in the appropriate DNS zone files.
- For DHCP assigned addresses, the DNS zone files are dynamically updated by the DHCP server.
- Every machine is part of the Samba domain and has been added to "smbpasswd".

Now, my problem is the following: I suddenly realized I do not properly understand how names are resolved. Here is why:

- On Windows machines and for static IP addresses, I used to set the DNS name server as "S" in the network interface configuration.
- For dynamically allocated IP addresses, it was also set that way in "dhcpd.conf" by means of the "ddns-domainname", "ddns-rev-domainname"... attributes.

Now, on one machine, none of the DNS servers is set as "S" in the network interface and yet names resolution is working "properly".
On this machine, I can do a "nslookup":
Code:
cmd.exe> nslookup <another_machine_name_in_the_domain>
Server:  dns-abo-static-a.wanadoo.fr
Address:  80.10.246.2

*** dns-abo-static-a.wanadoo.fr can't find <another_machine_name_in_the_domain>: Non-existent domain
(a message which I understand...)
and yet, I can ping the name <another_machine_name_in_the_domain>
and access all the shares on that <another_machine_name_in_the_domain>.

If I do the same thing on a machine for which I've the DNS server set as "S", here is what I get:
Code:
cmd.exe> nslookup <another_machine_name_in_the_domain>
Server:  S.my.domain.name
Address:  x.y.z.w1

Name:    <another_machine_name_in_the_domain>.my.domain.name
Address:  x.y.z.w2
So, in the first case, I do not understand how names are actually resolved.

I would like to mention I also know about the Netbios cache which I could empty with the command "nbtstat -R" but even after that, names resolution still worked.
Which leads me to ask myself, if there is another cache for names
or another mechanism I'm not aware of for solving names?

Can you advise a procedure for troubleshooting this or explain the mechanism actually at stake?


Thank you for helping and best regards.
 
Old 09-15-2012, 05:00 PM   #2
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 45
You said the client machines are windows, mostly. Same issue on linux and windows?
 
Old 09-17-2012, 03:34 AM   #3
leamassiot
Member
 
Registered: Dec 2005
Location: France
Distribution: Debian
Posts: 123

Original Poster
Rep: Reputation: 17
Hello and thank you for your answer.

Quote:
You said the client machines are windows, mostly. Same issue on linux and windows?
Ok, below are the tests I ran on a Linux machine in my network.

1) First test with the following "/etc/resolv.conf":
Code:
nameserver 80.10.246.2
nameserver 80.10.246.129
Note that the above IP addresses are some of my ISP's DNS IP addresses.

Code:
# ping google.com
It works.

Code:
# nslookup <another_machine_name_in_the_domain>
Server: 80.10.246.2
Address: 80.10.246.2#53

** server can't find <another_machine_name_in_the_domain>: NXDOMAIN
Code:
#nslookup <another_machine_name_in_the_domain>.my.domain.name
Server: 80.10.246.2
Address: 80.10.246.2#53

** server can't find <another_machine_name_in_the_domain>.my.domain.name: NXDOMAIN
2) Second test with the following "/etc/resolv.conf":

Code:
search my.domain.name
nameserver x.y.z.w1
Note that the above IP address is "S"'s IP address, my DNS IP address.

Code:
# nslookup <another_machine_name_in_the_domain>
Server: x.y.z.w1
Address: x.y.z.w1#53

Name: <another_machine_name_in_the_domain>.my.domain.name
Address: x.y.z.w2
So, to answer your question: no, I do not have the same issue on a Linux machine.
It works as expected in the Linux case.

So I still don't know what is going wrong on the Windows machines...

Thank you for helping and best regards.
 
Old 09-17-2012, 09:22 AM   #4
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 45
take a look at this: http://support.microsoft.com/kb/305553
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Local network DNS resolution fails, but DNS resolution to internet is OK farge Linux - Networking 6 05-28-2008 11:49 PM
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 09:59 PM
DNS Server: WinXP DNS clients losing name resolution frequently loopy69 Linux - Server 4 03-27-2007 09:21 PM
slow lookup of names (resolution¿?) hgb Linux - Networking 2 03-30-2006 12:24 PM
DNS names ray5_83 Linux - Networking 1 01-10-2005 04:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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