Answer for KodeKloud Question - DNS Troubleshooting

 The system admins team of xFusionCorp Industries has noticed intermittent issues with DNS resolution in several apps . App Server 2 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.

Answer:

ssh <user>@<servername>
sudo su 


#To check 
cat /etc/resolv.conf

#To update 
vi /etc/resolv.conf

(press "i" to go insert mode ) paste this entry above the local DNS 

nameserver 8.8.8.8

To save the file (press "Esc" and type ":wq!")

# To test 
ping google.com

Note: Commands are correct but based on your question the server and user name might differ so please do check.

No comments:

Post a Comment

Featured Post

Answer for Kodekloud DEVOPS Questions - Init container in Kubernetes

Question: 1. Create a Deployment named as ic-deploy-devops. 2. Configure spec as replicas should be 1 , labels app should be ic-devops , ...