DNS Troubleshooting – KodeKloud Task

In this post, I am going to show you how to complete DNS Troubleshooting task.

DNS Troubleshooting Kodekloud Task details:

The system admins team of xFusionCorp Industries has noticed intermittent issues with DNS resolution in several apps. App Server 3 in Stratos Datacenter is having some DNS resolution issues, so we want to add some additional DNS nameservers on this server.
As a temporary fix, we have decided to go with Google public DNS (ipv4). Please make appropriate changes on this server.

Important Note: Perform the below commands based on your question. The server,  user name & other details might differ. So please read the task carefully before executing it.

Solution:- Follow the steps below:

Step 1: To start with login to App Server 3

$ ssh banner@stapp03

Enter the password provided to you using the documentation for authentication.

Step 2: Switch to root user

$ sudo su -

Enter the password to authenticate to the root user.

Step 3: Verify the existing resolv.conf file with the following command:

# cat /etc/resolv.conf

Result:
search stratos.xfusioncorp.com

nameserver 127.0.0.11

options ndots:0

Step 4: Edit the resolv.conf file and add Google’s public DNS 8.8.8.8 as per task:

# vi /etc/resolv.conf

Add the below line highlighted in green when the editor opens:

search stratos.xfusioncorp.com

nameserver 127.0.0.11

nameserver 8.8.8.8

options ndots:0

Save the file and exit.

Step 5: Submit the task and you are done.

Happy Learning!!

Check out other KodeKloud Engineer Tasks

Leave a Comment