Re: What value does putting dns-nameservers in interfaces do?
2005/9/1, Eric Brown <firstname.lastname@example.org>:
> In testing, I'm installing postfix and it is pulling in this
> resolvconf package. resolvconf is trying to tell me that it is much
> better to put my name servers in /etc/network/interfaces. But why?
> What is the benefit?
> Does I need this line for each defined interface or just at the top
> of the file for all interfaces?
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact email@example.com
They're for each interface.
I think that the reason is because you can have different interfaces
connecting by different ways (for example in a notebook); when you
connect by ppp or by dhcp normally the nameservers are defined by
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
iface lo inet loopback
# The primary network interface
iface eth0 inet static
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 10.0.0.86 220.127.116.11 18.104.22.168
iface ath0 inet dhcp
Franco Gorziglia Cheviakoff