Questions tagged [resolvconf]

38 questions
27
votes
4 answers

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 ... dns-nameservers 127.0.0.2 …
0xC0000022L
  • 16,189
  • 24
  • 102
  • 168
18
votes
1 answer

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 problem probably belongs on the Raspberry Pi…
Toshi Taperek
  • 183
  • 1
  • 1
  • 4
12
votes
3 answers

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 nameserver 192.168.0.254 Network 2 (tun0): domain…
Gary van der Merwe
  • 1,630
  • 2
  • 14
  • 28
11
votes
6 answers

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 Internet Service Provider! How to fix this DNS leak? I…
PlasmaBinturong
  • 619
  • 1
  • 7
  • 15
10
votes
3 answers

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. Example: Physically connected at site1, DHCP pushes DNS…
Tim Jones
  • 153
  • 1
  • 2
  • 6
8
votes
3 answers

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 for glibc resolver(3) generated by resolvconf(8) To…
JeremyCanfield
  • 322
  • 2
  • 6
  • 13
7
votes
2 answers

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 Vagrantfile as follows: server.vm.network…
techraf
  • 5,831
  • 10
  • 33
  • 51
7
votes
3 answers

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 following input: nameserver…
sisko
  • 341
  • 2
  • 4
  • 12
6
votes
1 answer

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 add or remove information to that database. But,…
jgomo3
  • 161
  • 1
  • 5
6
votes
3 answers

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 article I added supersede domain-name-servers…
Red
  • 1,422
  • 1
  • 15
  • 18
6
votes
4 answers

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 I make it append stuff to the end (i.e. give…
Eugene Yarmash
  • 14,675
  • 14
  • 50
  • 57
5
votes
1 answer

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) # See resolvconf.conf(5) for…
Michele
  • 153
  • 1
  • 4
4
votes
1 answer

/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 set in the network configs in the GUI of my…
Kauabanga
  • 81
  • 5
3
votes
2 answers

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/systemd/resolve/stub-resolv.conf and whose contents…
quiet-ranger
  • 131
  • 1
  • 4
3
votes
1 answer

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 which isn't working.) Then I tried to ping an…
Sven K.
  • 41
  • 3
1
2 3