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
1 answer
20 views

Ubuntu 20.04 systemd-resolved should resolve to different dns servers based on search domain

I am using Ubuntu 20.04 and systemd-resolved to resolve dns queries. Machine is attached to 1 interface. network: ethernets: eth0: dhcp4: true set-name: eth0 nameservers: ...
user avatar
1 vote
0 answers
32 views

Networkmanager is populating resolv.conf with incorrect information and I can't override

NetworkManager always sets my DNS server in /etc/resolv.conf to be 192.168.1.1 even though my router address is 192.168.18.1. Manually setting it to the latter works, but is overwritten constantly ...
user avatar
  • 11
0 votes
0 answers
59 views

Kali Linux 2022.1 Fresh installation DNS Problems resolv.conf missing [duplicate]

I am dealing with DNS Problems on my freshly installed Kali Linux Machine. I can connected to my Home Network, wired and wireless. I can also Ping my default Gateway and Google DNS Server 8.8.8.8 . ...
user avatar
0 votes
0 answers
44 views

how to verify the domain name of remote machine without using ssh

is it possible to verify the domain name of linux remote machine without using ssh? for example with ssh is like this ssh remote_machine hosname -d but in case we cant use ssh , then what are the ...
user avatar
  • 10.9k
2 votes
2 answers
384 views

How to configure resolv.conf

I recently run into an apparent DNS resolution issue which I documented here and this led me to investigate /etc/resolv.conf further. On my Linux Mint machine, this is a symlink that points to /run/...
user avatar
0 votes
1 answer
38 views

RDNSS support on Debian 11

As far as I tried, RDDNS isn't supported natively on Debian 11. I manually installed rdnssd and IPv6 DNS appeared in resolv.conf. Is RDDNS natively supported on Debian 11 (this means that I would have ...
user avatar
0 votes
0 answers
1k views

Where should I configure DNS in Debian 11?

I'm using Debian 11 (Bullseye). I'd like to use a different DNS server. I found the file /etc/resolv.conf. It looks like this (by default): nameserver 192.168.1.1 nameserver 1.1.1.1 nameserver 8.8.8.8 ...
user avatar
  • 239
0 votes
1 answer
178 views

What is the relation between host.conf and resolv.conf

I am using ubuntu. I see the following information from the manpage: For /etc/host.conf (man host.conf) host.conf - resolver configuration file The file /etc/host.conf contains configuration ...
user avatar
  • 281
0 votes
1 answer
2k views

DNS Resolution / Resolved not working on Fedora 35

DNS resolution has broken on my laptop, I'm running Fedora 35 The issue started occurring today, the machine wasn't used for several days and had died due to discharge (it might have been on linux at ...
user avatar
  • 11
0 votes
0 answers
203 views

Custom nameservers not resolving on Debian 11 on Hetzner root server

I am at my wits end. I've spent the last two days trying to set custom nameservers on a Debian 11 Bullseye installation. Debian is installed through Hetzner's installimage script. Now, the recursive ...
user avatar
0 votes
1 answer
584 views

Pop_OS! 21.04 - DNS not working

Edit: this problem may be related to the fact that my resolv.conf file is no longer a symlink due to my previous use of ProtonVPN... Edit 2: just tried re-linking it to /run/resolvconf/resolv.conf and ...
user avatar
-1 votes
2 answers
152 views

Dynamically update resolv.conf when created by DHCP in limited embeded environment

I am working with a custom Linux image for an embedded device built with yocto. It has no network management other than the interface configurations for ifup/ifdown. /etc/resolv.conf is created dhcp (...
user avatar
0 votes
0 answers
24 views

Ubuntu 20.04 a couple of internet addresses does not relove

Symptoms that i know of so far, cannot ping or visit with Firefox: hg.mozilla.org and ciscobinary.openh264.org - Ubuntu 20.04 always fails these two addresses and it starts after a week or two. ...
user avatar
  • 123
1 vote
1 answer
290 views

APT - temporary failure in name resolution error

I have a really annoying & confusing issue about domain name resolution, focused only on apt/apt-get utility. When I try apt update, it gives me (sorry in french) root@myhostname:~# apt update Err ...
user avatar
  • 111
0 votes
0 answers
44 views

How do I set my dns nameservers in /etc/resolv.conf without it being overwritten by my isp? [duplicate]

All I want is to set a custom dns name server, to that of https://dns.watch but my resolvconf is getting overwritten by the dns settings set on my router. I can't change the router dns or disable this ...
user avatar
0 votes
1 answer
458 views

Configure split DNS resolver to always use VPN-internal nameserver for fixed list of domains

What's the most reliable configuration to have a fixed list of internal domains always resolved through an internal nameserver, even if it's unreachable because the VPN is down, while still using the ...
user avatar
  • 5,625
0 votes
2 answers
1k views

Client (Ubuntu 20.04) cannot resolve internet pages while connected to the VPN WireGuard Server

I've setup a WireGuard VPN, however after successfully connecting with the following command the browser is not loading web pages from the internet: wg-quick up `pwd`/myifwg0.conf I checked the ...
user avatar
  • 355
3 votes
0 answers
63 views

Domain search entries in resolv.conf and ifcfg-ens33 files

In CentOS, when we modify /etc/sysconfig/network-scripts/ifcfg-ens33 file for multiple domain search entries, should we also manually change /etc/resolv.conf ?
user avatar
  • 131
1 vote
2 answers
920 views

How to use a second nameserver if the first can't resolve a domain?

How can I configure a linux computer to use a second DNS server if the default server fails to find the IP for a domain? I tried adding both to /etc/resolv.conf but then it will only try the second ...
user avatar
0 votes
0 answers
58 views

Conflicts between dns name to real machine host-name and impact about ssh connections

I want to share the picture about our cluster with machines rhel 7.5 . DNS server include the following names (example) We can see that "S" is capital letter: BD_Server1 BD_Server2 ...
user avatar
  • 10.9k
0 votes
1 answer
174 views

How to reset DNS to its default after changing it with systemd-resolve?

I'm using Xubuntu 18.04. AFAIK, DNS could be changed with sudo systemd-resolve -i wlp3s0 --set-dns="xxx-yyy-aaa-bbb". Now, how can I revert it back to the default state? Before setting it, ...
user avatar
0 votes
1 answer
391 views

How is the default `search` value in /etc/resolv.conf defined if there is no local domain name?

I am running Kali Linux 2020.4 in VirtualBox 6.1. The image runs in its own NAT Network (created in VirtualBox via Settings - Network) with DHCP support enabled. When I run cat /etc/resolv.conf I get ...
user avatar
  • 101
0 votes
1 answer
1k views

Revert to default DNS /etc/resolv.conf settings on Debian

I had default Debian DNS settings on my laptop, but I couldn't connect to a corporate remote PC with it. Then I decided to edit DNS servers to corporate ones by editing /etc/resolv.conf. I've added ...
user avatar
0 votes
2 answers
2k views

Change resolv.conf

bug: resolv.conf auto-populates search and nameserver seeking: permanent or temporary (run each time system boots.) recommended solution: resolvconf package solves the auto-population issue (not to be ...
user avatar
  • 11
6 votes
1 answer
4k views

Fedora 33: Use custom DNS addresses

In Fedora 32, I used to edit /etc/resolv.conf in order to modify DNS addresses: nameserver [IP1] nameserver [IP2] But In Fedora 33 this file has been changed and it has a warning saying Do not edit: #...
user avatar
0 votes
0 answers
388 views

How to set resolv.conf to use the DNS supplied by the default gateway?

For some reason - I have no idea why - my /etc/resolv.conf looks like this: nameserver 127.0.0.53 options edns0 search home This is a problem, because I have a local nameserver, serving local domains....
user avatar
  • 147
59 votes
3 answers
67k views

Why does /etc/resolv.conf point at 127.0.0.53?

I tried to check what my DNS resolver is and I noticed this: user@ubuntu:~$ cat /etc/resolv.conf nameserver 127.0.0.53 options edns0 I was expecting 192.168.1.1, which is my default gateway, my ...
user avatar
0 votes
1 answer
1k views

What is adding a IP to the resolv.conf file?

I installed 4 Ubuntu VMs on my laptop and added for each of them extra network adapter with static ips for private network. I configured one of them to be the internal DNS server, added his IP to the ...
user avatar
  • 111
-1 votes
1 answer
164 views

linux + test dns resolving of hosts/ip's but without to wait a long time

we want to test , fast as possible the hosts/ip's resolving for example when we do the following host -a linux1 Trying "linux1.df.com" ;; connection timed out; no servers could be reached ...
user avatar
  • 10.9k
-3 votes
1 answer
235 views

building DNS server on linux redhat 7.x [closed]

we are using until now DNS server based on WIN 2000 we decided to move to DNS server that will replace the DNS server on Linux note - DNS server on linux redhat should also support revers lookup I see ...
user avatar
  • 10.9k
0 votes
2 answers
241 views

How can a program be resolving an FQDN without a valid resolv.conf?

I've just found a bug in an embedded linux machine caused by a broken /etc/resov.conf. Specifically this was a broken symlink. The thing I can't explain is why some (many) of them ever worked. The ...
user avatar
2 votes
0 answers
175 views

How do I (correctly) manage/update search domains with systemd?

I have a system (running Ubuntu 20.04) with multiple network interfaces and I realized that the search domains (I'm looking at /etc/resolv.conf, which I know is just a symlink to a systemd-resolved ...
user avatar
0 votes
1 answer
914 views

Why does /etc/resolv.conf contain "search attlocal.net"?

For Linux Mint 18.3 I began by reading several posts here and elsewhere about /etc/resolv.conf. Some of those posts reference -- but do not explain the function of -- a line of the form search ...
user avatar
  • 163
10 votes
1 answer
7k views

What is the difference between resolvconf, systemd-resolve, and avahi?

I'm currently working on a project that has required some DNS troubleshooting, however I am fairly new to the wonderful world of networking and am at a bit of a loss as to where to begin. My specific ...
user avatar
0 votes
1 answer
457 views

systemd-resolved attaches DNS domain to query

I connect to a remote VPN using NetworkManager and the openconnect (Cisco Anyconnect) pluging under Xubuntu 20.4. All works fine, except DNS resolution of services inside the VPN. The remote VPN ...
user avatar
  • 101
1 vote
1 answer
179 views

Unable to resolve entry in hosts file?

I have the following entry in the hosts file: 127.0.0.1 postgres This works most of the time: [root@l25 log]# ping postgres PING postgres (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost (...
user avatar
  • 111
0 votes
2 answers
524 views

How do you block network acceess to systemd?

How would one quarantine any systemd processes from ever using ANY network interface or resources at OS-level? Overview Minimalistically, I'd like to setup a Linux gateway. Simple NAT, forwarding ...
user avatar
0 votes
1 answer
148 views

Trying to understand the /etc/resolv.conf

I am trying to understand the entries in the /etc/resolv.conf file in linux systems. The file contains a list of keywords and values. This is an example of the contents of the /etc/resolv.conf: ...
user avatar
0 votes
0 answers
1k views

Ubuntu does not use DNS server from router

I cannot solve DNS resolution on UBUNTU 20.04. If I check the IP values after connection it is showing the right DNS server address, but in NSLookup the DNS server is not listed, and it comes back ...
user avatar
1 vote
0 answers
377 views

resolv.conf search doesn't work anymore when domain has a dot

This is weird one. I have 2 CentOS7 servers. One is older and one was recently built and they have identical resolv.conf files. $ cat /etc/resolv.conf search prod.gb2.example.com gb2.example.com ...
user avatar
  • 21
0 votes
1 answer
2k views

dig: parse of /etc/resolv.conf failed

I tried using dig and I got the error in the title. My /etc/resolv.conf is this nameserver 67.207.67.2 nameserver 67.207.67.3 nameserver ns1.name.com nameserver ns2.name.com nameserver ns3.name.com ...
user avatar
  • 181
1 vote
1 answer
431 views

hostname --fqdn on Azure Ubuntu server has unique domain name ending in .internal.cloudapp.net. How to change to my own domain?

I have added my first Azure server for production use on my domain. Azure assigned a domain name in their DNS, I created a CNAME entry in my domain to forward there. Works great. When I enter the ...
user avatar
  • 131
1 vote
0 answers
703 views

systemd-resolved add option rotate Ubuntu 18.04

I'm trying to add options rotate to my resolv.conf on Ubuntu 18.04 LTS upgrade Ubuntu 16.04 LTS: /etc/resolv.conf -> ../run/resolvconf/resolv.conf handled just by adding options rotate to /etc/...
user avatar
  • 173
0 votes
0 answers
44 views

Resolve a domain with another domain and not an IP address

I am running some containers for automation testing and I need to be able to redirect the domain name to another domain name. Traffic from abc.com/users need to be redirected to zxc.net/users I cant ...
user avatar
0 votes
1 answer
383 views

How does the linux kernel support dns changes for resolving domain names?

In linux, the dns servers are configured in /etc/resolv.conf, without going into userspace implementations, how are changes to this file supposed to propagate to the many consumers of domain names?
user avatar
  • 391
3 votes
2 answers
729 views

DNS: Domain-dependant resolution possible?

Is it possible to configure a domain-depentant nameserver for address-resolution (e.g. resolv.conf)? e.g. nameserver 1.2.3.4 for any domain abc.com nameserver 4.3.2.1 for any domain cba.com ...
user avatar
  • 479
0 votes
0 answers
829 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-...
user avatar
0 votes
1 answer
505 views

Host configured with both resolvconf and dnsmasq, restarting dnsmasq keeps pointing to old servers

I have an Ubuntu 16.04.2 LTS host. It is configured to use dnsmasq for DNS forwarding, rather than use resolv.conf populated with nameservers. The configuration is standard wherein resolv.conf just ...
user avatar
  • 1,490
3 votes
2 answers
6k 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/...
user avatar
2 votes
1 answer
1k 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 ...
user avatar