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
3
votes
0answers
13 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 ?
0
votes
1answer
24 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 ...
0
votes
0answers
43 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 ...
0
votes
1answer
42 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, ...
0
votes
1answer
24 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 ...
0
votes
0answers
85 views

unbound-anchor and strict DNS-firewalling

I have a strict firewall policy in my local router for DNS-ports. I only open for certain DNS-servers and want to keep it that way. Lately, I have been trying out unbound. It works fine but there is ...
0
votes
1answer
219 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 ...
1
vote
1answer
2k 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: #...
0
votes
0answers
78 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....
8
votes
2answers
9k 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 ...
0
votes
1answer
170 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 ...
0
votes
0answers
45 views

Ubuntu resolv.conf second DNS server not working

I created an internal DNS server (ubuntu server), and after checking with other VMs the DNS server working properly. I try to add 3 ubuntu VMs to the network but none of them being able to use ...
0
votes
0answers
51 views

Is there a dnsmsq.conf equivalent to resolv.conf search directive

I'm running a local dnsmasq server on an embedded device for making upstream dns requests. This is to aid in separating requests to different interfaces (wifi, eth, cell). I'm using udhcpc as the dhcp ...
-1
votes
1answer
93 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 ...
-3
votes
1answer
125 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 ...
0
votes
2answers
100 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 ...
2
votes
0answers
68 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 ...
0
votes
1answer
374 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 ...
1
vote
1answer
2k 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 ...
0
votes
1answer
199 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 ...
1
vote
1answer
53 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 (...
0
votes
2answers
82 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 ...
0
votes
1answer
49 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: ...
0
votes
0answers
475 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 ...
1
vote
0answers
115 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 ...
-2
votes
1answer
562 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 ...
1
vote
0answers
350 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/...
0
votes
0answers
36 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 ...
0
votes
1answer
98 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?
2
votes
2answers
183 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 ...
0
votes
0answers
485 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-...
2
votes
2answers
3k 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/...
1
vote
1answer
539 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
376 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
208 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 ...
11
votes
1answer
2k 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
534 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
480 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
234 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 ...
1
vote
1answer
2k 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 ...
9
votes
2answers
3k 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 ...
3
votes
1answer
894 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
326 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
44 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
934 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
687 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 ...
5
votes
4answers
8k 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
3k 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
1answer
61 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 ...