Questions tagged [resolv.conf]

resolv.conf - resolver configuration file

The resolver is a set of routines in the C library that provide access to the Internet Domain Name System (DNS). The resolver configuration file contains information that is read by the resolver routines the first time they are invoked by a process. The file is designed to be human readable and contains a list of keywords with values that provide various types of resolver information.

Not to be confused with "resolvconf", a program that manages the resolv.conf file.

See also .

256 questions
258
votes
20 answers

How do I add a DNS server via resolv.conf?

Is /etc/resolv.conf useless in Ubuntu 12.04 LTS (Precise Pangolin)? I see that the DNS server information is stored in NetworkManager now. The nmcli command line tool can list that for you. If I want to add one more DNS server, will adding it to…
PnotNP
  • 3,209
199
votes
21 answers

How do I include lines in resolv.conf that won't get lost on reboot?

I have finally migrated to 12.04 from 7.10. I have one last part to complete but I am stumped. I am using Puppet on each server, and in the past I have included a nameserver address and a search domain name for the puppetmaster in resolv.conf.…
Sam
  • 1,991
  • 2
  • 12
  • 3
129
votes
13 answers

How do I get resolvconf to regenerate resolv.conf after I change /etc/network/interfaces?

After updating /etc/network/interfaces with something very similar to below, how do I get /etc/resolv.conf to update? I tried (as root) resolver -u, service networking restart but they didn't work. I also fixed the symlink for resolv.conf and tried…
null
  • 1,423
88
votes
3 answers

How can I flush the DNS on Ubuntu 17.04?

How can I flush the DNS on Ubuntu 17.04? I seem to have a few DNS issues at the moment since upgrading to 17.04 from 16.10 and went to flush the DNS but I can't find how to. Can anyone tell me please?
dibs
  • 3,539
70
votes
7 answers

How to set the fully qualified domain name in 12.04?

I tried adding dns-domain domain.com to /etc/network/interfaces with no luck. When I run hostname -d I get an empty string
Drew
  • 801
67
votes
4 answers

network manager: how to stop nm updating /etc/resolv.conf

I do not want network manager to add DNS servers received from DHCP to my /etc/resolv.conf. When configuring from GUI/Connections/IPV4 and choose the method Automatic (address only) it still adds DNS servers received via DHCP. Is it possible to do…
64
votes
4 answers

nameserver 127.0.1.1 in resolv.conf won't go away!

I've read that I should have nameserver 127.0.1.1 in my /etc/resolv.conf file only if my machine has its own DNS server. Since it doesn't, having it causes problems. But no matter what I do I can not get rid of it! Here are the things I've done so…
Mehran
  • 1,827
52
votes
14 answers

Temporary Failure in name resolution on WSL

Running Ubuntu on WSL and trying to push to github and download new python modules using pip and I get this error. Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by…
m_bash
  • 621
  • 1
  • 5
  • 4
43
votes
15 answers

resolv.conf keeps getting reset by something

I need help figuring out why my resolv.conf keeps changing to this, causing me to not be able to access the outside internet and only the local network: $ cat /etc/resolv.conf nameserver 192.168.16.1 domain localdomain search localdomain I thought…
jontsai
  • 539
43
votes
5 answers

NetworkManager not populating resolv.conf

I recently upgraded from 11.10 to 12.04, and now NetworkManager isn't populating /etc/resolv.conf when connecting to wireless networks, when it had been working perfectly in 11.10. I'm not seeing any explicit errors in either the NetworkManager, UI…
Cerin
  • 6,923
42
votes
3 answers

Make /etc/resolv.conf changes permanent in WSL 2

On WSL 2, when I try to connect to a website, I get an issue: $ ping www.google.com ping: www.google.com: Temporary failure in name resolution Now, to fix this, I had to add /etc/wsl.conf with this content: [network] generateResolvConf = true And…
41
votes
5 answers

How to restore/recreate etc/resolv.conf files

I deleted both the resolvconf folder and the resolv.conf file in /etc by mistake, assuming that resolvconf was causing UCK to fail. Now the application has upgraded, fixing the issue, but it says no file named resolv.conf in /etc. What it says is…
beeju
  • 3,123
36
votes
4 answers

16.10 fail to resolve DNS

After upgrading my 16.04-installation to 16.10, I have trouble with DNS. First I got problems a couple of times when connected to WiFi, while it worked on ethernet. Now it seems to work on WiFi also. Not sure why, and if it is in any way related to…
aweibell
  • 542
36
votes
4 answers

Should I edit my resolv.conf file to fix wrong DNS problem?

I have the problem that my Ubuntu machine uses the wrong DNS server. For some reason the machine queries localhost for DNS information. I have added the DNS server in the network settings GUI, but /etc/resolv.conf still contains 127.0.0.1 as the DNS…
Ahatius
  • 2,137
25
votes
1 answer

What does "sudo echo nameserver 8.8.8.8 > /etc/resolv.conf" do?

Can someone please tell me what sudo echo nameserver 8.8.8.8 > /etc/resolv.conf does? I used to have random dropping of internet connection for 15 seconds to 3 mins but after using this command, internet connection is working like a charm. I am just…
Jeanno
  • 583
1
2 3
17 18