DNS Troubleshooting Linux Server KodeKloud Engineer Task

Ticker

6/recent/ticker-posts

DNS Troubleshooting Linux Server KodeKloud Engineer Task

 

Question :  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.

Please Note :-  Perform the below commands based on your question  server,  user name & other details might differ . So please read task carefully before executing. All the Best 👍

Solution:  

1. At first login to app server  & Switch to  root user 

thor@jump_host ~$ ssh banner@stapp03

The authenticity of host 'stapp03 (172.16.238.12)' can't be established.

ECDSA key fingerprint is SHA256:SySamszyWhhLGFiybhGBqfrr8g55wS/3e37ZpBOvICs.

ECDSA key fingerprint is MD5:6d:31:18:2a:f9:07:f3:29:dd:0a:d3:1f:6e:04:0a:db.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added 'stapp03,172.16.238.12' (ECDSA) to the list of known hosts.

banner@stapp03's password:

[banner@stapp03 ~]$ sudo su -

 We trust you have received the usual lecture from the local System

Administrator. It usually boils down to these three things:

     #1) Respect the privacy of others.

    #2) Think before you type.

    #3) With great power comes great responsibility.

 [sudo] password for banner:

[root@stapp03 ~]#

3.  Verify the existing  resolve.conf file  

[root@stapp03 ~]# cat /etc/resolv.conf

search stratos.xfusioncorp.com

nameserver 127.0.0.11

options ndots:0

[root@stapp03 ~]#

4.  Edit the  resolv.conf  file and add public DNS 8.8.8.8 as per task.

[root@stapp03 ~]# vi /etc/resolv.conf

[root@stapp03 ~]# cat /etc/resolv.conf

search stratos.xfusioncorp.com

nameserver 127.0.0.11

nameserver 8.8.8.8

options ndots:0

[root@stapp03 ~]#


5.  Click on Finish & Confirm to complete the task successful

Happy Learning!!!!


Apart from this if you need more clarity,  I have made a  tutorial video on this , please go through and share your comments. Like and share the knowledge




Post a Comment

0 Comments

Latest Posts

KodeKloud Kubernetes Security CKS  Lab Challenge 4 |  Audit-policy | Install & configure falco utility | Inspect the API server audit logs and identify the user