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








Download Coding Interview Book and Get More Tutorials for Coding and Interview Solution: Click Here

Download System Design Interview Book and Get More Tutorials and Interview Solution: Click Here

Do you need more Guidance or Help? Then Book 1:1 Quick Call with Me: Click Here

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