Setting Ubuntu hostname as offered by DHCP server

A DHCP server might be setup in such a way that it offers a hostname to its clients. By default, the Ubuntu hostname is set during installation and it disregards the one in the DHCP lease, but we can change this behaviour. Create a file in the /etc/dhcp/dhclient-exit-hooks.d/ directory, for example /etc/dhcp/dhclient-exit-hooks.d/sethostname and give it […]

Ubuntu 12.04 network configuration

The network configuration of Ubuntu 12.04 has changed a bit, at least the server edition, haven’t checked the desktop version. The file /etc/network/interfaces contains a few directives that tell Ubuntu how to configure the network interfaces. There are basically two choices: dynamic configuration (through a DHCP client) or static configuration. DHCP is quite simple: auto […]

Dynamic Host Configuration Protocol (DHCP)

The Dynamic Host Configuration Protocol (DHCP) is an Internet protocol for automating the configuration of computers that use TCP/IP. DHCP can be used to automatically assign IP addresses, to deliver TCP/IP stack configuration parameters such as the subnet mask and default router, and to provide other configuration information such as the addresses for printer, time […]