LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Mint (https://www.linuxquestions.org/questions/linux-mint-84/)
-   -   Configuring resolv.conf (https://www.linuxquestions.org/questions/linux-mint-84/configuring-resolv-conf-4175657568/)

notadoc 07-17-2019 01:13 PM

Configuring resolv.conf
 
Mint 18.3 Sylvia
Kernel: 4.8.0-53-generic x86_64 (64 bit)

My /etc/resolv.conf is a symlink to /run/resolvconf/resolv.conf. The header says "Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)"

My question: is there a config file that I can edit to change/rearrange the choices in that dynamic file? Neither /etc/host.conf nor /etc/hosts offer that.

business_kid 07-17-2019 02:03 PM

I guess systemd or Networkmanager puts that together for you - both things I know little about. Can you junk the symlink and write your own?

notadoc 07-18-2019 12:36 PM

The key is the /etc/dhcp/dhclient.conf file. Simply add the following option
Code:

append domain-name-servers xxx.xxx.xxx.xxx;
just after the option
Code:

rfc3442...
at the beginning of the file. The result is to use the local connection's discovered DNS first, then follow with the preferred DNS listing.

Using the
Code:

prepend
keyword puts the preferred DNS first.

Not as hard as I expected it to be.


All times are GMT -5. The time now is 01:46 PM.