Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 15514  / 2 Years ago, thu, january 6, 2022, 2:39:12

I cannot ping/reach any website/service by name (e.g. ping google.com).



I could temporarily fix this by changing 127.0.0.1 to my router in /etc/resolv.conf
But that file gets overwritten.



How can I permanently fix this?



To be clear, I don't need a DNS server, I just want my server to be able to use DNS from DHCP.


More From » dns

 Answers
0

I solved it in another way, because I have the impression the solution above is doing what was not asked, i.e. implementing a dhcp server.



I deleted the bind9 and dhcp3-server with



sudo aptitude remove bind9 dhcp3-server


and restarted networking with



sudo /etc/init.d/networking restart


I also changed the file /etc/NetworkManager/NetworkManager.conf. Its contents looks like:



[main]
plugins=ifupdown,keyfile
dns=dnsmasq

[ifupdown]
managed=true


After modifying this file, I had to restart the Network Manager service:



sudo service network-manager restart


Now the dhcp client seems to set the dns server to the one provided by dhcp.


[#38202] Thursday, January 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
peratingcit

Total Points: 253
Total Questions: 122
Total Answers: 94

Location: Botswana
Member since Sat, Jan 7, 2023
1 Year ago
;