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 .

250 questions
251
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,079
198
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,981
  • 2
  • 12
  • 3
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
24
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
  • 563
14
votes
0 answers

How To Auto Add To /etc/resolv.conf?

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, although perhaps I could be wrong. See, as a…
Volomike
  • 2,283
7
votes
0 answers

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 > root and attempting to modify the resolv.conf file I…
Hex02
  • 71
4
votes
1 answer

resolv.conf vs base file

Here is my base file root@iracavcsdbc03:~# cat /etc/resolvconf/resolv.conf.d/base nameserver 1.1.1.1 nameserver 2.2.2.2 nameserver 3.3.3.3 nameserver 4.4.4.4 After running resolvconf -u why does the new generated resolv.conf file only show 3 IPs…
Aneel Khan
  • 41
  • 1
  • 2
4
votes
1 answer

resolv.conf only to be editable by root

What should I do to make /etc/resolv.conf only editable by root? I don't want anything to edit it after I specify my own DNS servers, i.e. only editable by the user with root privileges.
Oxwivi
  • 17,849
3
votes
2 answers

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 this pull service does ●…
user610658
1
vote
2 answers

Name resolver doesn't work

Oh, Hello! Tried to fix name resolution on my Ubuntu 12.04 LTS box using answers read here... no effect at all: Tried to move /etc/resolv.conf link away Tried to change hosts order in /etc/nsswitch.conf Tried to reboot|remove|reconfigure my…
1
vote
0 answers

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 setting up the nameserver 8.8.8.8 but when pinging I…
1
vote
3 answers

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
imren
  • 29
0
votes
2 answers

Problem with resolv.conf

I made these changes to resolv.conf today and when i restarted my laptop i cannot connect to the internet. It says server cant be found. These commands were given to me by unoDNS when trying to delete it from my system. sudo mv /etc/resolv.conf…
user266003
  • 1
  • 1
  • 1
0
votes
0 answers

Trouble with resolv.conf

I recently tried to delete unoDNS from my laptop. A member of their team gave me some commands to input in a terminal. It looked like it changed the nameserver address back to 8.8.8.8. But after I restarted my laptop I cant connect to internet at…
user266003
  • 1
  • 1
  • 1
0
votes
1 answer

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 unlink /etc/resolv.conf sudo ln -sf…
S M
  • 1
1
2