Forcing DHCP on Ubuntu Server

Derek Broughton news at pointerstop.ca
Wed Jun 11 15:24:30 UTC 2008


Avi Greenbury wrote:

> Robert Dailey wrote:
>> 
>> I'm using Ubuntu Server 8.04. I configured my router's DHCP to always
>> give my router a static IP. Because of this, I need to configure my
>> server to always bind its domain name to the DHCP acquired IP address.
>> Is there a way to do this? Currently I am not sure if it is using
>> DHCP, I think it's using a static IP (which I don't want).

I'm sure you're right.  If it uses DHCP, binding the domain gets thrown in
as a no-cost extra :-)

> Edit the line in /etc/network/interfaces for whatever interface you want
> to DHCP (eth0 usually) to read:
> 
> iface eth0 inet dhcp
> 
> rather than
> 
> iface eth0 inet static

Or just remove that line altogether so that Network-manager handles it.

-- 
derek





More information about the ubuntu-users mailing list