LinuxQuestions.org
Visit Jeremy's Blog.
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 06-25-2008, 05:05 PM   #1
texmansru47
Member
 
Registered: Jul 2004
Location: Texas
Distribution: CentOS 4.X
Posts: 42

Rep: Reputation: 15
Question 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.

Any ideas or stupid things I have over looked?

Thanks,

Texman
 
Old 06-25-2008, 05:27 PM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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
 
Old 06-25-2008, 11:13 PM   #3
texmansru47
Member
 
Registered: Jul 2004
Location: Texas
Distribution: CentOS 4.X
Posts: 42

Original Poster
Rep: Reputation: 15
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?
 
Old 06-25-2008, 11:30 PM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Could be, but I'd be surprised if it blocked outgoing DNS requests.

Can you ping 172.18.1.10 from windows?
 
Old 06-26-2008, 10:59 AM   #5
texmansru47
Member
 
Registered: Jul 2004
Location: Texas
Distribution: CentOS 4.X
Posts: 42

Original Poster
Rep: Reputation: 15
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:

[root@logmain etc]# rndc reload
rndc: connect failed: connection refused

Yikes... This has become a real nightmare.
 
Old 06-27-2008, 09:48 AM   #6
San-Raal
LQ Newbie
 
Registered: Apr 2008
Distribution: debian, redhat el4
Posts: 18

Rep: Reputation: 0
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.
 
Old 07-08-2008, 01:10 PM   #7
texmansru47
Member
 
Registered: Jul 2004
Location: Texas
Distribution: CentOS 4.X
Posts: 42

Original Poster
Rep: Reputation: 15
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.
 
Old 07-08-2008, 06:14 PM   #8
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
How are you resolving hostnames on your network? I'm assuming this is the issue not firewalling. Can you ping the server by IP?
 
Old 07-08-2008, 07:00 PM   #9
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
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:


$ nslookup apple.com
Server: 192.168.10.2
Address: 192.168.10.2#53

Non-authoritative answer:
Name: apple.com
Address: 17.149.160.49
 
Old 07-10-2008, 04:30 PM   #10
texmansru47
Member
 
Registered: Jul 2004
Location: Texas
Distribution: CentOS 4.X
Posts: 42

Original Poster
Rep: Reputation: 15
Question

NSLOOKUP yields the following:


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

Non-authoritative answer:
Name: logmain
Address: 8.15.7.110

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 caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; rndc-key; };
};

zone "." IN {
type hint;
file "named.ca";
};

zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};

zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};

zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};

zone "logistics.com" {
type master;
file "/var/named/logistics.com.hosts";
};
key rndc-key {
algorithm hmac-md5;
secret "Byrdo7xUodPC7RFodpWJGQ==";
};
server 192.168.1.99 {
bogus yes;
transfer-format many-answers;
};
logging {
category resolver {
default_syslog;
};
category default {
default_syslog;
};
};
view LOGWatch {
};


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.
 
Old 07-10-2008, 04:41 PM   #11
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
On a problematic PC, run:

ipconfig /all

and show results.
 
Old 07-10-2008, 06:41 PM   #12
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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.
 
Old 07-10-2008, 08:06 PM   #13
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
The primary DNS suffix in Windows is shown with ipconfig /all, as is all the relevant info we need to diagnose.
 
  


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 Server: WinXP DNS clients losing name resolution frequently loopy69 Linux - Server 4 03-27-2007 10:21 PM
Can bind 9 (DNS) resolve names based on who's asking?? (internal vs. external clients registering Linux - Networking 3 06-16-2004 08:25 AM
Linux DNS - Windows clients problem tommynet Linux - Networking 4 08-13-2003 01:33 PM
Have problems with DNS(Linux)- only on windows clients... Senta Linux - Networking 4 07-02-2003 03:06 AM
BIND DNS for Windows 2000 clients narcoterrorist Linux - Networking 1 05-07-2002 06:19 PM


All times are GMT -5. The time now is 09:35 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration