Questions tagged [resolv.conf]

/etc/resolv.conf contains Domain Name System(DNS) related configuration information on Unix systems.

146 questions
1
vote
2 answers

Debian resolver adds domain and I don't want that

I have the following problem: if I ping a non existent domain name I get a reply from an IP address # ping nosuchdomain.common PING nosuchdomain.common.myrealdomain.com (192.168.1.1) 56(84) bytes of data. 64 bytes from myrealdomain.com…
Alex Flo
  • 1,761
  • 3
  • 18
  • 23
1
vote
1 answer

Non woking domain parameter at resolv.conf

I have inserted domain test into resolv.conf and have then expected that # getent ahosts srv # getent ahosts srv.test 1.1.1.1 STREAM srv.test 1.1.1.1 DGRAM 1.1.1.1 RAW will both provide same results. Any idea why…
arik
  • 13
  • 4
1
vote
1 answer

What is the purpose of using resolve.conf along with authoritative DNS?

I have a Debian 7 server that I just installed and configured. Linode is the provider. There is a file called /etc/resolv.conf that contains "members xx.xx.xx" and 2x "nameserver xx.xx.xx.xx" lines. I do not have BIND installed on this machine and I…
Sam Levin
  • 510
  • 1
  • 5
  • 11
1
vote
2 answers

Why don't my server query the 2nd entry in my resolv.conf?

I have a CentOS 6.4 box. As with all the other boxes in this rack, it has two NICs: one internal (192.168.1.x) and one external (visible to the world). We run our own cacheing resolver (using Unbound) on one of the servers in our rack…
SteveJ
  • 482
  • 1
  • 7
  • 13
1
vote
2 answers

Dynamically update BIND 9 Forwarders

There are two WAN interfaces to different ISP, which are configured with PEERDNS=yes and installed BIND 9 server which is configured with forward only. These interfaces are used in rotation (not same time). What is the preferred method in CentOS…
jurijcz
  • 207
  • 3
  • 9
1
vote
5 answers

configure that /etc/resolv.conf won't be modified after restart

I have Gentoo Linux amd64 installed on one of my computers. I have a static IP configured at /etc/conf.d/net: auto_eth0="true" config_eth0="192.168.1.2/24" routes_eth0="default via 192.168.1.1" enable_ipv6_eth0="false" I manually edited…
ufk
  • 333
  • 3
  • 8
  • 31
1
vote
3 answers

How does domain resolution occur when resolv.conf is blank and your server has a static IP?

I've installed ubuntu server 10.04 on a computer in my LAN. From my router control panel I set it up to be Static DHCP. My resolv.conf file had the output nameserver 192.168.1.1 I removed that line and saved .conf file, but I am still able to ping…
user784637
  • 1,542
  • 7
  • 35
  • 52
1
vote
3 answers

Domain names not resolving @ Debian VPS

I have a quite common problem except all the solutions I've found didn't work for me. I had my VPS, running Debian 5/Debian 6/CentOS 5.5/whatever-else-OS-I've-tried, rebuilt and reinstalled. Once started, the network works fine, and I can ping IPs,…
ᴍᴇʜᴏᴠ
  • 577
  • 1
  • 6
  • 20
1
vote
2 answers

How to configure multi domain nameservers in resolv.conf?

I have a server that has 2 domains pointing to it domain1.com and domain2.com. They both use the same name servers: dns1.vps.net and dns2.vps.net. When I run cat resolv.conf This is its contents: # Automatically generated by OnApp (2.0.rc5.i) …
JD Isaacks
  • 895
  • 5
  • 14
  • 25
1
vote
2 answers

dhclient append settings from multiple DHCP servers

I have a server with two interfaces connected to two separate networks, using DHCP for both. When dhclient is writing /etc/resolv.conf, I would like it to append settings that aren't already there. For instance, if I receive from one DHCP…
Brian
  • 796
  • 1
  • 6
  • 15
1
vote
1 answer

Configuring nameserver per domain?

In resolv.conf, I have list of nameservers. Is is somehow possible to make resolver use given dns server only for hosts for given domain? I envision it like this (this is purely theoretical syntax, doesn't work anywhere as far as I know): nameserver…
user13185
1
vote
1 answer

Domain names not resolving on CentOS webserver

I have a small webhosting VPS running CentOS Linux 7.9.2009 (Core). I'm also running Plesk Obsidian Version 18.0.52 Here is my /etc/resolv.conf file: nameserver 1.1.1.1 nameserver 8.8.4.4 nameserver 71.19.155.120 nameserver 71.19.155.215 (The last…
stevland
  • 165
  • 10
1
vote
0 answers

How to configure dnsmasq per interface nameservers from DHCP leases

I am working on an IoT device that has three network interfaces: Ethernet, WiFi, and LTE. The interfaces provide redundancy and fail-over for network connectivity, and any combination of the interfaces might be up. When more than one interface is…
1
vote
1 answer

No DNS on PXE booted Linux Live System with NetworkManager

I've built a custom Debian Live CD (using live-boot and containing a kernel, initrd and a filesystem.squashfs) which includes specific tools we regularly use. The Live CD works flawlessly if booted directly from USB pen drive, from the ISO file (in…
1
vote
0 answers

is there a way on Linux to set DNS servers using a cmd line?

I use a script that creates multiple network interfaces with IP adresses. An example of commands used by the script: ip addr flush eth0 ip addr flush eth1 ip addr add 192.168.1.10 dev eth0 route add default gw 192.168.1.1 eth0 ip addr add…