Configure Google DNS Settings for Ubuntu Server

Tram Ho

When do you need to install, when your server can’t resolve internet domain names?

Step 1: Install the resolver, if it is not already installed

Screenshot 2023-03-02 at 12.25.16.png

Screenshot 2023-03-02 at 12.25.48.png

Step 2: Check if the resolvconf service is started and enabled

Screenshot 2023-03-02 at 12.26.17.png

Step 3: If the service is not already enabled, you can start and enable it with the following commands:

Screenshot 2023-03-02 at 12.27.09.png

Screenshot 2023-03-02 at 12.27.45.png

Step 4: Now edit the configuration file resolv.conf.d/head and add google DNS address there and

Screenshot 2023-03-02 at 12.28.36.png

Step 5: Now restart the resolvconf configuration

Screenshots 2023-03-02 at 12.30.25.png

Step 6: run the update again

Screenshot 2023-03-02 at 12.31.01.png

Step 7: Now if you check the contents of the resolv.conf file with the following command

Screenshot 2023-03-02 at 12.31.46.png

Step 8: Check the configuration again, if correct, restart DNS with the command

So you have installed google DNS for your ubuntu server, thank you for following the article, wish everyone an energetic day.

Share the news now

Source : Viblo