Questions tagged [resolv.conf]

resolv.conf - resolver configuration file

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

impossible to repair/reinstall resolve.conf

the link of my /etc/resolve.conf is broken (screen resolve.conf missing), i try to reinstall it but i cant (error when i try to reinstall it) i also try to install it by using wget but my dns missing ...
user avatar
0 votes
1 answer
158 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 ...
user avatar
  • 101
0 votes
0 answers
87 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 ...
user avatar
0 votes
0 answers
24 views

resolv.conf file errors [duplicate]

I'm very new to Ubuntu (20.4.4) and for a few days now I can't connect to the internet. Well, I can get a WIFI connection, but there's no internet. After digging I think I traced it back to my resolv....
user avatar
1 vote
1 answer
110 views

Ubuntu DNS doesn't failover to the secondary when primary can't resolve?

I'm running an Ubuntu 18.04 in our company. I tried to implement dual DNS server in our LAN. DNS1: 192.168.1.1 (BIND9), DNS2: 192.168.1.2 (dnsmasq) Here is the config file in the client: ### cat ...
user avatar
  • 137
0 votes
1 answer
248 views

Where is the resolvconf database, and how to reset it?

I am running Ubuntu 21.10 Desktop. For my work, I have to jump between different VPNs, and in the past I had to adjust DNS nameservers for some of them, too. I did this just with editing my /etc/...
user avatar
1 vote
0 answers
1k views

Ubuntu 21.10: Problems with Internet access / DNS

The question is partly a duplicate of multiple questions, but since I don't have enough reputation for commenting, this is my take on trying to understand the issue and prevent it from repeating. So, ...
user avatar
  • 133
0 votes
0 answers
87 views

How do I script resolve.conf to force only a specific url to use a DNS in Ubuntu 21.10

Here is my current /etc/resolvconf/resolv.conf.d/head file in Ubuntu 21.10 # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR ...
user avatar
1 vote
3 answers
947 views

nameserver goes missing from /etc/resolv.conf

I have a problem where the line nameserver 8.8.8.8 just disappears from my /etc/resolv.conf. This might happen every few days or so and I haven't noticed anything that would be linked to this issue. ...
user avatar
  • 11
0 votes
0 answers
1k views

Ubuntu Server 20.04.3 LTS 00-installer-config.yaml or resolv.conf for DNS settings

So I'm freaking confused. I'm trying to specify local DNS servers for our domain. This Ubuntu Server 20.04.3 doesn't use the old interfaces file. I configured the yaml file for netplan, # This ...
user avatar
0 votes
1 answer
102 views

Why is DNS Resolution failing when default gateway is changed to backup circuit?

We have a strange problem that I hope someone can help with. We have a building that has a fiber circuit and a backup Comcast circuit (coax). The system is setup like this: Fiber NID (cat6 cable to ...
user avatar
  • 1
0 votes
0 answers
1k views

Changing DNS nameservers with systemd-resolve doesn't persist

let me start by saying that I'm not sure whether I'm running Ubuntu server or Ubuntu desktop, that being said, my 'server' is running on a VPS. Here is the output of lsb_release -a: No LSB modules are ...
user avatar
  • 1
1 vote
0 answers
74 views

/etc/resolv.conf not getting properly regenerated after VPN disconnect

I'm running Ubuntu 20.04.3 LTS. After booting, and before connecting to my VPN, my /etc/resolv.conf looks like this: # This file is managed by man:systemd-resolved(8). Do not edit. # # This is a ...
user avatar
  • 111
0 votes
1 answer
243 views

Why do two Ubuntu systems in the same network behave differently in DNS resolution?

EDIT (tl;dr) I seem to have identified part of the problem here, as at least the differences in /etc/resolv.conf and related files are gone. But I still cannot connect via WiFi, so other difference ...
user avatar
6 votes
4 answers
14k 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 ...
user avatar
1 vote
0 answers
89 views

How can I tell what app, script, or service is responsible for changing resolv.conf?

I am aware that DNS and other name resolution is controlled most proximately by /etc/resolv.conf, and that resolvconf / resolvectl / systemd-resolve is most proximately responsible for the contents of ...
user avatar
  • 71
0 votes
1 answer
3k views

How to permanently save the content of /etc/resolv.conf

As I mentioned in the title, ctrl+s doesn't permanently save the content of that file, if I rebooted my machine I lost all the configuration I did in there, an help, please.
user avatar
1 vote
0 answers
103 views

accidentally modified /etc/resolv.conf and now cannot acces the Internet

I'm using ubuntu 18.04 on my dell inspiron 5402.I was annoyed about frequently getting a question mark on that wifi icon,so I followed some method on the Internet and unfortunately got this problem. ...
user avatar
  • 11
0 votes
0 answers
276 views

“Connect: Network is unreachable” when pinging 8.8.8.8

I installed lubuntu 18.04 onto my Windows 10 laptop, but I am unable to ping 8.8.8.8. Here are my specs for my computer: Architecture: i686 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian ...
user avatar
0 votes
0 answers
69 views

Abnormal DNS output

Why does dnsleaktest.com find previous DNS address/multiple new DNS addresses? Now I decided to try a new one and to my surprise the dnsleaktest.com gives me three diferent outputs as I check my DNS - ...
user avatar
0 votes
0 answers
733 views

Local resolver with PowerDNS and Ubuntu 20.04

I installed PowerDNS as authoritative server for my domain. I had to remove systemd-resolved package for the installation of pdns-server and pdns-backend-mysql package. After the installation, my ...
user avatar
  • 163
4 votes
1 answer
2k views

on 20.04 after a recent upgrade I am unable to clear DNS cache

I recently changed the NS records for a website and when I dig that using online tool such https://toolbox.googleapps.com/apps/dig/#NS/ I can see that it is pointing to the correct place. and even my ...
user avatar
0 votes
1 answer
308 views

Can ping and traceroute but not able to browse certain websites

I can ping and traceroute with the help of mtr -rw but I simply cannot browse certain websites. I have found no common denominator between these websites to understand where the problem lies. The only ...
user avatar
  • 413
0 votes
0 answers
116 views

ubuntu 20.04 freezes with error Server returned error NXDOMAIN

my ubuntu 20.04 machine has been periodically freezing over the past several weeks. When I hold the power button down and power off the machine and restart, looking at /var/log/syslog, the last entry ...
user avatar
  • 259
0 votes
0 answers
94 views

how come resolvconf update /etc/resolve.conf file even if systemd-resovled service is disabled?

I disabled systemd-resoved service and set nameserver in raspberry pi to my local dns, but I discovered it on reboot it got changed. To nameserver I don't know where it came from and how it is ...
user avatar
0 votes
0 answers
552 views

resolv.conf and sporadic slow host resolving (DNS issue) - Ubuntu 20.04

since last autumn I'm struggeling to find what's wrong with my network configuration on Ubuntustudio 20.04 which is basically a Ubuntu 20.04. I installed from scratch last autumn with the official ...
user avatar
  • 103
0 votes
0 answers
142 views

Connectivity issues after VPN disconnect: Ping but no DNS

PROBLEM I often use NordVPN on my linux machine (20.04.1), which uses the systemd-resolve network manager. After I disconnect from the VPN, I often have connectivity issues: I CAN ping 8.8.8.8 I ...
user avatar
0 votes
0 answers
340 views

/etc/resolv.conf not populated on boot, only after subsequent reboot

We have an Ubuntu Server 16.04.7 virtual machine running on top of Proxmox 6.3. On reboot of the host, this machine comes up with an "empty" /etc/resolv.conf: # Dynamic resolv.conf(5) file ...
user avatar
7 votes
2 answers
16k 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 ...
user avatar
  • 73
0 votes
0 answers
236 views

How to permamently add a nameserver to the /etc/resolv.conf?

I daily need to connect to a VPN from my Ubuntu Desktop 20.04, and each time I do that I need to edit the resolv.conf file, since it is constantly updated by NetworkManager. Its content is reset to: # ...
user avatar
  • 344
0 votes
0 answers
127 views

How to resolve single-name (no dot) domain names with upstream DNS server?

I am using dnsmasq as the DNS repeater on my network, and it has the ability to answer domain name queries for entries in that machine's hosts file. This gives me a convenient way to propagate a ...
user avatar
0 votes
2 answers
383 views

L2TP VPN connected but no traffic / not working

I'm using Kubuntu 20.04 and having issues with L2TP VPN By the way it was working fine up until today, would connect and all traffic was fine. Now the VPN connects but I cant do anything.. even www....
user avatar
  • 101
0 votes
1 answer
2k 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
user avatar
  • 19
0 votes
1 answer
1k views

Ubuntu DNS Issues

Using Ubuntu 18.04 - My DNS suddenly stopped working. Just had installed Docker and minikube etc - not sure if this caused it - no idea. I can ping an IP (like Google) but cannot ping google.com. $ ...
user avatar
  • 163
2 votes
0 answers
470 views

Ubuntu Server Name Resolution fails after upgrading to 20.04 from 18.04

Immediately after upgrading Ubuntu Server from 18.04 to 20.04 name resolution stopped working. If I edit /etc/resolv.conf and replace nameserver 127.0.0.1 with nameserver 8.8.8.8 then everything works ...
user avatar
  • 31
0 votes
1 answer
260 views

On Samba DCs running on Ubuntu Server 20.04, is DNS resolution handled by by the netplan config or by resolv.conf?

Apologies if this might be a silly question. I'm reading that best practice when having two DCs in a domain is to point their DNS addresses at each other and also at themselves. So: DC1 nameservers = ...
user avatar
0 votes
0 answers
81 views

Resolv.conf file gets rewrited everytime

On my lubuntu 20.04 LTS I disabled the resolved service before I installed pihole (as dns server for my home network) which in turn installed dnsmasq too. I also modified the resolv.conf file to ...
user avatar
  • 101
2 votes
0 answers
949 views

Why curl and apt update resolve DNS names differently?

I am running Ubuntu 18.04 on Windows 10 WSL2. The command sudo apt update could not resolve all the DNS names (for example archive.ubuntu.com): np@DESKTOP-LF80KK2:/mnt/c/Users/niko$ sudo apt update ...
user avatar
  • 1,378
3 votes
2 answers
3k views

resolv.conf mismatch netplan configuration

I'm setting up an Ubuntu Server 20.04 system as a gateway between my LAN and the WAN. I'm not able to configure the DNS properly. I have 2 netplan config files for my 2 interfaces. Internal eth ...
user avatar
  • 131
0 votes
2 answers
117 views

My server cant make a connection to the outside [closed]

I am running a newly installed Ubuntu Server 20.04. Every time I try to access the internet or download something I get this screen. # This file is managed by man:systemd-resolved(8). Do not edit. # # ...
user avatar
  • 23
1 vote
1 answer
1k views

NetworkManager updates to a bad nameserver in /etc/resolv.conf on restart

Whenever I restart my computer NetworkManager sets /etc/resolv.conf to this, my DNS stops working and I get this error in Chrome. /etc/resolv.conf # Generated by NetworkManager search tampabay.rr.com ...
user avatar
11 votes
5 answers
53k 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,...
user avatar
  • 141
5 votes
1 answer
2k 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: ...
user avatar
  • 245
9 votes
4 answers
15k 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 ...
user avatar
4 votes
1 answer
14k 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 ...
user avatar
-1 votes
1 answer
392 views

Can't get to some web sites

I changed my DNS settings in /etc/resolv.conf and /systemd/resolved.conf to Google DNS and I cannot access some websites. Solved: Turns out I have changed my DNS configuration in the past, member ...
user avatar
  • 357
0 votes
1 answer
5k 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 ...
user avatar
  • 101
0 votes
0 answers
832 views

Prefer AAAA (IPv6) DNS lookups before A (IPv4) lookups

I want AAAA requests first as required by https://www.rfc-editor.org/rfc/rfc8305#section-3 Both queries SHOULD be made as soon after each other as possible, with the AAAA query made first but I ...
user avatar
0 votes
1 answer
974 views

System error resolving - Device or resource busy, cannot apt-get and no internet after I moved - VirtualBox

I use Ubuntu 18.04 64bit in Oracle VirtualBox, on a Windows 10 PC. I moved with my PC to a different flat. Both before and now I connect to the internet via wifi but of course now I have a different ...
user avatar
  • 1
1 vote
0 answers
1k views

19.10 Ubuntu “Temporary failure in name resolution” Suddenly!

An Ubuntu 19.10 machine has been experiencing sudden loss of network connectivity. It is on the same network as several Windows and Mac systems which never experience these network problems. When the ...
user avatar
  • 873

1
2 3 4 5