Timeline for nameservers erased after systemctl restart network.service
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 13, 2018 at 11:32 | answer | added | Noam Manos | timeline score: 0 | |
| Mar 13, 2017 at 9:55 | answer | added | Markus R | timeline score: 0 | |
| Dec 28, 2014 at 16:43 | vote | accept | csny | ||
| Dec 26, 2014 at 23:15 | answer | added | Pavel Šimerda | timeline score: 12 | |
| Oct 29, 2014 at 15:00 | comment | added | csny | Found this: unixmen.com/setting-dns-server-centos-7 It doesn't say that ifcfg file has to include DNS entries | |
| Oct 28, 2014 at 8:33 | comment | added | csny | You loose the bet :) The DNS ips are written only to /etc/resolv.conf, and PEERDNS=yes. How can it be that it worked before? | |
| Oct 27, 2014 at 19:42 | comment | added | Ray | I don't think the DNS servers will populate if you do not define them. Per RedHat, DNS{1,2}=<address>, where <address> is a name server address to be placed in /etc/resolv.conf if the PEERDNS directive is set to yes. I am willing to bet that the ifcfg file on the CentOS6.2 build you mention has the DNS servers defined or PEERDNS="no". | |
| Oct 26, 2014 at 7:33 | comment | added | csny | No. Should I? By the way, same procedure works well on CentOS 6.2. Maybe something changed in the way services are handled - systemctl tool | |
| Oct 23, 2014 at 19:44 | comment | added | Ray | In your ifcfg-ens160 file, did you specify the DNS servers? DNS{1} = x.x.x.x, DNS{2}=x.x.x.x | |
| Oct 23, 2014 at 17:08 | history | asked | csny | CC BY-SA 3.0 |