How to update Windows DNS server with Linux DHCP client hostname?

Mikkel L. Ellertson mikkel at infinity-ltd.com
Fri May 18 18:43:53 UTC 2007


Patrick Doyle wrote:
> OK, I'm stuck.
> 
> I have an environment in which the DHCP and DNS servers are hosted by
> a Windows PC somewhere in a closet.  (They may even be the same PC.)
> I have an FC6 DHCP client for whom I want to publish a hostname.  Up
> to now, all of our FC6 boxes have gotten their IP info from the DHCP
> server and nobody ever cared what IP address was assigned to what
> machine.  Now I want to run a service on one of these clients, so I
> want its hostname to show up in DNS.
> 
> However IT has our DHCP/DNS server(s) set up, I can ping windows
> machines from windows machines by hostname.  I can ping windows
> machines from Linux machines, again by hostname.  I just can't figure
> out what knob to twist to tell my Linux machines to tell the DHCP/DNS
> server about it's hostname so that I can ping it from other machines.
> 
> Any suggestions on where to look?
> 
> --wpd
> 
Try setting DHCP_HOSTNAME in the interface config file.

For example, in /etc/sysconfig/network-scripts/ifcfg-eth0:

# Intel Corporation 82801BA/BAM/CA/CAM Ethernet Controller
IPV6INIT=no
PEERDNS=no
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:02:A5:F4:91:5E
ONBOOT=yes
DHCP_HOSTNAME=mikkel

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!




More information about the users mailing list