LinuxQuestions.org
Review your favorite Linux distribution.
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 07-21-2004, 05:09 PM   #1
armadilloman
LQ Newbie
 
Registered: Jul 2004
Location: Minneapolis, MN
Distribution: RedHat
Posts: 2

Rep: Reputation: 0
DHCP RH-linux-client, windows-server, DNS-registration not happening


Hello all,

The situation is as follows. There is a Windows 2003 server running the Microsoft DHCP server giving ip addresses to DHCP clients on the network. One of these clients is a Windows XP Pro box (WXPB). Another computer on the same subnet is a linux (RH7.3) box using
Code:
dhcpcd
for the DHCP client (RH7.3 has only one NIC, non-wireless, ethernet, device name eth0).

When I bring up a command window on WXBP and use
Code:
nslookup
on the ipaddress revealed from using the
Code:
ipconfig
command, I get a hostname back that corresponds to something expected. From the same window, if I issue an
Code:
nslookup
on the ip address given to RH7.3 (revealed from using the
Code:
ifconfig eth0
command), I get an error saying that the DNS server can not find that ip address, the reason being a non-existent domain.

WXPB has an ipaddress of 129.218.57.89
RH7.3 has an ipaddress of 129.218.57.98

From WXPB, I can access RH7.3 using ssh/telnet/ftp etc using RH7.3's ipaddress. However, I can not reach it using the hostname given in
Code:
/etc/resolv.conf
, which is of course overwritten each time dhcpcd gets new information.

According to the network administrator, the Windows machines update their own DNS entries. That is, they request an ipaddress from the DHCP machine, then apply their hostname to it and send it off to the DNS server. I checked on some Microsoft documents and this appears to be some kind of option that can be sent to the MS DHCP server (option 81). In my reading of man pages for dhcpcd and so forth, I have not found any way to do this.

Does anyone know how to get linux DHCP clients to work with the Windows DHCP server and then magically register it's own hostname with the DNS server?

I'm completely lost with this and I can't get samba to work with out the entry in DNS.

Thanks for the help.
 
Old 07-22-2004, 01:22 AM   #2
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
Try entering the following in /etc/sysconfig/network

DHCP_HOSTNAME="RH73hostname"

where RH73hostname is the hostname of your RH7.3 box.

The RH network GUI config tool, neat, also has a place where you can set this.
 
Old 07-22-2004, 08:15 AM   #3
armadilloman
LQ Newbie
 
Registered: Jul 2004
Location: Minneapolis, MN
Distribution: RedHat
Posts: 2

Original Poster
Rep: Reputation: 0
Yeah, I saw this late yesterday on a different forum.

In /etc/sysconfig/network-scripts/ifcfg-eth0, I added the following:

Code:
DHCPCDARGS = -D
DHCP_HOSTNAME = hostname
Then I found that after I stop and restart the network service (/etc/rc.d/init.d/network stop|start), I had to use 'hostname' to set the hostname after that because it wasn't automatically set. Anyway to get around that?

Thanks for the tip!
 
Old 07-22-2004, 11:02 AM   #4
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
In /etc/sysconfig/network you need an entry:
HOSTNAME="RH73hostname"
 
Old 06-23-2008, 01:51 PM   #5
netsecwork
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
Question

Hi, I am having the same issue. I was reading this post. Did it work?
Have you got it fixed?

Thanks
NSW

Quote:
Originally Posted by idaho View Post
In /etc/sysconfig/network you need an entry:
HOSTNAME="RH73hostname"
 
Old 01-12-2009, 08:53 AM   #6
a-wolfe
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
All that is needed in DHCP_HOSTNAME

All you should need to configure is the hostname for an interface as DHCP_HOSTNAME=hostname in the /etc/sysconfig/network-scripts/ifcfg-eth0 configuration file.

I don't understand where the DHCPARGS=-D is coming from. I look at the man pages on RHEL5 for dhcpd and dhclient. There is seemingly no "-D" option to feed it.

Anyway this works with a M$ DNS/DHCP to get the hostname to register when an IP address is assigned by DHCP. We have more than one domain, though our "winders wonders" can only handle a single domain in the search path in /etc/resolv.conf. The main domain apparently can't be configured to search other domains at the DNS server. We have to maintain /etc/resolv.conf ourselves and include PEERDNS=no in the /etc/sysconfig/network configuration file.

Last edited by a-wolfe; 01-12-2009 at 08:57 AM. Reason: more clarification
 
  


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
Linux DNS / DHCP server helppp shane200_ Linux - Networking 2 07-04-2005 10:14 PM
Linux dhcp client can't get address on Windows network km4hr Linux - Networking 12 03-10-2005 08:35 PM
configuring dns server on dhcp client ydpk Linux - Networking 3 11-04-2004 10:23 PM
Red Hat client does not appear in Windows DHCP server dbruso Linux - Networking 0 08-06-2004 02:31 PM
dhcp3-client won't negotiate with windows dhcp server through cable modem frankster2000 Linux - Networking 0 06-25-2002 09:04 AM

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

All times are GMT -5. The time now is 03:12 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