Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [resolvconf]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
16k views

How do I permanently configure the DNS resolution in Ubuntu for ALL programs/layers for specific interfaces

Is there a way I can permanently set the DNS preference of my Ubuntu laptop for specific network interfaces? I am relying on a wifi network that is not that predictable. I don't have access to the ...
TPPZ's user avatar
  • 537
1 vote
1 answer
442 views

resolvconf package create corrupt /etc/resolv.conf file

I'm having a weird issue under debian 11 with resolvconf package. No matter what kind of configuration I throw in, the /etc/resolv.conf file created by resolvconf service is kinda corrupt. Dig says: ...
user3450548's user avatar
  • 2,944
5 votes
1 answer
573 views

/etc/resolv.conf gets auto updated by protonvpn?

Since I have installed protonvpn the reslov.conf file always gets overwritten or sets back to ::1. I always have to manually edit the file before I can access the internet. It doesn´t matter what I ...
Kauabanga's user avatar
  • 111
1 vote
1 answer
281 views

No DNS resolve on intranet clients when internet modem has disconnected from internet

This is a very peculiar issue. I have a SOHO in my home that looks roughly like this: internet->-|ISPmodem|->-|Firewall/DHCP/DNS/HTTP server|->-intranet where ISP modem is not used as a ...
nass's user avatar
  • 1,468
0 votes
0 answers
221 views

avahi gives correct ip for local name, but ssh connects to 127.0.0.2

I have a current bullseye debian system with avahi installed and observe a puzzling problem: avahi-resolve gais.local -n4 returns: gais.local 10.0.0.106 which seems correct. However, ping or ssh ...
user855443's user avatar
4 votes
2 answers
15k views

How to configure resolv.conf

I recently run into an apparent DNS resolution issue which I documented here and this led me to investigate /etc/resolv.conf further. On my Linux Mint machine, this is a symlink that points to /run/...
quiet-ranger's user avatar
3 votes
1 answer
2k views

Domain names ending with .local not resolved

I have a strange problem resolving .local hosts on my linux (ubuntu) desktop. (I noticed that because my printer stops working. I figured out that the IP address of the printer is resolved using mdns ...
Sven K.'s user avatar
  • 41
2 votes
1 answer
400 views

name_servers= from resolvconf.conf are not prepended, they're used alone

I enabled rc-manager=resolvconf in NetworkManager.conf and now resolvconf is used to maintain resolv.conf. Currently, I have just one wired connection and my dhcp server returns 2 search domains and 4 ...
basin's user avatar
  • 2,061
0 votes
1 answer
4k views

Revert to default DNS /etc/resolv.conf settings on Debian

I had default Debian DNS settings on my laptop, but I couldn't connect to a corporate remote PC with it. Then I decided to edit DNS servers to corporate ones by editing /etc/resolv.conf. I've added ...
Vladimir Markiev's user avatar
-1 votes
2 answers
8k views

Change resolv.conf

bug: resolv.conf auto-populates search and nameserver seeking: permanent or temporary (run each time system boots.) recommended solution: resolvconf package solves the auto-population issue (not to be ...
rakis's user avatar
  • 9
20 votes
1 answer
17k views

What is the difference between resolvconf, systemd-resolve, and avahi?

I'm currently working on a project that has required some DNS troubleshooting. However I am fairly new to the wonderful world of networking and I'm at a bit of a loss as to where to begin. My specific ...
Toshi Taperek's user avatar
0 votes
1 answer
2k views

Host configured with both resolvconf and dnsmasq, restarting dnsmasq keeps pointing to old servers

I have an Ubuntu 16.04.2 LTS host. It is configured to use dnsmasq for DNS forwarding, rather than use resolv.conf populated with nameservers. The configuration is standard wherein resolv.conf just ...
Kahn's user avatar
  • 1,702
0 votes
1 answer
796 views

fedora strongswan resolvconf: Interface can't be the loopback interface

I am getting this error when trying to use sudo strongswan up CONNECTION_NAME on Fedora 29 installing DNS server ###.##.#.## via resolvconf resolvconf: Interface can't be the loopback interface (lo). ...
Ben's user avatar
  • 101
1 vote
2 answers
7k views

how to install resolvconf in centos

I'm trying to install resolvconf in centos. In Ubuntu I'm able to install resolvconf sudo apt-get install resolvconf. For centos, I tried to do the same by sudo yum install resolvconf but I get ...
Rajkumar Natarajan's user avatar
0 votes
0 answers
548 views

How to update resolv.conf? [duplicate]

I am experiencing DNS resolution issues. I can ping an I.P. on my LAN but when I type it's URL into my browser it does not resolve to the I.P. and I can't access the webpage. I took a look at the ...
MarkMark's user avatar
  • 583
5 votes
1 answer
10k views

How to specify more than one DNS in resolvconf.conf?

I am trying to make resolvconf prepend two additional nameservers to /etc/resolv.conf when run with "resolvconf -u". My /etc/resolvconf.conf file is as follows: # Configuration for resolvconf(8) # ...
Michele's user avatar
  • 153
11 votes
6 answers
31k views

How to fix OpenVPN DNS leak

I just subscribed to a VPN provider. I have Xubuntu 17.10, openvpn 2.4.3. After launching the openvpn command I check the IP (fine) and performed a simple DNS leak test: not fine, it shows my ...
PlasmaBinturong's user avatar
1 vote
1 answer
929 views

How do I configure my DNS / DHCP / gateway server with 2 NICs to use its own DNS?

My SOHO lan is served by my main machine which operates as a router, firewall, gateway, DNS, DHCP server and backup server. I've set up bind9 and isc-dhcp-server to do DDNS for the lan clients, while ...
Adam's user avatar
  • 133
1 vote
0 answers
687 views

How do I mount a file on top of a broken symbolic link?

In preparation of a chroot I'm doing an mount --bind /etc/resolv.conf ${MOUNTPOINT}/etc/resolv.conf. I need this because the ${MOUNTPOINT} contains a broken etc/resolv.conf. However, mount is ...
MSalters's user avatar
  • 421
1 vote
1 answer
3k views

Default DNS server settings

I recently updated my Ubuntu which ended in a shot DNS config. I am able to add a nameserver to /etc/resolvconf/resolv.conf.d/tail (and restart the service) to get DNS resolution for everything ...
user278636's user avatar
3 votes
4 answers
5k views

dnsmasq & systemd Causing Intermittent CPU Spikes

Problem: Running Ubuntu 17.10 I have been trying to resolv (hehe) this issue for about a week now and despite countless Google searches and about 20 different attempts, I can not stop dnsmasq from ...
Jonny Asmar's user avatar
0 votes
0 answers
544 views

No DNS after upgrade-manager upgrade

I upgraded a Ubuntu Zesty to Artufl over SSH using upgrade-manager. All went well except for DNS. Name resolution fails, including ping. I still have an IP and I can SSH into it after reboot, but that ...
user avatar
6 votes
1 answer
979 views

How to query the resolvconf database?

The Description of resolveconf in it's manual page tells us: "The resolvconf package comprises a simple database for run-time nameserver information ...". What is clear in the manual page is how to ...
jgomo3's user avatar
  • 161
2 votes
1 answer
261 views

Prevent resolvconf package assign localhost if named bind9/dnsmasq is found on host

Resolvconf is a package born to handle different specific situations like lans with dhcp, vpn, and other situation where everyone try to change manually the /etc/resolv.conf file. It has an algorithm ...
user3450548's user avatar
  • 2,944
1 vote
3 answers
25k views

Kali Linux resolvconf symlinks broken after every reboot

I recently had to force my kali linux laptop to power off due to a desktop freeze. Now, after every reboot, DNS resolving is broken for browsers and tools like apt-get and ping, even though tools like ...
Luke Sheppard's user avatar
9 votes
3 answers
28k views

Dhclient not updating /etc/resolv.conf

On Linux Mint, when I view the /etc/resolv.conf file, the first comment states that the /etc/resolv.conf file is generated by resolvconf(8). ~ $ cat /etc/resolv.conf # Dynamic resolv.conf(5) file ...
JeremyCanfield's user avatar
7 votes
4 answers
9k views

How to stop dhclient from updating resolvconf on Debian?

I want to use certain DNS servers on my Debian, regardless of whatever I get through DHCP. I'm trying to configure dhclient to ignore those, but I can't seem to get it to work. Per advice from this ...
Red's user avatar
  • 1,462
2 votes
1 answer
4k views

How to know where resolv.conf entries come from?

I use resolvconf for nameserver management because my OpenVPN requires it. However, I notice that it generates nameserver information that is not exactly how I would want it: # Dynamic resolv.conf(5) ...
Red's user avatar
  • 1,462
2 votes
3 answers
3k views

(Raspian) DHCP startup race conditions - lots of service failures at startup (no DNS for ~5-10 seconds)

(Edit: This applies to much more than postfix; it's just where I noticed/debugged it) I've installed postfix, but when it starts up and creates its chroot, it gets an empty copy of /etc/resolv.conf ...
Danny Tuppeny's user avatar
7 votes
2 answers
7k views

How to disable a specific interface (dhclient) from resolvconf?

I am using ubuntu/trusty64 Vagrant box with VirtualBox. I want to permanently disable nameserver 10.0.2.3 set by resolvconf based on Vagrant's default eth0 interface. I have a network defined in my ...
techraf's user avatar
  • 5,961
7 votes
3 answers
16k views

Preserving changed in resolv.conf across reboots with resolvconf

What is the best way to edit the resolv.conf file? I wasn't familiar with setting proxies until a task to configure a server came along. I manually edited my /etc/resolv.conf file and included the ...
sisko's user avatar
  • 341
1 vote
1 answer
201 views

Ubuntu 14.04.02LTS resolvconf -u creates an invalid line "nameserver Google's" in resolv.conf

NetworkManager is not installed. /etc/network/interfaces had a group of lines as follows; ###################### # EXTERNAL INTERFACE # ###################### auto eth2 iface eth2 inet static ...
Selma's user avatar
  • 11
10 votes
3 answers
5k views

OpenVPN, resolvconf, and DNS domain resolution

While at site1, I need to connect to site2 via OpenVPN. Once connected, the OpenVPN site2 pushes a DNS nameserver and domain search options. This causes all name resolutions for site1 to fail. ...
Tim Jones's user avatar
  • 153
0 votes
1 answer
2k views

How to force nm-tool to update its DNS servers

Using Ubuntu 14.04LTS and having a problem with changing DNS. I can change servers in the /etc/resoolvconf/resolv.conf.d/base and head files and restart resolvconf using sudo resolvconf -u and it will ...
user53029's user avatar
  • 2,833
3 votes
1 answer
1k views

resolvconf writing invalid resolv.conf file

Every time I connect to my VPN I lose DNS with an error of, "cannot parse /etc/resolv.conf" The offending line is line 1 being an empty "domain". So after connecting to the VPN my resolv.conf file ...
OverworkedTechydude's user avatar
6 votes
4 answers
7k views

How to make resolvconf append nameservers to the list instead of prepending them?

I'm trying to configure OpenVPN to update DNS-servers as described here. That seems to work, but resolvconf prepends nameservers (and also search domains) to the list of existing nameservers. How can ...
Eugene Yarmash's user avatar
30 votes
4 answers
229k views

Ubuntu: How to configure DNS servers in /etc/network/interfaces correctly for resolvconf?

All examples I have seen of configurations (/etc/network/interfaces) showed that you configure an interface and then underneath that gave the dns-* lines such as: auto eth0 iface eth0 inet static ...
0xC0000022L's user avatar
  • 16.7k
12 votes
3 answers
29k views

How to get networkmanager to configure domain specific name servers with openresolv + dnsmasq

I often connect to multiple network simultaneously. Each of these networks provide nameserver configuration via dhcp. E.g. Network 1: (eth0): domain company1.corp # nameserver 192.168.0.253 ...
Gary van der Merwe's user avatar