DNS

Désactiver la reconfiguration auto du fichier de conf de netcl /etc/NetworkManager/NetworkManager.conf :

dhcp=none

PS : d’autres option disponible sur le Wiki d’archlinux. Puis reboot.

Changer le DNS, edit /etc/resolv.conf par ceux de fdn (par exemple).

Environnement de dev

Pour avoir un environnement de dev avec un tld comme .lan, .dev ou encore .local il faut installer un dns local afin de ne pas se casser la tête pour chaque site à ajouter dans le /etc/hosts.

Dnsmasq permet de régler ce problème. Exemple de fichier de conf:

# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv

# If you don't want dnsmasq to read /etc/resolv.conf or any other
# file, getting its servers from this file instead (see below), then
# uncomment this.
no-resolv

# Add other name servers here, with domain specs if they are for
# non-public domains.
#server=/localnet/192.168.0.1
server=80.67.169.12
server=80.67.169.40

# Add local-only domains here, queries in these domains are answered
# from /etc/hosts or DHCP only.
#local=/localnet/

# Add domains which you want to force to an IP address here.
# The example below send any host in double-click.net to a local
# web-server.
#address=/double-click.net/127.0.0.1
address=/lan/127.0.0.1

Il faut aussi indiquer dans le /etc/resolv.conf qu’il faut utiliser le DNS local. Configuration de resolv.conf:

# If you run a local name server, you should uncomment the below line and
# configure your subscribers configuration files below.
name_servers=127.0.0.1