Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [resolv.conf]

resolv.conf - resolver configuration file

0
votes
0answers
10 views

Not allowed to edit resolv.conf on Ubuntu

I'm trying to edit the resolv.conf file on my ubuntu 16.04 instance, but I'm unable. Here are the first two lines of the file: # Dynamic resolv.conf(5) file for glibc resolver(3) generated by ...
0
votes
1answer
174 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 ...
0
votes
0answers
45 views

Google Public DNS and `resolv.conf` - Utilize both addresses `8.8.8.8` and `8.8.4.4`

I can make Ubuntu use one of Google's Public DNS's with the following command sudo echo nameserver 8.8.8.8 > /etc/resolv.conf If I want to have the option to use either one, can I issue the same ...
0
votes
1answer
28 views

unable to retain 4 nameservers in resolvconf

Here is my /etc/resolvconf/resolv.conf.d/base file contents: # leave commented out above line lin resolvconf...as its listed in another file. options timeout:1 attempts:1 nameserver 10.0.4.15 ...
0
votes
1answer
60 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
0answers
23 views

Adding options to resolv.conf on Ubuntu Core

I would like to change the DNS timeout in resolv.conf on Ubuntu core. The resolv.conf is generated by resolvconf from the files in /etc/resolvconf/resolv.conf.d and the interface config. The files ...
0
votes
1answer
110 views

Can't use DNS resolver even though I added to /etc/resolv.conf

I'm using a custom Ubuntu and I can't seem to use a DNS resolver. I updated my /etc/resolv.conf file so it would contain the line nameserver 8.8.8.8: # cat /etc/resolv.conf nameserver 8.8.8.8 but ...
0
votes
2answers
80 views

resolv.conf to localhost

For about 2 hours I've been banging my head against a wall trying to get /etc/resolv.conf to use 127.0.0.1 instead of 127.0.0.53 I've just finished grep -r on my entire partition and cannot find ...
1
vote
1answer
260 views

Unable to start resolvconf-pull-resolved

I've installed resolvconf but for some reason resolvconf-pull-resolved doesn't want to initiate, Any idea what is preventing this, I would think that it's systemd but then again i don't even know what ...
0
votes
1answer
339 views

DNS resolution broke after upgrading to 18.04, resolvconf broken or not fully installed

when googling i find stuff like this: askubuntu resolvconf but /etc/resolv.conf doesn't seem to exist sudo dpkg-reconfigure resolvconf returns that resolvconf is broken or not fully installed ...
-1
votes
1answer
497 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
0answers
95 views

nameserver inside /etc/resolv.conf keeps going back to 127.0.0.53 on Ubuntu 18.04 [duplicate]

My Ubuntu 18.04 machine keeps having the nameserver inside /etc/resolv.conf going back to 127.0.0.53. Why is this happening?
1
vote
0answers
118 views

Disabling DNSStubListener causes VM cannot resolve domain names

My VM has been created starting from ubuntu-minimal 18.04 realtebo@192.168.1.224:~$ uname -a Linux pihole3.local 4.15.0-32-generic #35-Ubuntu SMP Fri Aug 10 17:58:07 UTC 2018 x86_64 x86_64 x86_64 ...
0
votes
0answers
61 views

Ubuntu Networking Issue 18.04

The problem is, whenever the system boots, the computer is unable to resolve domain requests. The NetworkManager has the correct DNS set, but it does not appear to be reading the NetworkManager DNS ...
0
votes
0answers
110 views

ubuntu 14.04 Hangs on Restore Resolver State

We have a dell NVR which we've installed ubuntu in it. Every time we re image it, it gives us the restore resolver state and doesn't take us to the login screen. Is there any way to fix this issue? we'...
1
vote
0answers
371 views

Upon boot resolv.conf is empty, but then eventually is populated; why?

I have a few 17.10 instances running in Amazon EC2 on a VPC. When I freshly reboot a server (unsure if it happens on a cold boot, I have not tested), the /etc/resolv.conf file shows as empty: # ...
4
votes
1answer
1k 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/...
1
vote
0answers
110 views

How does DNS resolving and caching work on Ubuntu?

I'm trying to understand more about DNS resolving and caching on Ubuntu 16.04. What does a standard install of Ubuntu uses (systemd, dnsmasq)? what configuration files are used? What processes are ...
1
vote
0answers
677 views

could not resolve archive.ubuntu.com after fresh install of ubuntu 18.04

I can open Firefox and it works well but when I try to run sudo apt update it returns could not resolve archive.ubuntu.com I've tried changing dns server in wifi settings to 8.8.8.8 and 8.8.4.4 ...
9
votes
3answers
16k 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 ...
1
vote
2answers
174 views

Resolver: LAN, VPN and WAN name resolution

I have read the man pages on resolv.conf and resolvconf and resolvconf.conf but don't understand everything and feel I'm a tad lost on how I might (ahem) resolve this problem: Scenario: I have a LAN ...
3
votes
4answers
3k views

Change DNS to Coudflare 1.1.1.1 on Ubuntu 17.10

I'd like to take advantage of the recent Cloudflare 1.1.1.1 DNS service on my Ubuntu (17.10, will be on 18.04 LTS when it lands). I can not get the GUI instruction to work (changing the DNS using ...
0
votes
0answers
46 views

Wireless network seen but can't connect

I'm currently running ubuntu 17.10. I have a D-Link dongle for my wireless. It sees the networks but can't connect. I've tried: Going to resolv.conf and adding nameserver 8.8.8.8 Going to ...
0
votes
0answers
68 views

/run/resolvconf/resolv.conf was dennied to access under SELinux Enforcing mode in Ubuntu 16.04

I'm running Ubuntu Xenial 16.04 in AWS EC2, I installed SELinux and change its mode to Enforcing. I've configured selinux type ssh_port_t to port 22. While I created port forwarding via ssh, I found ...
0
votes
1answer
663 views

Can't change resolv.conf (tried other answers) [duplicate]

Seems that I can't change resolv.conf: changes are reset after reboot or disabling/enabling Wi-Fi. It contains nameserver 127.0.0.1, and I can't connect to any site. When I manually change it to ...
0
votes
1answer
399 views

Unable to configure a secondary DNS server

Network manager wasn't applying the DNS servers that I entered using "Edit Connections" -> "Wired Connection 1" -> IPv4 Settings -> Switch to "Automatic (DHCP) addresses only -> entered in ...
0
votes
1answer
209 views

Set new DNS servers

I recently upgraded to Lubuntu 17.10.1. While setting up my VPN, I headed over to /etc/resolv.conf, to set my dns servers (so as to prevent dns leaks). However, it now reads: This file is managed ...
0
votes
0answers
122 views

Make “mount -o bind /etc/resolv.conf” changes persistent [duplicate]

What does this command do, exactly? mount -o bind /etc/resolv.conf /mnt/etc/resolv.conf It copies the content of my filesystem resolv.conf to the chroot system. But for some reason the network after ...
0
votes
0answers
218 views

resolv.conf not updated

I added our nameserver 10.79.253.10 to /etc/resolvconf/resolv.conf.d/base Then I ran resolvconf -u. Looking at /etc/resolv.conf, it still only says: nameserver 127.0.1.1. What am I doing wrong?
1
vote
1answer
707 views

dns-search vs search option

What is the difference between the following two entries? dns-search in /etc/network/interfaces search in /etc/resolv.conf If they serve the same purpose, which one is the recommended to use and how ...
0
votes
2answers
2k views

Auto generate /etc/resolv.conf [duplicate]

I have manually edited /etc/resolvconf/base to add openDNS name servers, and then run sudo resolvconf -u to update the /etc/resolv.conffile. However changes are discarded on each reboot. How do I ...
1
vote
0answers
394 views

Why do /etc/resolvconf/resolv.conf.d/base contents not appear in /etc/resolv.conf?

I am using openresolv 3.7.2-1 in Ubuntu 16.04.2 LTS (Xenial Xerus). Modifying /etc/resolvconf/resolv.conf.d/head and running resolvconf -u updates /etc/resolv.conf but modifying /etc/resolvconf/resolv....
2
votes
0answers
241 views

Ubuntu 17.10 public hotspot problem

So /etc/resolv.conf doesn't help if i put googles DNS 8.8.8.8 I have public hotspot network were this pc has to work and Artful 17.10 can't connect to that through browser. Error resolving : Name ...
1
vote
1answer
1k views

