DHCP client and other information

Derek Broughton news at pointerstop.ca
Tue May 30 16:04:51 UTC 2006


Gallagher, Tim (NE) wrote:

> I have a Ubuntu box that is set to DHCP and sometimes when I ping the IP
> from a windows computer, another name will respond in place of the
> Ubuntu box.  How can I tell Ubuntu to update the dns server when it gets
> a dhcp address?

Do you really mean "ping the IP" - if your IP address ix 1.2.3.4 then, when
you ping that, nothing else can answer.  If you mean that your machine is
named "MyMachine", and you ping mymachine.domain.com and get a response
back from somewhere else, then you need to force your dhcp client to send
the hostname to the DHCP server.  With dhclient3 that's
(in /etc/dhcp3/dhclient.conf):

  send host-name "mymachine";

Some clients accept "hostname mymachine" in the /etc/network/interfaces
file.
-- 
derek





More information about the ubuntu-users mailing list