I have two network interfaces configured via DHCP. As a result, /etc/resolv.conf
is populated with information coming from the DHCP server.
How can I edit this file?
I know that if I add prepend domain-name-servers 127.0.0.1
to /etc/dhcp/dhclient.conf
I can obtain nameserver 127.0.0.1
as the first (and only) line of /etc/resolv.conf
.
What if I want 127.0.0.1 and only one of the two nameserver addresses provided via DHCP?