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.