I had a lot of name resolution issues after my initial install of Arch. Sometimes resolution worked, other times not. There were two main issues:
- Both dhcpcd and NetworkManager were editing /etc/resolv.conf (the DNS server list)
- NetworkManager configured name resolution through the wrong network connection: when connected to both wired and wireless, the name server for the wireless connection was being used.
Not much can be done about (2); the way our enterprise network is setup, name resolution requests from the wired network, to name servers on the wireless network, are denied. So, name resolution would take a long time because it would have to fail first before the right name server was used. The only way to fix this is for NetworkManager to prioritize the parameters of one connection over the other, and this feature does not exist yet.
Now, (1) really needs to be fixed; otherwise, name resolution will sometimes not work. The fix [1] is to add the following to the last section of /etc/dhcpcd.conf:
nohook resolv.conf
This will tell dhcpcd to stop editing /etc/resolv.conf and NetworkManager will be the only application modifying it.