Re: NetworkManager, DHCP and DNS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Oct 02, 2012 at 12:54:24AM +0200, Jan Steffens wrote:
> On Mon, Oct 1, 2012 at 8:18 PM, Ike Devolder <ike.devolder@xxxxxxxxx> wrote:
> > Are you using NetworkManager with dhclient ?
> > NetworkManager with dhcpcd should give you no issues since dhcpcd sends
> > the hostname along with the dhcp request.
> >
> > dhclient does not with the defaults given by NetworkManager.
> 
> Actually, it does. Here, /var/run/nm-dhclient-wlan0.conf contains:
> 
> # Created by NetworkManager
> 
> send host-name "philomeena"; # added by NetworkManager
> 
> option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
> option ms-classless-static-routes code 249 = array of unsigned integer 8;
> option wpad code 252 = string;
> 
> also request rfc3442-classless-static-routes;
> also request ms-classless-static-routes;
> also request wpad;
> also request ntp-servers;
> 
> ---
> 
> "philomeena" being the hostname of my laptop.

well then for the people where networkmanager is not so nice to:
the following is an actual example and consistent over all my machines
with dhclient (4 desktops having the exact same output)

--- /var/run/nm-dhclient-eth0.conf --- (without dhclient-eth0.conf)
# Aangemaakt door NetworkManager

option rfc3442-classless-static-routes code 121 = array of unsigned
integer 8;
option ms-classless-static-routes code 249 = array of unsigned integer
8;
option wpad code 252 = string;

also request rfc3442-classless-static-routes;
also request ms-classless-static-routes;
also request wpad;
also request ntp-servers;
--- /var/run/nm-dhclient-eth0.conf ---

if NetworkManager does not do the trick, create the dhclient-eth0.conf
file or symlink and your hostname will be sent for sure

-- 
Ike

Attachment: pgpdy6pajnsr5.pgp
Description: PGP signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux