Questions tagged [resolv.conf]
resolv.conf - resolver configuration file
254
questions
252
votes
20
answers
1.5m
views
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 ...
198
votes
21
answers
609k
views
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 ...
124
votes
13
answers
494k
views
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 ...
88
votes
3
answers
120k
views
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 ...
70
votes
7
answers
295k
views
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
66
votes
4
answers
191k
views
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 ...
63
votes
4
answers
99k
views
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 ...
45
votes
13
answers
118k
views
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 ...
43
votes
5
answers
101k
views
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 ...
42
votes
15
answers
151k
views
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
...
38
votes
5
answers
170k
views
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 ...
36
votes
4
answers
54k
views
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. ...
35
votes
4
answers
164k
views
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 /...
34
votes
3
answers
87k
views
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 ...
25
votes
1
answer
93k
views
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, ...
21
votes
4
answers
53k
views
Resolvconf -u gives the error "resolvconf: Error: /etc/resolv.conf must be a symlink"
I use resolvconf to have static DNS servers set in /etc/resolv.conf. However, when I run sudo resolvconf -u to update /etc/resolv.conf with new static information, I get the error 'resolvconf: Error: /...
20
votes
6
answers
45k
views
host is able to resolve a hostname, ssh isn't
I'm trying to connect from a 10.04 system to a 12.04 system via SSH. Strangely enough the rules in resolv.conf seem to take effect only selectively, which leaves me puzzled. Observe:
[2] user@mach:~$ ...
18
votes
3
answers
182k
views
Editing dns-nameservers in /etc/network/interfaces without a restart [duplicate]
After editing dns-nameservers in /etc/network/interfaces, how do I tell resolvconf(8) to read the new value without restarting networking? (causing a service interruption)
The -u option doesn't seem ...
18
votes
1
answer
70k
views
Why does my name resolution hit the DNS even with a hosts file entry?
I'm running Ubuntu 10.04.2 LTS Desktop. Being a web developer, naturally I created a "me.com" in my /etc/hosts file. Unfortunately, my name resolution is going out to the DNS before first checking my ...
18
votes
7
answers
21k
views
Why does my resolv.conf file get regenerated every time?
My /etc/resolv.conf file gets regenerated every time, making me loose Google DNS servers when I reconnect my 3G modem.
For changing the DNS settings, I looked at http://code.google.com/intl/fr-FR/...
16
votes
4
answers
39k
views
How to override the DHCP-provided nameserver?
I (think) that I've configured a static IP address in /etc/network/interfaces:
# The primary network interface
auto eth0
iface eth0 inet static
address 10.1.1.2
netmask 255.255.255.0
...
16
votes
6
answers
81k
views
DNS issues after upgrading to 20.04
After upgrading to 20.04, both my wired and wireless networking lost access to the internet. I confirmed my drivers were working when I was able to resolve a ping to the Google nameserver 8.8.8.8. Now,...
15
votes
4
answers
63k
views
How to make persistent changes to /etc/resolv.conf Ubuntu 18.10
My resolv.conf file has 'nameserver 127.0.0.53'.
I need to replace it with different value or add another nameserver.
I erased symlink, replaced it with file.
Now it is managed by Network Manager,
...
14
votes
3
answers
19k
views
DNS server address no longer stored in resolv.conf; where is it now?
I sometimes switch DNS servers, using the NetworkManager indicator in the taskbar; this worked fine with previous versions, and actually works fine with 12.04, too, except for one thing: I use Conky ...
14
votes
3
answers
8k
views
systemd-resolved, resolvconf.service, resolvconf and openresolv. Why, which and how?
I'm using a VPN client which adds two name servers to /etc/resolv.conf. All my connections are managed by Network-Manager.
I have to use this VPN client for my work VPN but after Ubuntu went to ...
14
votes
0
answers
16k
views
How To Auto Add To /etc/resolv.conf? [duplicate]
On Ubuntu 10.04 Server, you can edit a file and it will automatically add a nameserver to the /etc/resolv.conf on boot. Unfortunately, Ubuntu 10.04 Desktop does not have this feature that I'm aware of,...
13
votes
4
answers
22k
views
DNS resolver stopped working after upgrade to 20.04
Just after Ubuntu upgrade to 20.04 /etc/resolv.conf contains:
nameserver 127.0.2.1
and it does not work. It works after changing to:
nameserver 127.0.0.53
But it is overridden after each restart ...
13
votes
2
answers
16k
views
Getting openconnect vpn to work through network-manager
This is the same issue as here: Getting openconnect vpn to work through gui , but my additions to it were deleted and I was asked to create a new question.
In fact, there are a number of folks asking ...
12
votes
4
answers
63k
views
/etc/resolv.conf" E166: Can't open linked file for writing
Unable to update resolv.conf file.
/etc/resolv.conf" E166: Can't open linked file for writing
Ubuntu 18.04.1
12
votes
2
answers
40k
views
resolv.conf - No DNS servers known
I am using focal Ubuntu 20.04.1 LTS (hosted virtual machine)
Occasionally after a reboot DNS resolution fails (e.g. ping google.com > Resource temporarily unavailable)
To 'fix' this I reboot the ...
12
votes
3
answers
11k
views
Cannot resolve custom domains when VPN is up
I just upgraded to 12.04 from 11.10, and now I can't resolve custom domains over my VPN (e.g. *.dev.local). It worked splendid before the upgrade.
Both my /etc/resolv.conf and route -n looks exactly ...
11
votes
3
answers
25k
views
/run/resolvconf/resolv.conf gets erased each time I restart, and I can't use internet without it (16.04)
I have been solving issues with my ubuntu - windows partition.
So after having an issue with the clock of the system and i think this triggering that I couldn't log into my user (it just bounced back)...
11
votes
3
answers
39k
views
How do I remove localhost nameserver from resolv.conf
Currently my /etc/resolv.conf reads:
nameserver 127.0.0.1
nameserver 10.255.0.101
nameserver 10.255.0.11
and I want it to instead read:
search [my domain]
nameserver 10.255.0.101
...
11
votes
4
answers
38k
views
18.04: Bionic Beaver: enforce static /etc/resolv.conf
Previously, on Ubuntu 16.04, I felt betrayed when an Ubuntu update installed dnsmasq package, configured it, and gave it precedence over my own super-stable, ultra-fast, and own-configured BIND DNS ...
10
votes
2
answers
20k
views
Un-removable /etc/resolv.conf
During an upgrade to 12.04 today I've got an error when running post-install hook for resolvconf package:
Setting up resolvconf (1.63ubuntu11) ...
resolvconf.postinst: Error: Cannot replace the ...
10
votes
1
answer
60k
views
The "resolv.conf" file becomes empty after each restart [duplicate]
The "/etc/resolv.conf" file becomes empty after each restart and I lose the DNS data set in it. It only contains the following text each time:
# Generated by NetworkManager
What should I do?
9
votes
3
answers
53k
views
How do I set a static DNS nameserver address on Ubuntu Server?
I am trying statically to set DNS server addresses in my Ubuntu server running as virtual machine. I followed all recommendations on official Ubuntu support pages but I simply cannot get rid of my ISP'...
8
votes
2
answers
23k
views
Network configuration: resolv.conf and hosts
I read This manual and I'm a little confused.
This is what I don't undetstand:
When your system tries to resolve a hostname to an IP address or determine the
ostname for an IP address, it refers to ...
8
votes
3
answers
35k
views
Why did I have to remove resolvconf to get dnsmasq to work again?
Yesterday I upgraded to Precise and dnsmasq stopped working. That is, DNS queries to localhost where dnsmasq is listening (127.0.0.1) were refused.
Removing resolvconf (apt-get remove resolvconf) ...
8
votes
8
answers
25k
views
make netplan write resolve.conf
I have an Odroid C2 - a single board computer running 18.04 minimal for ARM. Originally, it was using NetworkManager + systemd-resolved to manage network connections, but since I use only Ethernet and ...
8
votes
1
answer
4k
views
Openconnect in network-manager does not update resolv.conf
I just updated from ubuntu 19.10 to ubuntu 20.04. Now my resolve.conf does not get updated anymore when I connect to vpn with the openconnect thing in the network manager.
This works correctly:
...
7
votes
7
answers
61k
views
Can not edit resolv.conf
I am using Ubuntu 14.04 and I have to edit the resolv.conf file
So this is what I am trying to do
sudo su
vi /etc/resolv.conf
But when I try to edit it says the file is read only
When I try to do ...
7
votes
2
answers
8k
views
How do I activate a local caching nameserver?
I want to have strong DNS cache server on my local host (server). So I need to change name server to my localhost.
How can I change it?
byt this config it seems I must don't change it via editor so ...
7
votes
1
answer
3k
views
Dynamic /etc/resolv.conf file?
I have several Ubuntu servers. Two of them are working as DNS servers. One of my name servers (let's call it DNS1) went down for maintenance.
I sill had another DNS server running (DNS2).
All other ...
7
votes
2
answers
15k
views
Accidentally deleted /etc/resolv.conf and now can't access any domain
I was getting dns probe finished message in chrome on Ubuntu 18.04 so I looked up on the internet and tried to run the following commands.
sudo rm/etc/resolv.conf
sudo ln -s /var/run/resolvconf/...
7
votes
3
answers
11k
views
resolveconf -u keeps adding an unwanted search domain to resolve.conf
I have my desktop computer configured with a static IP address:
However, /etc/resolve.conf keeps getting overwritten with:
nameserver 127.0.0.1
search localdomain example.com
This seems to happen ...
7
votes
0
answers
23k
views
Issue with resolv.conf - no such file or directory
Having a bit of issue restoring my ubuntu box
When I start it I get the following error
Failed to start Clean up any mess left by 0dns-up.....dns-clean.service"
When booting into recovery mode > ...
5
votes
4
answers
35k
views
How to edit /etc/resolv.conf on Ubuntu 12.04
I have two network interfaces configured via DHCP. As a result, /etc/resolv.conf is populated with information coming from the DHCP server.
How can I edit this file?
I know that if I add prepend ...
5
votes
4
answers
21k
views
18.04 Unable to connect to server due to "Temporary failure in name resolution"
I am at a bit of a loss. I am able to perform an nslookup and a dig on the address "imap.comcast.net" but if I try to ping it or connect to it from my application I get a "Temporary failure in name ...
5
votes
4
answers
11k
views
How to prevent Juniper Network Connect breaking DNS resolutions
Juniper Network Connect has been an issue on 64bit Linux for quite sometime. I have found 2 solutions to the Java issue (Could anyone provide a step by step for getting juniper netconnect and citrix? ...