How to setup a default DNS
Hi,
I have done the configuration of the wired network interface eth0 in the file /etc/network/interfaces, and it seems ok: Code:
#This file describes the network interfaces available on your system Is there a way to setup a default nameserver? And what is the file I need to edit for this? |
in the ifcfg-eth0
add DNS1=x.x.x.x NAMESERVER=x.x.x.x /etc/resolv.conf likes DNS1= and ifcfg likes NAMESERVER= so this makes them both happy |
Quote:
|
Hi,
I did not understant both posts at all. I am using Debian Lenny. I put Code:
nameserver 150.163.27.9 Code:
# This file describes the network interfaces available on your system |
You need to prepend the DNS address in /etc/dhcp3/dhclient.conf
prepend domain-name-servers 208.67.222.222,208.67.220.220; those are OpenDNS servers, you can put any other if you want |
Hi scrooge74,
I am trying what you say. Do you know if it works with more then 2 dns addresses? Thanks. |
Quote:
Well open dns instructions are to use both of them (one is backup) and if you remember in XP you had two spots for the same. Here you can check the instructions |
All times are GMT -5. The time now is 10:22 PM. |