# Force usage of DNS server provided by DHCP?

I obtained a preconfigured debian photo that obtains it is network arrangement by DHCP, nonetheless the DNS web server is/was dealt with to 8.8.8 .8. This was set up making use of/ etc/resolv. conf, so I removed all the access there./ etc/dhcpc/resolv. conf has the DNS web server I would love to make use of, nonetheless this DNS web server isn't made use of by the system. Just how do I turn on the use of the DNS web server given by DHCP? Many thanks!

1
2022-06-07 14:40:42
Source Share

I wound up mounting isc-dhcp-client, appears to deal with the trouble. Many thanks for all the various other tips, though!

1
2022-06-07 15:58:38
Source

ln - sf/ etc/dhcpc/resolv. conf/ etc/resolv. conf

Explanation:

The system will certainly look just in/ etc/resolv. conf for nameservers. What the above command does is it develops a symbolic link/ etc/resolv. conf to the documents/ etc/dhcpc/resolv. conf. Effectively, when opening up/ etc/resolv. conf you in fact open the documents/ etc/dhcpc/resolv. conf. And also I take it that documents has the details you desire your system to make use of.

1
2022-06-07 15:09:51
Source