Questions tagged [resolv.conf]
resolv.conf - resolver configuration file
249
questions
4
votes
1
answer
15k
views
Ubuntu 20.04 "Temporary failure in name resolution" - recently reinstalled
I rent a vps from contabo for about half a year now, it worked fine until now, because it started producing "Temporary failure in name resolution" errors. I read that this is a DNS error, I tried ...
0
votes
0
answers
61
views
Ubuntu 23.10 "Temporary failure in name resolution"
Recently my Ubuntu server has started giving me "Temporary failure in name resolution" when using ping or apt update.
The server is plugged in via Ethernet and I haven't had any DNS issues ...
-1
votes
0
answers
36
views
Is it safe to uninstall resolvconf if ubuntu >= 18.04?
I recently installed an ubuntu 20.04 for testing, and noticed it did not have resolvconf installed on it.
Going over the changelogs of Ubuntu, it seems this is part of Ubuntu 18: https://wiki.ubuntu....
7
votes
7
answers
56k
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 ...
0
votes
2
answers
9k
views
How can I refresh resolv.conf after changing the resolv options in the interfaces file?
After bringing up a dhcp controlled instance in AWS I have made changes to the /etc/network/interfaces file for custom nameserver and DNS search strings:
auto lo
auto eth0
iface lo inet loopback
dns-...
0
votes
1
answer
160
views
wsl2: resolv.conf stubbornly being regenerated [duplicate]
My /etc/wsl.conf:
[network]
generateResolvConf = false
And yet my /etc/resolv.conf continues to regenerate.
I specify:
nameserver 8.8.8.8
Only to find it changed to:
# This file was automatically ...
0
votes
1
answer
247
views
Ubuntu 22.04 is connected to internet, but cannot open any website in the browser
HELP!!!
everything was ok until I went to the office and connected my laptop to the Wi-Fi.
then I came home and everything was destroyed!
My Ubuntu is connected to wifi, and the ping of 8.8.8.8 is ok, ...
42
votes
12
answers
106k
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
100k
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 ...
0
votes
1
answer
94
views
Should I edit resolv.conf?
I am using U20 LTS, our Search Domain changed. I did change that in netplan Config but when I grep for old domain in /etc there is still the old one in resolv.conf.
In the file it says I shouldn't ...
12
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 ...
0
votes
1
answer
9k
views
Ubuntu 20.04 LTS /etc/resolv.conf is getting overwritten after either netplan apply or server reboot and not able access DNS
Ubuntu 20.04 LTS /etc/resolv.conf is getting overwritten after either netplan apply or server reboot. We are not using networkmanager.
We did the following changes not sure if this will help:
sudo ...
0
votes
1
answer
110
views
DNS resolve sometimes connection timed out
Good day to all. Made a command: nslookup kafka.zxc.stage @dns1.prod And sometimes I get an answer - ;; connection timed out; no servers could be reached
For example, when I run a command every second,...
8
votes
7
answers
24k
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 ...
11
votes
4
answers
60k
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
0
votes
1
answer
59
views
something wont allow me to reach websites
I'm connected to WiFi but can't reach web pages, Firefox returns error: Having trouble finding that site. Can't connect to server at github.com (and all other sites I've tried to open).
I tried ...
0
votes
1
answer
203
views
Resolv.conf is out of control
I have tried God knows how many ways to resolve this and get it under control, but, it doesnt seem to take. I only want the single nameserver in there as 10.0.0.8. Can someone please help.
I have ...
0
votes
1
answer
159
views
Configuring the DNS client
I use WiFi to connect my Ubuntu os running on a Macbook Air to my router. In order to send traffic, I went to configure its network interface by entering the code:
sudo ifconfig wlp3s0 192.168.1.10 ...
15
votes
4
answers
61k
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,
...
21
votes
4
answers
52k
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: /...
1
vote
1
answer
212
views
Ubuntu22 DNS broken after power short
After a blackout, I had to fsck the partition to be able to login. After that, the clock was a few hours off, which caused the internet not to work. Eventually I got the time correct, but the internet ...
16
votes
6
answers
78k
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,...
0
votes
0
answers
49
views
Old IP displayed in route table after Ubuntu image clone on new server
I have cloned an existing Ubuntu image off of our AWS server, upgraded to 20.04, and am trying to configure the connection to the outside world. I've been running into a lot issues on the frontend ...
1
vote
1
answer
903
views
How to prevent warp-cli from overwriting /etc/resolv.conf file
Whenever I connect with warp-cli, it always generates a new resolv.conf file, as a result, if I ever disconnect from warp-cli I lose my internet connection, even though ping 8.8.8.8 and ping localhost ...
42
votes
15
answers
147k
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
...
1
vote
3
answers
12k
views
error writing /etc/resolv.conf operation not permitted
I write sudo nano /etc/resolv.conf terminal and add nameserver 8.8.8.8 nameserver 8.8.4.4 but it gives error operation not permitted so I could not reach websites how to fix the error
34
votes
3
answers
75k
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 ...
1
vote
2
answers
5k
views
Temporary failure in name resolution Ubuntu 22.04 -> 22.10
I recently upgraded from 22.04 to 22.10.
Now I get a 'Temporary failure in name resolution' when I try to ping a domain name
a
$sudo resolvectl status shows this for eth0:
Link 3 (eth0)
Current Scopes:...
123
votes
13
answers
478k
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 ...
0
votes
1
answer
7k
views
DNS resolution not working as expected with Pi Hole
I am running Ubuntu 20.04 and the machine is connected to my LAN via wifi.
I setup a raspberry pi hole on my local network and I want it to be my primary DNS.
The command resolvectl status looks OK ...
0
votes
1
answer
185
views
Ubuntu DNS nameserver
I am new to Ubuntu, and i have a ubuntu workstation installed with ubuntu 20.04. I edited the \etc\resolv.config file previously and add nameservers 8.8.8.8 and nameservers 1.1.1.1. Now i need to add ...
0
votes
1
answer
307
views
resolv.h not found in Ubuntu 22.04 (Jammy)
Just wanted to know where is this resolv.h configuration file is located in Ubuntu 22.04 LTS Jammy Jellyfish release.
I can able to find resolv.h and res_state.h in RHEL / Fedora distros but cannot ...
0
votes
1
answer
467
views
bind9, system-resolved and avahi
I've set bind9 with DDNS and following the advice to disable systemd-resolved. All works fine so far.
I need to use avahi, but avahi complaining about missing /etc/resolv.conf (normally generated by ...
0
votes
0
answers
224
views
"resolvectl dns" gives empty output
I do on my VPS with Ubuntu 22 server (new, clean setup):
root@vm905709:~# resolvectl dns ens3
Link 2 (ens3):
root@vm905709:~#
(BTW, I did it on the same VPS with Debian and it was the same.)
And ...
0
votes
0
answers
636
views
Temporary failure in name resolution, Ping not working, Missing /etc/resolv.conf
$ ping google.com
ping: google.com: Temporary failure in name resolution
So I checked for /etc/resolv.conf but its missing
$ ll /etc/resolv.conf
lrwxrwxrwx 1 root root 39 Jul 31 2020 /etc/resolv....
0
votes
1
answer
4k
views
Ubuntu 22.04 has internet and wifi but dns probe finished gives bad config error
I get this error every time I turn on the computer.
enter image description here
sudo systemctl restart NetworkManager.service
every time i run this command it changes the etc/resolv.conf file
...
1
vote
1
answer
1k
views
Ubuntu 22.04 resolv.conf/DNS problem, cannot access internet
My Ubuntu 22.04 computer was working fine. Somehow it crashed, upon reboot, I could not access the internet. Network works fine, able to access other network devices. I traced the issue to what I ...
0
votes
0
answers
660
views
How to fix failing name resolution
I have a quite new Kubuntu installation and I messed its name resolution up somehow.
root @ asus-f751s ~ # host www.ecosia.org ...
1
vote
0
answers
69
views
Ubuntu 20.04 temporary failure in name resolution
I have this problem when I try to connect to the internet. The real problem is that I want to update my system, then I realized that I can't access the internet. I modified my resolv.conf file by ...
0
votes
0
answers
25
views
Ubuntu internet error After Upgrade to 20 from 18 [duplicate]
I just made an upgrade on my ubuntu from ubuntu 18 to ubuntu 20 now I cant even ping google.com in my server and i have added 8.8.8.8 to my nameserver but i still get the issues.
ping google.com: ...
-2
votes
1
answer
2k
views
Ubuntu 22.04: The DNS Cache Problem [closed]
INTRO:
I'm sure quite a few people have run into problems with DNS caching. There are plenty of hints and tips for flushing DNS cache in Ubuntu, and the more rare info about disabling it altogether. ...
0
votes
0
answers
195
views
Netplan nameservers settings not used without resolv.conf entry
I read here that you're usually not supposed to edit resolv.conf, since it is managed by other services. The server is running Ubuntu 22.04.1 LTS.
However, the DNS on my server is not working unless I ...
0
votes
3
answers
2k
views
How do I stop "search home.network" from appearing in my resolv.conf?
"search home.network" keeps appearing my resolv.conf. Because of that some web pages don't load. Is there some way of disabling it? My resolv.conf is managed by Puppet.
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 ...
0
votes
1
answer
424
views
`resolvconf` changing current DNS. Netplan stict using nameserver
I need to have my own DNS server in the corporate.
I have the following config set for netplan:
network:
version: 2
renderer: NetworkManager
ethernets:
eno1:
dhcp4: yes
...
0
votes
0
answers
303
views
using the value from resolv.conf in a config file
Windows Subsystem for Linux (WSL2) generates as new resolv.conf file on every reboot with the content like so
nameserver 123.45.67.8
in the ~/.bashrc file, I am using this value like below so that ...
65
votes
4
answers
185k
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 ...
0
votes
1
answer
3k
views
Default search domain for /etc/resolv.conf
With systemd-resolved, where does DOMAINS in search come from?
/etc/systemd/resolved.conf
[Resolve]
DNS=1.1.1.1
Domains=lan
/etc/resolv.conf
nameserver 127.0.0.53
search lan DOMAINS <----
lan is ...
0
votes
0
answers
155
views
wrong DNS resolution
I have 2 servers with similar configuration but one of them give me different result from a nslookup command
The first one is working correctly and here is the answer I have:
Server: 8.8.8.8
...
251
votes
20
answers
1.4m
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 ...