How to get Windows Clients to be served DNS from a Linux BIND-DNS Server
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
How to get Windows Clients to be served DNS from a Linux BIND-DNS Server
Maybe a dumb question, but for some reason I cannot figure it out. I cannot get proper resolution from my Linux (CENTOS 5 Linux server) to any of my Windows clients (All WinXP SP2). I'm in the process of migrating off of a workgroup scenario until a Linux served network (7 users), and DNS would be valuable for the in-house php web based solution I have developed... the problem is I get the following errors when I try to run a simple ping from my test PC:
C:\>ping loglbl01
Ping request could not find host loglbl01. Please check the name and try again.
I have the WinXP TCPIP Setup as static IP, proper subnet mask and proper gateway.... for the DNS I put in the Linux server IP of 172.18.1.10. On the Linux laptop and servers I have I get DNS resolution... on the Windows I do not.
Can you ping the full name (ping loglbl01.yourdomain.com)? There is an option in windows networking similar to the resolv.conf search option that deals with hostnames only from the windows machine
I have tried it for the loglbl01 PC (ping loglbl01.mydomain.com) and get the same result. I will need to check the settings in Windows I guest. Would the Windows Firewall be preventing this as well?
Yes. I can ping the IP addressing both ways (from Linux server out and from Windows clients out).
Just came in today and I got a bigger problem. I removed several (supposedly unneeded DNS zones in my Linux DNS Server - Localdomain, 127.0.0, etc) and now I get the following when I try to start the DNS Server:
Probably your last problem is about deleting the localhost 127.0.0.1 record, and then, when the server tries to connect to "localhost" he can't resolve it ;-)
If you are using static IPs, be sure to set the Connection specific sufix in the Advanced tab of your windows TCP/IP connection configuration. You need to add there "mydomain.org". If this is correctly working, than in Windows, "ipconfig" will tell you the "Connection-specific DNS suffix : mydomain.org". Then if your computer cannot resolve a name like "joshua", he will try to find a host with name "joshua.mydomain.org". This is the way to ping "joshua" :-)
But if it's not resolving "joshua.mydomain.org" then you probably forgot something, and something I cannot help you with. Hope I was helpful atleast with the other things.
I got the DNS server back online but I'm back to not having the Windows Clients resolving to the DNS Server. Here is what I'm getting:
If I try to ping a PC on the LAN that is running Windows XP SP2 I get:
C:\>ping loglbl01
Pinging loglbl01 [172.18.1.101] with 32 bytes of data:
Reply from 172.18.1.101: bytes=32 time<1ms TTL=128
Reply from 172.18.1.101: bytes=32 time<1ms TTL=128
Reply from 172.18.1.101: bytes=32 time<1ms TTL=128
Reply from 172.18.1.101: bytes=32 time<1ms TTL=128
Ping statistics for 172.18.1.101:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\>
that holds true for the other two PCs. However if I try to ping the Linux (DNS) Server, or the Windows 2003 Server I get the following:
C:\>ping logmain
Ping request could not find host logmain. Please check the name and try again.
C:\>
Honestly I have never had this issue before... only with the Linux Bind/DNS Server. I desire to run this service from my Linux Server (less overhead and the Windows Server is our customer's hardware so I would rather not use it).
I cannot see where the servers are unable to be pinged.... very weird.
Use nslookup, not ping. Ping tests packets, and happens to do a DNS lookup when you provide a hostname. Nslookup queries the DNS server, tells you the server that is being used, and returns the answer to the query. It is available under any unix/linux and also command line in Windows. Eg:
C:\>nslookup logmain
*** Can't find server name for address 192.168.1.120: Non-existent domain
*** Default servers are not available
Server: UnKnown
Address: 192.168.1.120
The address 8.15.7.110 is not in my scope at all. Now on my DNS Server I have the following config file.
//
// named.conf for Red Hat caching-nameserver
//
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
forwarders {
192.168.1.99;
208.109.255.18;
};
};
A great deal if these settings are from my DNS installation. I only added the logistics.com DNS. I'm mainly looking to run localized DNS (resolution) and forwarding outbound via my DGW. For some reason I can get the two PCs that are pointing to the DNS server to resolve the each PC, but neither server or the DGW. I need the Linux server to be resolved since I'm running a intranet ERP system and using the FQDN would be easier than the IP address.
Something else to try - can you lookup the full domain name, so something like
nslookup logmain.yourdomain.com
Windows PCs need to be told which automatic extensions to use (the same concept as "search" in resolv.conv under linux). I'd tell you where to find it on Windows, but I can't see it at the moment.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.