[arch-general] NetworkManager, DHCP and DNS

Guillermo Leira gleira at gleira.com
Tue Oct 2 12:04:09 EDT 2012



> -----Mensaje original-----
> De: arch-general [mailto:arch-general-bounces at archlinux.org] En nombre de
Ike
> Devolder
> Enviado el: lunes, 01 de octubre de 2012 20:18
> Para: General Discussion about Arch Linux
> Asunto: Re: [arch-general] NetworkManager, DHCP and DNS
> 
> On Mon, Oct 01, 2012 at 07:03:50PM +0200, Guillermo Leira wrote:
> > Hello!
> >
> > I have been using wicd for a long time. I have installed and enabled
> > NetworkManager service (with systemd). It seems to work, but I have
found
> > that when asking for a DHCP address, it does not register the conexion
in
> > the DNS server (as wicd does). I can't find anything about this issue...
> >
> > I have gone back to wicd, but it can't connect to my office's wifi (or I
> > have been unable to configure it) and NetworkManager worked at the first
> > attempt.


> 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.
> You can easily create a default /etc/dhclient.conf with content:
> 
> --- dhclient.conf ---
> send host-name = pick-first-value(gethostname(), "ISC-dhclient");
> --- dhclient.conf ---
> 
> the above is just a copy from the example configuration.
> 
> if you have eth0, eth1, ... just create a symlink in etc since
> NetworkManager will pick up the /etc/dhclient-eth0.conf for eth0
> 
> ls -l /etc/dhclient.conf /etc/dhclient-eth0.conf
> 
> if you have a dhcp which registers the clients to your dns server all
> should work fine now.
> 
> --
> Ike

Thanks!

I didn't notice the change from dhcpcd to dhclient.

I'll create symlink for wlan0.

Best Regards,

Guillermo Leira




More information about the arch-general mailing list