[arch-general] NetworkManager, DHCP and DNS

Ike Devolder ike.devolder at gmail.com
Mon Oct 1 14:18:05 EDT 2012


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.
> 
> Any suggestions?
> 
> Best Regards,
> 
> Guillermo Leira
> 
> 
> 
> 
> 
> 
> 

Hello,

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20121001/1ee75074/attachment.asc>


More information about the arch-general mailing list