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).)

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

Why is my /etc/resolv.conf not correctly populating?

I am wondering what causes this to happen. I am using a WiFi connection (wlan0) in my /etc/network/interfaces file. With the settings below I can successfully ping 8.8.8.8 but I am unable to use "apt-...
0
votes
0answers
39 views

Ubuntu 18 to 19 upgrade, static bonded /etc/network/interfaces' DNS not in resolve.conf after boot until manual ifup/down

Upgraded a working Ubuntu 18.04LTS to Ubuntu 19.10. The DNS name specified in /etc/network/interfaces for my static, bonded interface is not in /etc/resolv.conf after I reboot, until I log in and ...
1
vote
2answers
94 views

I use only dhcpcd and I want to make /etc/resolv.conf add search domain.local

I have a number of machines which do not use a network manager, and only use dhcpcd for setting the IP address. For example, my raspberry pi 4. I have statically assigned the IP address in the /etc/...
0
votes
0answers
24 views

web browser stuck in dns look up, but drill result is good

web browser (tried both ff and chrome, similar symptom) stuck in DNS look-up for very long time. but drill shows reasonable results. what could have been the problem? I noticed drill using different ...
1
vote
1answer
45 views

Strange issue with DNS: drill works but getent hosts does not

I'm running Arch Linux ARM on a Raspberry Pi 4. I'm currently having an issue with the domain resolution. The "user space" applications including ping, web browser, etc. do not resolve hosts, although ...
5
votes
1answer
76 views

Going all-in on DNSSEC

I have been doing an effort to go full on DNSSEC on my system with the following setup: dnscrypt-proxy installed, up and running on 127.0.0.1 with require_dnssec = true systemd-resolved running, with ...
2
votes
0answers
44 views

How to make custom DNS servers show up in resolv.conf automatically after prepending DNS servers in Kali Linux?

I prepended DNS servers in dhclient.conf as such: prepend domain-name-servers 208.67.222.222, 1.1.1.1, 8.8.8.8; I restarted network using: $service network-manager restart So far so good but when ...
1
vote
0answers
173 views

What's the difference between /run/systemd/resolve/stub-resolv.conf and /run/systemd/resolve/resolv.conf?

For configuring custom DNS servers in a brand new Kubuntu 19.10 laptop it wasn't enough with adding to /etc/systemd/resolved.conf: DNS=77.88.8.7 77.88.8.3 #Yandex's DNS with no porn even on Google ...
0
votes
1answer
42 views

Network problems after system reboot - Ubuntu 18.04 Server

I have a problem with one of my Ubuntu 18.04 servers. After a recent power cut, I can no longer connect to it from outside the network. I'm currently SSHing to it through another server in my ...
0
votes
0answers
70 views

resolv.conf is configured, but DNS not working

I am stuck with DNS issue on Debian server. My resolv.conf configuration is nameserver 192.168.1.3 When I try to ping google.com, I have "Temporary failure in name resolution". So, I add 8.8.8.8 ...
3
votes
0answers
129 views

Make one program use a special resolv.conf

I want to cheat a program to use a special /etc/resolv.conf file, that in turn will force it to use a nonstandard nameserver. The obvious solution is to recreate the whole filesystem except one file ...
0
votes
1answer
228 views

Ubuntu server second network card is disabled

I have a physical server that has two network cards. One of them is on the motherboard (card A) and the other is a new one that I added by myself (card B). this command: lshw -class network show ...
6
votes
2answers
986 views

What overwrites /etc/resolv.conf roughly every hour?

I'm trying to add a search line to /etc/resolv.conf I've added it directly, as an append command in /etc/dhcp/dhclient.conf and as a nameservers block in /etc/netplan/50-cloud-init.yaml. After ...
2
votes
1answer
307 views

DNS issues on a single Wifi - Linux Mint 19.1

I'm having DNS problems with one WiFi network which I've been using for a long time. I tried to do an hotspot with my phone and everything worked as normal, so the issue is only on that network. ping ...
-1
votes
1answer
28 views

Is it ok to combine machines with DNS server management and machines that do host lookups through a hosts file?

We have a cluster of Linux machines. DNS of these machines is managed by a DNS server (a Windows machine with DNS records). Now we want to add an additional cluster with Linux machines that would do ...
0
votes
2answers
100 views

resolv.conf always query both servers

Is there any way to force resolv.conf to always query all servers for an IP? Currently if I have nameserver 1.1.1.1 nameserver 8.8.8.8 It will try 1.1.1.1 first. If there is no response in 5 seconds ...
0
votes
0answers
21 views

Local hostnames not resolved after a VPN connection is established

The context: I have a raspberry pi headless torrent box. It downloads torrents to a local SMB share which is mounted with autofs. As I download torrents I also use a VPN. It is set up with OpenVPN ...
0
votes
1answer
355 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
187 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 ...
2
votes
4answers
4k 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
643 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
57 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
49 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 ...
1
vote
1answer
5k 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
220 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
82 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
364 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
3answers
2k views

resolv.conf overwritten every time [duplicate]

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
1k 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
195 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
510 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
1k 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
64 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
1k 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
296 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
3k 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
66 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 ...
16
votes
3answers
4k 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
2k 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 ...
4
votes
2answers
6k 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
3k 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) # ...
1
vote
0answers
184 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 ...
7
votes
5answers
14k 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
434 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
2k 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 ...
1
vote
0answers
200 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
440 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 ...
2
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
2k 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 ...