Stack Exchange Network

Stack Exchange network consists of 175 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]

The resolv.conf file contains information that is read by the resolver (a set of C library routines that provide access to the Internet Domain Name System (DNS).)

0
votes
1answer
26 views

From server cannot ping server itself by its hostname while can ping by its IP

I host an ubuntu server at a data center and worked well for years till last night the server can not ping itself by host name. No config has been changed. Here are what it can/can not do now. From ...
0
votes
0answers
28 views

How to auto populate /etc/resolv.conf when using a static configuration

I'm on an IoT device running busybox with glibc. When I have a DHCP setup in /etc/network/interfaces then udhcpc atuomatically updates /etc/resolv.conf. I can see this by clearing /etc/resolv.conf and ...
1
vote
4answers
775 views

How shall I understand the format of `/etc/resolv.conf`?

How shall I understand the format of /etc/resolv.conf? $ cat /etc/resolv.conf # This file is managed by man:systemd-resolved(8). Do not edit. # # This is a dynamic resolv.conf file for connecting ...
0
votes
1answer
73 views

resolv.conf always empty

I have 2 different embedded devices...an old one running TI arago Linux and a Xilinx device (petalinux). On both I see the same outcome when adding dns-nameservers to /etc/network/interfaces and ...
0
votes
0answers
31 views

resolv.conf dns-nameservers not working, but nameserver works

Hi all this is the content of my /etc/network/interface file on my uuntu 16.04 pc iface eth0 inet static address 192.168.0.2 netmask 255.255.255.0 gateway 192.168.0.1 dns-...
0
votes
1answer
41 views

Devuan RFS. How to automate resolution of internal IP (LAN) addresses

System correctly resolves external hostnames (bbc.co.uk for example) but will not resolve any internal (LAN) ones. The question here is how to automate LAN lookups without having to modify hosts and ...
0
votes
1answer
408 views

How to setup DNS manually on Linux?

In Linux /etc/resolv.conf get often overwritten when we setup the DNS, because of the multitude of programs managing the DNS servers. How to properly setup the DNS ?
1
vote
1answer
93 views

Which resolv.conf is mandatory and how can I influence this?

When I use my home WiFi my Network Manager constantly loses connection to the right nameserver. It looks like it has lost the connection at all, but disconnect and connect manually gives me access to ...
2
votes
0answers
50 views

Use DHCP-provided DNS or not based on connected network

My current networking setup (on Arch Linux) involves: stubby to resolve DNS requests with DNS-over-TLS. dnsmasq to cache DNS queries (and nothing else). openresolv to manage resolv.conf. ...
0
votes
1answer
98 views

resolv.conf + is it necessary to defined the domain in resolv.conf [duplicate]

We have a DNS server at 103.16.36.88 that resolves all hosts and IP addresses. more /etc/resolv.conf # Generated by NetworkManager search Jupiter.com nameserver 103.16.36.88 domain Jupiter.com But ...
0
votes
2answers
363 views

resolv.conf overwritten every time

I got this drwxrwxr-x 3 root tunnel 100 date and time . drwxr-xr-x 33 root root 860 date and time … -rwxrwxr-x 1 root tunnel 0 date and time enable-updates drwxrwxr-x 2 root tunnel 40 date and time ...
0
votes
1answer
530 views

how to install resolvconf in centos

I'm trying to install resolvconf in centos. In Ubuntu I'm able to install resolvconf sudo apt-get install resolvconf. For centos, I tried to do the same by sudo yum install resolvconf but I get ...
0
votes
1answer
53 views

How to locate the module that handles DNS resolving in buildroot?

I have 2 different Linux devices, one's kernel is done using ltib (L from now on), and the other's by buildroot (B from now on). I manage to add a DNS resolver to B by using: echo "nameserver 8.8....
0
votes
2answers
117 views

not all nameservers are looked up

So I have multiple nameservers in my /etc/resolv.conf, but regarding the order in which they appear, I am able or not to resolve my corporate VPN hostnames: when VPN's DNS precedes my local one, I am ...
1
vote
1answer
86 views

How do I specify the order that Network-Manager populates /etc/resolv.conf

Network Manager is posting the correct name servers and search domains into /etc/resolv.conf when I restart the network. However, it is not in an order I like. How can I tell Network Manager to ...
1
vote
0answers
43 views

NetworkManager doesn't read a new domain in ifcfg-eth0

I'm using a RHEL 6.7 and I need to add a new DOMAIN to resolv.conf that is generated by NetworkManager. In /etc/sysconfig/network-scripts/ifcfg-eth0 there are already other domains that are in resolv....
1
vote
1answer
365 views

Can not resolve domains in all programs except ping

