LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 07-17-2019, 01:13 PM   #1
notadoc
Member
 
Registered: Jan 2015
Posts: 113

Rep: Reputation: Disabled
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.
 
Old 07-17-2019, 02:03 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
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?
 
Old 07-18-2019, 12:36 PM   #3
notadoc
Member
 
Registered: Jan 2015
Posts: 113

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring Resolv.conf SBN Linux - General 1 02-06-2008 05:13 AM
Configuring Resolv.conf SBN Linux - Server 1 01-14-2008 01:56 AM
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 09:21 AM
/etc/resolv.conf problem I guess...... cvlinux Linux - Networking 3 09-13-2001 03:46 PM
resolv.conf SCSI problem Rutnut Linux - Newbie 1 12-22-2000 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 10:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration