Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

Small tip - How to add your own Nameservers to Arch Linux when using dhcp

Date: 2009-02-24 00:00:00 -0400

If you use dhcp to get the IP on your Arch Linux, you will use the Network DNS server, and that is good, if that DNS server works well, but I have seen in some networks they resolv some addresses to 1.0.0.0, do not know why but to fix this you may do this, if working on Arch.

On /etc/rc.conf file you will have some line like this

eth0="dhcp"
INTERFACES=(eth0)

and now you must create (if it does not exists) a file named /etc/resolv.conf.head and add there your stuff, something like this

nameserver 200.87.10.100
nameserver 4.2.2.2

This way these nameserver will always be on top of the local DNS, it is maybe a bad idea for speed, but at least you will be sure it will work.

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.