LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-08-2004, 12:47 PM   #1
hossnutt
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora 2
Posts: 2

Rep: Reputation: 0
problems with DHCP for linux box on windows network


Hello,
I have a machine running Fedora 2 that is connected to an office network made up of mostly windows machines. The network uses a windows DHCP server. From the linux box, I can ping other machines on the network using their IP addresses. However, when I try to ping using the hostname that does not work. The same holds true when trying to ping the linux box from a windows machine (ip works but hostname does not). Updating /et/hosts with all the host names is not practical since the IPs for many of the machines change fairly often.

What do I need to do to ensure that the windows machines will be able to resolve the linux machine's name and to ensure that linux machine will be able to resolve the host names of the windows machines on the network?
 
Old 09-08-2004, 01:58 PM   #2
SOpsMattW
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Rep: Reputation: 0
It has been answered before..

see DiBosco's answer in the following link. well written and to the point.

http://www.linuxquestions.org/questi...002/03/3/10146
 
Old 09-08-2004, 03:52 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
That answer suggests using WINS, which is very outdated and is nearly unsupported at this point. For all name resolution, you should be using DNS.

It sounds like part of the problem is that your Linux machine isn't reporting it's hostname to the DHCP/DNS server. Or perhaps it is reporting it's host name, but your Windows clients are not setup to query the DNS server for hostnames (especially if the clients are 9x).

You might also want to make sure that the DHCP server's IP is the first entry in your resolv.conf. If your machine doesn't know that the server can resolve hostnames, it isn't going to ask it.

Also make sure that the Windows server is setup so that hostnames of DHCP clients are added to the DNS database. It is probably already setup that way, but it never hurts to check.
 
Old 09-08-2004, 04:00 PM   #4
SOpsMattW
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Rep: Reputation: 0
I mentioned WINS because the OP mentioned that the Windows machines change IP addresses frequently and typically "offices of windows machines" do not have a DDNS (Dynamic DNS) server available for internal name resolution. DNS by design is static and I am not aware of a way to update an internal DNS server (that is not DDNS) from a _Windows_ DHCP server (Linux, yes). Since the OP is using a Windows DHCP server, WINS or Microsoft's DDNS is the only way that I can think of to have dynamic updates to ip addresses of windows-based DHCP clients.
 
Old 09-08-2004, 04:55 PM   #5
hossnutt
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora 2
Posts: 2

Original Poster
Rep: Reputation: 0
It looks like starting the smb service solved the windows to linux host resolution issue. smb was not running before. (Setting wins support = yes in smb.conf does not seem to affect it one way or the other.) After starting smb, the windows machines can now ping the linux machine and access the web server running on the linux machine, but the linux machine does not seem to be able to resolve any of the windows hostnames. For example, ping <windows-hostname> on the linux machine results in 'ping: unknown host <windows-hostname>'.
 
Old 09-27-2004, 02:42 PM   #6
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Quote:
Originally posted by hossnutt
It looks like starting the smb service solved the windows to linux host resolution issue. smb was not running before. (Setting wins support = yes in smb.conf does not seem to affect it one way or the other.) After starting smb, the windows machines can now ping the linux machine and access the web server running on the linux machine, but the linux machine does not seem to be able to resolve any of the windows hostnames. For example, ping <windows-hostname> on the linux machine results in 'ping: unknown host <windows-hostname>'.
You need to put your Windows DNS server's IP address in you Linux's /etc/resolv.conf file. That way when you run 'ping windows' it will first look to resolve via the address that is in /etc/resolv.conf. If you Windows DNS servers addresses are 192.168.1.1(2) and your domain is enron.com then you /etc/resolv.conf should look like the following:

domain enron.com
nameserver 192.168.1.1
nameserver 192.168.1.2

In a Windows 2000 network the DNS server is usually the Domain Controller; and that's what you should use as the name server in the /etc/resolv.conf. Afterward you should be able to ping any Windows computer that is under Active Directories.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to ping my Linux box on windows network rajjay Linux - Networking 1 04-07-2009 11:16 AM
Linux box as Gateway to internet for Windows Network bickyz Linux - Networking 11 11-29-2004 06:06 PM
linux box in a windows network environmnet braungiobi Linux - Networking 2 08-24-2004 10:20 AM
Can't get linux and windows box to see each other on network unrulycow Linux - Networking 1 03-06-2004 12:56 PM
Linux box on Windows network radudley Linux - Networking 2 12-20-2003 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:36 PM.

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