Bienvenido! - Willkommen! - Welcome!

Bitácora Técnica de Tux&Cía., Santa Cruz de la Sierra, BO
Bitácora Central: Tux&Cía.
Bitácora de Información Avanzada: Tux&Cía.-Información
May the source be with you!

Wednesday, April 14, 2010

Configuring DNS servers in GNU/Linux

things I'm missing in ubuntu
 This is a small tutorial to help you configure DNS servers in linux.
Typically ISP's DNS servers are very slow primarily because they are overloaded and cannot handle so many requests.
Opendns is a DNS service has some really good DNS servers which are faster,more secure and definetly more reliable.
The most important being FASTER.So this tutorial will help you change your DNS server from your ISP's DNS servers to OPENDNS servers.
Firstly, so that you know, opendns server IPs are and 
Typically two server ips are given,even from your isp.
The first one is called Primary DNS server and the second is called Secondary DNS server.
OK, now on to the procedure..Its simple!!
Step 1:
Go to Applications - Accessories - Terminal and type
sudo gedit /etc/dhcp3/dhclient.conf 
You will be asked to type in the root password.
After which the dhclient.conf file will open
Step 2:
This is where you enter the DNS information.Go to the end of the file and add the following line to the END of the file and prepend domain-name-servers,;
Step 3:
Save the file and close it.
Step 4:
Thats all, now you will be using opendns servers whenever you use the internet
I have experienced a major change in the speeds while using opendns servers.They are indeed very fast.Hope this helps!
It seems like a nice idea: 
To make the DHCP set up always the same DNS, pointing to a good, reliable fast server. 
The only problem is that it didn't work, and I still have to freaking edit /etc/resolv.conf and manually add my nameservers there everytime I connect to my huawei modem.
This also doesn't help:
It only says to do the samething I already do. I certainlly will research more into this later, but in the meantime I'd appreciate if someone could clarify what's going wrong and how to fix this.
DNS publicos de google que seran gratuitos y sin redireccionamiento y lo mejor sin publicidad pero en si lo esencial es que estas DNS publicas de google se pueden utilizar en sistemas operativos LINUX, WINDOWS Y MAC OS.
Pueden checar el articulo en este link para ampliar su conocimiento.
1. Insertar modem huawei E226.
2. Configurar una conexion de banda ancha movil.
4. Ahora en la pestaña BANDA ANCHA MOVIL.
5. Seleccionar la conexión (en mi caso claro predeterminado).
6. Clic en botón EDITAR.
7. Seleccionar conectar automaticamente lo demas dejarlo tal como esta.
8. Dirigirse a pestaña Ajustes de IPv4.
9. En la opcion METODO seleccionar opción SOLO DIRECCIONES AUTOMATICAS (PPP).
10. En la opcion SERVIDORES DNS copiar y pegar las DNS publicas que ofrece google 
muy fáciles de recordar. (copiar y pegar tal como indicados abajo),
11. Clic al boton APLICAR cerar conexiones de red seleccionar la red para que se conecte y listo pueden navegar libremente con cualquier navegador.
Si desean ampliar mas sobre DNS publicas de google y sobre su implementacion en WINDOWS, MAC OS Y OTRAS DISTRIBUCIONES LINUX pueden checar este link esta en ingles pero con las herramientas de idioma de google pueden traducirlo.

I still don't know how the hell network manager works, but, i do know that resolvconf exists exactly because of programs like network manager conflicting with one another fighting for setting the machine nameserver (which is done in /etc/resolv.conf).
so, i got resolvconf working after reading this:
all i did was setting my /etc/resolv.conf right (as usual) and then typing:

$ resolvconf -u
but it could also have been done by direct editing /etc/resolvconf/run/resolv.conf
there's still some odd behavior, but i'll read more on that later on. at least it's working. 
Hello everyone!! I'm configuring a small imedia linux distribution on a minibox embedded board to build a home made open source router for my "tigo" hawei E226 modem, and I was having the same problem, I found the solution after reading this thread and doing a couple more things:
First I added this line in thw wvdial.conf (which for my distro is in /etc/wvdial.conf):
Auto DNS = off
Because my problem was that the DNS my provider "sents", or at least my modem detects, wheren't any good either, so with that line on the wvdial.conf you avoid your "resolv.conf" file from being written over by the wvdial dialer. More info on this (
I commented the line on my /etc/ppp/wvdial file "usepeerdns" (like andis.machine suggested) and finnaly I ran "pppoe-setup" and specified my two DNS servers.
In the end I Re-edited the /etc/resolv.conf and put the correct DNS servers, and it has been working ever since.

No comments: