Linux System Administrator: DNS Troubleshooting KodeKloud


Question: System Admins team has noticed some DNS resolution on App server 2. So we want to add some additional DNS nameservers on server.

Answer:

Login to App Server 2 by:  
ssh [email protected]

Your App server can be different. Check it from your question.


Edit the resolv.conf file in vim editor
sudo vi /etc/resolv.conf

Add the following nameservers 

nameserver 8.8.8.8
nameserver 8.8.4.4

Save it and quit from vim by pressing ESC and then Shift+ZZ on keyboard . See this screenshot below of resolv.conf file to understand the format








Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment