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
21 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
11 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
13 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
44 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 ...
-2
votes
1answer
48 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
76 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 ...
1
vote
0answers
49 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
84 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
139 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
53 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 ...
0
votes
0answers
35 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
39 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
42 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
69 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
53 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
187 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 ...
0
votes
0answers
170 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
34 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
42 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?
1
vote
2answers
69 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
280 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
308 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
1k 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
28 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
269 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
234 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
160 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 ...
6
votes
0answers
1k 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
265 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
331 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
199 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
904 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 ...
8
votes
2answers
2k 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
696 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
229 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
35 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
716 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
459 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
7k 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
2k 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
55 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 ...
2
votes
1answer
16k 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
387 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
96 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
559 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
3k 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 ...
1
vote
1answer
2k 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
366 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
1k 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 ...