Setting DNS via NetworkManager/nm-applet doesn't update the /etc/resolv.conf (17.10)

My /etc/resolv.conf shows # Generated by NetworkManager search [value provided by local network] nameserver 127.0.1.1 The nameserver value is not the one provided by the local network (checked using ...
2
votes
1answer
149 views

17.10: Find which script is putting “search somedomain.edu” in resolv.conf on startup

The following files contain a line "search somedomain.edu", which prevents me from accessing that domain (DNS error in a browser). /run/resolvconf/interface/systemd-resolved /run/resolvconf/resolv....
0
votes
1answer
3k views

Ubuntu 16.04 Cannot resolve hostnames

I have weird problem with resolving hostnames on Ubuntu 16.04. I'm searching for solution from friday (4 days!), so I think it's totally not duplicate to similar questions. I have a server in local ...
2
votes
0answers
915 views

resolv.conf does not work as expected

As you can see here (and in man resolv.conf), there is an option named use-vc for resolv.conf to force Ubuntu to use TCP for DNS queries instead of UDP. use-vc (since glibc 2.14) Sets ...
0
votes
1answer
1k views

Unable to stop DNS leak when connecting to VPN in Lubuntu 17.04

Checking doileak.com I always get a DNS server leak on my VPN. All of the hints that I could find say that the DNS servers are only configured through /etc/resolv.conf. The expressvpn software as ...
1
vote
0answers
3k views

Ubuntu 16.04 Cannot Resolve Hostname

I am trying to get my OpenStack instance of Ubuntu 16.04 able to resolve DNS. I just created the instance from the given default Ubuntu image and I am trying to apt-get update my machine. However, I ...
0
votes
0answers
177 views

ARP cannot resolve hostnames after adding dns entries in resolv.conf

After editing /etc/network/interfaces and adding a few nameservers, it adds it to /etc/resolv.conf. Which is all good till here. After rebooting and i try to check local hostnames in my network ...
0
votes
1answer
860 views

No write permissions on a file even with `sudo` [duplicate]

I modified /etc/resolv.conf to configure DNS for my VPN. Now I would like to modify it again but I can't. The operation is not permitted even if I use sudo nano /etc/resolv.conf I tried to start in ...
1
vote
0answers
320 views

resolvconf search no longer working in 17.04

I just upgraded from 16.10 to 17.04 when I did I lost DNS access to my domains which I quickly realized in my resolv.conf file in a search line like: search mydomain.com anotherdomain.com yetanother....
0
votes
1answer
529 views

Removed /run/resolvconf

I have Ubuntu 16.04 and I accidentally removed /run/resolvconf/ and can't install it using apt-get because I get a fetch error. Is there any way to get it back? I am not too knowledgeable of this so I ...
0
votes
0answers
373 views

How to rewrite resolf.conf file in Ubuntu 16.04?

I want to change my DNS entries, but the standard ways don't help me. $ nmcli connection edit myconnect nmcli> set ipv4.dns mydns1, mydns2 nmcli> save When I restart I see the old Google DNS ...
0
votes
1answer
3k views

DNS resolv config

Let me narrate you my small story: So right now, I am using an Ubuntu 16.04 LTS distribution in my lab. After installing Ubuntu, I tried just check my Internet access by googling. However that was ...
2
votes
0answers
1k 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 > ...
46
votes
3answers
78k 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 ...
1
vote
0answers
290 views

Ubuntu ignores my GUI entered nameservers?

I'm on Lubuntu 16.04 and have problems resolving names of my company's network through VPN. It's not so clear to me what has the last say on my system dnsmasq/resolvconf/network-manager... and would ...
0
votes
1answer
522 views

Network devices can use a bind9 server but the server itself can't

I've been working on setting up a bind9 server on my home server running Ubuntu Server 16.04 to allow me to access my services by name rather than an IP address. The bind server itself is (mostly) ...
2
votes
1answer
216 views

DNS errors with PHP script running via Apache2

This seems to be an issue with Apache2 and possibly resolv.conf from what I've read around so far. We have a PHP-based web API running on Ubuntu 14.04 LTS which in turn sometimes talks to another web ...