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 02-27-2003, 12:59 PM   #1
explorer
Member
 
Registered: Feb 2003
Posts: 229

Rep: Reputation: 34
Unhappy Can't ping windows machines by hostname


I installed Mandrake 9 with networking and server assigned IP address. Everything works but I can't ping any windows PC's by hostname. I can Ping any machine on the network by IP address, and I can also ping any Windows NT 4 / 2000 Server machines by hostname, but no windows client PC's. The DNS Server is a Win2000 Server machine and Mandrakes finds and identifys it as the primary DNS server correctly but it doesn't seem to help in resolving hostnames. I can add a Windows PC hostname and IP address to the /etc/hosts file and then I can ping that machine. Can anybody tell me why it's not looking up hostnames on the DNS server, or what do I need to do to get that working. Is there something I need to do with the DNS server to allow my Mandrake machine to resolve hostnames to addresses with it. I have a lot of Windows PC's that I need to be able to see by host name, and adding them all to the hosts file would be out of the question.
Thanks for any suggestions !
 
Old 02-27-2003, 01:34 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
What kind of name you use to ping the machines? Is it 'machinename' or something like machinename.somewhere.com?
 
Old 02-27-2003, 02:25 PM   #3
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
It won't ping either way, just machinename or machinename.domainname.com
 
Old 02-27-2003, 03:19 PM   #4
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
Question network settings

A little more information about my setup. under hostname is linux1.swnutils.com - this domainname.com is correct for the network - under NameServer it shows the IP address of the Windows 2000 DNS Server on the network - found this all by itself. Multiple IP's for 1 host is selected, and the HostName Search path is currently set for Hosts, DNS. Changing the search path to DNS, Hosts makes no difference. Changing the search path to DNS only makes me unable to ping any of the host names that are in my hosts file except by IP address. For some reason it knows where the DNS server is, but it looks ONLY in the host file to resolve names to addresses.
 
Old 02-28-2003, 04:00 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
Look into your /etc/resolv.conf. There should be:
nameserver dns_ip_here
 
Old 03-06-2003, 09:53 AM   #6
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
Thanks Marla, there is such a file. The output of the /etc/resolv.conf is:

nameserver 10.131.23.12
nameserver 10.131.18.34
nameserver 123.174.106.1
search swutils.com

These are the correct ip addresses of our primary, secondary, and third nameservers and the domain name is correct.
 
Old 03-06-2003, 10:37 AM   #7
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 876

Rep: Reputation: 184Reputation: 184
Have you actually set your DNS server up with the names and addresses of each of your workstations?
 
Old 03-06-2003, 10:57 AM   #8
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
The dns servers have been set up for a long time. They do work when pinging hosts from any windows machine. It's only this mandrake machine that cannot get host names resolved. Do I need to add this machine name to a file somewhere on the nameserver for it to work ?
 
Old 03-06-2003, 11:08 AM   #9
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 876

Rep: Reputation: 184Reputation: 184
Not that I'm aware of. The only thing that does occur to me is that some DNS servers will not respond to hosts that don't have the domain prefix set in the DNS config.

And a question - how are you resolving the server addresses that you can ping when DNS doesn't work? Or do you have hosts entries for these?
 
Old 03-06-2003, 11:11 AM   #10
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 876

Rep: Reputation: 184Reputation: 184
Sorry - just re-read your post, you have the domain set right. Are you sure the workstations are all on DNS? Aren't you sure you aren't just resolving names via Netbios on the windows machines?
 
Old 03-06-2003, 12:44 PM   #11
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
host names

The server host names get added to the /etc/hosts file automatically some way. I hadn't really though about the windows machines using netbios to resolve hostnames........There is also a HPUX box on the network that resolves all hostnames on the network, with or with the domainname.com extension. It's got a pretty big hosts file but I noticed it's able to ping every hostname regardless of whether it's in the hosts file or not. I should take a look at some of the network configuration files on it and see if I can tell how it's able to do it.
 
  


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
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM
Windows machines cannot locate server by hostname Nexgen Linux - Networking 13 08-03-2004 09:45 PM
Linux machines cant ping server..Windows can. NetAX Linux - Networking 1 05-21-2004 09:55 AM
Cannot ping between 2 machines on same router acampbell Linux - Wireless Networking 8 02-24-2004 03:27 AM
Ping between machines triplem Linux - Networking 1 04-14-2003 05:17 PM


All times are GMT -5. The time now is 10:17 AM.

Main Menu
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