I'm trying to configure DHCP and DNS on Ubuntu Server 18.04 with Netplan but I have a hard time setting the DHCP on and Local DNS servers.

I have found an example yaml file that I used to set a static IP and Google DNS servers, but if I ping a website it takes 40ms to respond.

How can I set the configuration file to DHCP for both ip4 and ip6, and the automatic DNS servers from my router?

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.