How to change Resolver / DNS in CentOS? Print

  • 20

  • Log into your server as root (SSH)
  • Open the following file using vi or pico -
    • vi /etc/resolv.conf
  • You will see default nameservers and you can edit the IP's with the new IP's.  

Was this answer helpful?

« Back
  • US/Canada: 800-933-1517
  • International: 626-549-2801