What is the difference between the following two entries?
dns-search
in/etc/network/interfaces
search
in/etc/resolv.conf
If they serve the same purpose, which one is the recommended to use and how to edit it?
Is there a scenario where one may shadow the other?
The various
dns-*
entries in/etc/network/interfaces
are used to create corresponding entries in/etc/resolv.conf
(depending on what's actually creating/etc/resolv.conf
, of course). From the Debian Wiki:And the Ubuntu LTS Server Guide:
Thus,
resolvconf
uses thesedns-*
entries, as well as the configuration from/etc/resolvconf/resolv.conf.d/*
to create/etc/resolv.conf
.