The tag has no usage guidance.

learn more… | top users | synonyms

8
votes
3answers
11k views

What overwrites /etc/resolv.conf on every boot?

I was given the files for a mini linux, that boots directly into firefox. It works for all it should be doing, only that I do not get an internet connection. We have 3 DNS servers in the network, ...
7
votes
2answers
24k views

How to auto generate resolv.conf on Centos 6.5

I just installed CentOS 6.5 and configured the following files: /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=aa:bb:dd:dd:ee:ff TYPE=Ethernet UUID=adfddfaf-9sda-adse-dfs4-asdfsdfdfg97 ...
7
votes
1answer
2k views

Why is dnsmasq putting my router IP in /etc/resolv.conf instead of 127.0.0.1?

I'm having DNS resolution issues in various contexts which appear to trace back to my networking configuration. I'm running just the dnsmasq-base installation of dnsmasq on two Linux installations ...
5
votes
1answer
19k views

BOOTPROTO=none | static | dhcp and /etc/resolv.conf

What does it mean when it says BOOTPROTO=none in the /etc/sysconfig/network-scripts/ifcfg-eth0 file. I remember there used to be BOOTPROTO=static and it was very clear and straight-forward in telling ...
4
votes
1answer
9k views

nameservers erased after systemctl restart network.service

I'm working on centos 7, and having problematic behaviour when setting network interface from dhcp to static ip configuration. I edit /etc/resolv.conf, and run systemctl restart network.service The ...
4
votes
1answer
678 views

List all DNS Servers, including those pushed by VPN

I want to know which DNS servers are in effect when I run commands like nslookup, dig, host, ping, etc. The general answer is to cat /etc/resolv.conf, or to look at NetworkManager, but that's only ...
4
votes
4answers
41k views

Ubuntu: How to configure DNS servers in /etc/network/interfaces correctly for resolvconf?

All examples I have seen of configurations (/etc/network/interfaces) showed that you configure an interface and then underneath that gave the dns-* lines such as: auto eth0 iface eth0 inet static ...
3
votes
3answers
151 views

Preserving changed in resolv.conf across reboots with resolvconf

What is the best way to edit the resolv.conf file? I wasn't familiar with setting proxies until a task to configure a server came along. I manually edited my /etc/resolv.conf file and included the ...
3
votes
1answer
6k views

Why do DNS queries fail if the first nameserver is not recursive?

I have a Linux box (Ubuntu server 11.10) inside a Windows Active Directory domain, and is joined the domain using likewise-open. The resolv.conf file looks like this: domain mydomain.com nameserver ...
3
votes
0answers
65 views

How to disable a specific interface (dhclient) from resolvconf?

I am using ubuntu/trusty64 Vagrant box with VirtualBox. I want to permanently disable nameserver 10.0.2.3 set by resolvconf based on Vagrant's default eth0 interface. I have a network defined in my ...
3
votes
1answer
413 views

resolvconf writing invalid resolv.conf file

Every time I connect to my VPN I lose DNS with an error of, "cannot parse /etc/resolv.conf" The offending line is line 1 being an empty "domain". So after connecting to the VPN my resolv.conf file ...
2
votes
3answers
1k views

How to make resolvconf append nameservers to the list instead of prepending them?

I'm trying to configure OpenVPN to update DNS-servers as described here. That seems to work, but resolvconf prepends nameservers (and also search domains) to the list of existing nameservers. How can ...
2
votes
1answer
6k views

Ubuntu server cannot access the Internet: appears DNS related

This is a Drupal website running Ubuntu 12.04 LTS on Linode. The server is just a website. It is not a DNS server or anything else. Here are my issues. It seems they are all related to DNS issues. ...
2
votes
3answers
147 views

resolv.conf limited to six domains with a total of 256 characters

I've got a machine (Debian jessie) used to "jump" to another machines, with different domains.... actually many domains. As man resolv.conf tell us, search list for host-name lookup is limited up to ...
2
votes
0answers
458 views

OpenVPN, resolvconf, and DNS domain resolution

While at site1, I need to connect to site2 via OpenVPN. Once connected, the OpenVPN site2 pushes a DNS nameserver and domain search options. This causes all name resolutions for site1 to fail. ...
1
vote
2answers
76 views

How to stop dhclient from updating resolvconf on Debian?

I want to use certain DNS servers regardless of whatever I get through DHCP. I'm trying to configure dhclient to ignore those, but I can't seem to get it to work. Per advice from this article I added ...
1
vote
1answer
69 views

How to know where resolv.conf entries come from?

I use resolvconf for nameserver management because my OpenVPN requires it. However, I notice that it generates nameserver information that is not exactly how I would want it: # Dynamic resolv.conf(5) ...
1
vote
1answer
507 views

Can subsequent nameservers defined in /etc/resolv.conf be used if the previous nameservers can not be resolved?

I don't know much about networking...but I've been spending a lot of time reading about it. In my /etc/resolv.conf I have listed 3 nameservers. I understand that the second name namer is used only ...
1
vote
1answer
4k views

openwrt: can't change dns server setting in order to resolve non FQDN hostnames

ssh'ing to my openwrt (ver. 10.03.1-RC6) shows that there is something wrong with its dns server: root@OpenWrt:~# nslookup starkill Server: 127.0.0.1 Address 1: 127.0.0.1 localhost. nslookup: ...
1
vote
2answers
187 views

issues with resolv.conf

I was tinkering with my resolv.conf file. I logged in to root and made the changes to it there. All of a sudden, I cannot get through to any websites using my Firefox browser. The file looks like ...
0
votes
1answer
28 views

why resolv.conf is changing

I have a very strange issue in my Linux machine - Red Hat 6.7 version when I update my resolv.conf file as the following: options attempts:2 options timeout:1 search usa.Pe.corp ...
0
votes
2answers
6k views

Where to locate resolv.conf file in CentOS 7

I know that "/etc/resolv.conf" is auto generated file by "/etc/resolvconf/resolv.conf.d/head" when reboot Ubuntu 14.04. It's ok But where i can locate same "/etc/resolvconf/resolv.conf.d/head" file ...
0
votes
0answers
135 views

How to make resolvconf / dnscrypt / unbound work together on systemd - and respect openVPN routes?

I'm finding it tremendously confusing to appropriately setup Unbound.service on systemd. Use Case I am trying to get my Debian Jessie laptop to use DNScrypt as default DNS and Unbound as the local ...
0
votes
0answers
65 views

resolvconf error in recovery mode with dhclient

when I go to recovery mode and I want to activate networking, I usually type: dhclient eth0 After this, I can for example ping to www.google.com. However, I get the following error: RTNETLINK ...
0
votes
0answers
55 views

NetworkManager issue with DNS

My NetworkManager randomly empties /etc/resolv.conf for no apparent reason. After connecting to a network, the file contains whatever was obtained via DNS. Usually it keeps its contents, but sometimes ...
0
votes
1answer
24 views

Ubuntu 14.04.02LTS resolvconf -u creates an invalid line “nameserver Google's” in resolv.conf

NetworkManager is not installed. /etc/network/interfaces had a group of lines as follows; ###################### # EXTERNAL INTERFACE # ###################### auto eth2 iface eth2 inet static ...