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
cat /etc/resolv.conf
#To update
vi /etc/resolv.conf
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
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