I've got a server for HPC usage, and it's RedHat. It appears to have a strange bug. I tried: $ curl https://www.aliyun.com/ -vv Couldn't resolve host 'www.aliyun.com' I tried these as well: wget ...
0
votes
0answers
96 views

How to update resolv.conf? [duplicate]

I am experiencing DNS resolution issues. I can ping an I.P. on my LAN but when I type it's URL into my browser it does not resolve to the I.P. and I can't access the webpage. I took a look at the ...
0
votes
3answers
1k views

How to make name server address permanent in /etc/resolv.conf even after system reboot? [duplicate]

I changed nameserver in /etc/resolv.conf and after a system reboot it resets the nameserver back to what it was. I am using linux mint 19 (Cinnamon). This file is managed by man:systemd-resolved(8). ...
-1
votes
1answer
58 views

Linux IP resolution issue [closed]

I uploaded a new Ubuntu based MISP virtual machine on my VMWare ESX. Configured it to use DHCP and IP address 192.168.10.6 was assigned to it. I am able to get the dashboard of the MISP application ...
15
votes
3answers
3k views

Who reads /etc/resolv.conf?

My Centos 7 server doesn't resolve domain names properly. From what I see, in modern Linux systems /etc/resolv.conf is often generated with dhclient, dnsmasq or Network Manager. Thus I have a ...
2
votes
1answer
1k views

Question about why DNS resolv.conf stopped working

I have a question about why my DNS settings got messed up. I've fixed the issue (I think), but I'm curious as to why it happened. My Linux Mint 18.3 laptop had been working flawlessly. I recently ...
1
vote
1answer
3k views

Alpine Linux sometimes DNS is not resolved

Sometimes when I run the commands: sudo apk update && sudo apk upgrade Over Alpine linux fails to update the packages even if connected to internet. But if I do sudo su "echo 'nameserver 8.8....
1
vote
1answer
2k views

How to specify more than one DNS in resolvconf.conf?

I am trying to make resolvconf prepend two additional nameservers to /etc/resolv.conf when run with "resolvconf -u". My /etc/resolvconf.conf file is as follows: # Configuration for resolvconf(8) # ...
0
votes
0answers
58 views

Resolving hostnames querying multiple DNS servers

We have two isolated private network domains dc.example.com and cloud.example.com and both of those have their own DNS servers. But we have a client machine connected to both of those networks. How do ...
5
votes
4answers
9k views

How to fix OpenVPN DNS leak

I just subscribed to a VPN provider. I have Xubuntu 17.10, openvpn 2.4.3. After launching the openvpn command I check the IP (fine) and performed a simple DNS leak test: not fine, it shows my ...
1
vote
1answer
325 views

How do I configure my DNS / DHCP / gateway server with 2 NICs to use its own DNS?

My SOHO lan is served by my main machine which operates as a router, firewall, gateway, DNS, DHCP server and backup server. I've set up bind9 and isc-dhcp-server to do DDNS for the lan clients, while ...
1
vote
1answer
802 views

Why is my resolv.conf being deleted? [duplicate]

I've built a custom linux system using Yocto. It uses busybox. I have most everything working, except I can't have a static dns resolver address because /etc/resolv.conf is being deleted on every ...
0
votes
0answers
135 views

How do I mount a file on top of a broken symbolic link?

In preparation of a chroot I'm doing an mount --bind /etc/resolv.conf ${MOUNTPOINT}/etc/resolv.conf. I need this because the ${MOUNTPOINT} contains a broken etc/resolv.conf. However, mount is ...
1
vote
1answer
1k views

Default DNS server settings

I recently updated my Ubuntu which ended in a shot DNS config. I am able to add a nameserver to /etc/resolvconf/resolv.conf.d/tail (and restart the service) to get DNS resolution for everything ...
0
votes
1answer
316 views

CentOS 7: Stop NetworkManager from adding search domain based on hostname

If i set machine hostname to say, machine.example.com NetworkManager adds the example.com to /etc/resolv.conf, something like: search example.com search1.com However, example.com on the search ...
3
votes
1answer
1k views

DNS settings not working on lubuntu 17.10

Recently my DNS settings stopped working. They are the same settings I've had for a while now, and I don't know what has changed. Now each time I restart my system, I have no internet connection, ...
2
votes
4answers
1k views

dnsmasq & systemd Causing Intermittent CPU Spikes

Problem: Running Ubuntu 17.10 I have been trying to resolv (hehe) this issue for about a week now and despite countless Google searches and about 20 different attempts, I can not stop dnsmasq from ...
1
vote
0answers
75 views

DNS query to all available nameservers

I have managed to populate my /etc/resolv.conf with several nameservers when I bring up my VPN. The nameservers have two zones of operation, internal (through the VPN) and public (Exposed). Some of ...
0
votes
1answer
534 views

FreeBSD w/ two network interfaces and different domains

I have a FreeBSD machine with two NICs set up as follows: em0 ---> IP set via DHCP (192.168.1.0/24). "home" domain em1 ---> IP set statically (10.0.0.2). "lab" domain For all intents and ...
1
vote
1answer
126 views

In Windriver Linux how /etc/resolv.conf file gets generated? [closed]

In Windriver Linux how /etc/resolv.conf file gets generated? Version- 8.0, kernel version 4.1.21 And if in case when I build an image if I package resolv.conf file too will the content of it gets ...
3
votes
2answers
3k views

How do I stop Debian from overwriting /etc/resolv.conf and overwriting my VPN's nameservers? [duplicate]

Background I'm running Debian stretch/stable; I installed openvpn from the repo abd downloaded the configuration file us1041.conf (as an example) from my VPN provider into /etc/openvpn/us1041.conf. I ...
2
votes
2answers
745 views

resolv.conf rewritten by DHCP even after setting the NIC as static, RHEL 7

I am facing a strange situation on all my RHEL 7 servers. All the RHEL 7 VMs are provisioned using a provisioning tool which connects to a VM offering a DHCP IP, once provisioning is complete we run a ...
5
votes
2answers
2k views

What is causing the changes in /etc/resolver/ on MacOS Sierra to be noticed

I wanted to use non-default DNS resolver for one specific domain, and the first idea was to simply use local dnsmasq. While looking for MacOS version, I found out that I can achieve the same simply by ...
0
votes
1answer
364 views

adding 2 domains each with 2 nameservers in aix 6.1 resolv.conf

How would you configure the resolv.conf if you need to connect AIX to 2 domains where each domain has 2 nameservers? For example domaina has servers 10.1.2.3, 10.1.2.4 and domainb has servers 20.1.2.3,...
1
vote
1answer
390 views

How to update nsswitch to use the second DNS server too if there is an NXDOMAIN?

The resolv.conf looks like this: machine:~ # cat /etc/resolv.conf search foo.bar nameserver DNSSERVERIP1 nameserver DNSSERVERIP2 machine:~ # The first DNSSERVERIP1 doesn't know about the ...
1
vote
1answer
4k views

What does “search localdomain” do in resolv.conf?

When connecting to the Internet by default I get two lines in my /etc/resolv.conf file: search localdomain nameserver {ipofmyrouter} I'd like to know what exactly "search localdomain" means there. I ...
1
vote
1answer
135 views

Why is resolv.conf emptied every time I dis/connect from the Internet in Debian?

I'm using Debian 9.1 with KDE and I noticed that resolv.conf gets cleared every time I disconnect or connect to the Internet. Why is that? Why doesn't it keep its contents? If its contents (at least ...
2
votes
1answer
810 views

How to reorder /etc/resolv.conf at load time [duplicate]

I have a CentOS system that retrieves its upstream DNS servers via DHCP. I want to run DNSMasq on this box and use it as a server to resolve some hostnames for development. The problem is when my ...
1
vote
2answers
5k views

search domain in resolv.conf is not appending to hosts when doing ping or other network communciation

I am trying to find out why multiple search domains do not work with Debian 8.8.0. If you add the search domains in /etc/resolv.conf it will only work with one of them & in this case domain1.local ...
5
votes
1answer
4k views

grub recovery mode: etc/resolv.conf: no such file or directory

I’ve installed Ubuntu 16.04 on my laptop a few months ago and suddenly I can t get past the splash screen. (I see the red dots gradually becoming white and vice-versa, so something is happening, but ...
0
votes
2answers
1k views

How to setup NordVNP Nameservers for VPN + non-VPN use in NordVPN?

I am trying to setup my VPN connections of NordVPN such that I can use internet without VPN nameservers and internet with VPN. Code in /etc/resolv.conf setup by the official NordVPN instructions in ...
2
votes
2answers
2k views

Cannot rename resolv.conf file as root

I am trying to activate NordVPN CyberSec by completing the following instructions in Debian 9. I should be able to do the changes as root and with sudo like described for Ubuntu in the thread Should ...
3
votes
1answer
1k views

How to stop openconnect from changing DNS settings

Since my college is using this horrible Cisco AnyConnect VPN, I am trying to find my way around their client software and discovered openconnect. So far it works great and thanks to a different ...
4
votes
1answer
2k views

How do I make resolv.conf work the old way on modern Linux distributions?

In /etc/resolv.conf on modern distros link Mint 17 and Ubuntu 16, there's a warning: # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND ...