Add Primary and Secondary DNS server – /etc/resolve.conf

0

Below is the steps to add domain name server (DNS) in your machine using /etc/resolve.conf file:-

  • Open file /etc/resolve.conf
  • You should see something like this:-

    search localhost.localdomain

    Add your Primary and Secondary Domain Name server (DNS) ip at the end of the file and it should look like this:-

    search localhost.localdomain
    nameserver 888.888.888.888
    nameserver 888.888.888.999

  • Save the file and exit
  • Done! you just added primary and secondary dns server in your machine.
  • To check if your machine works fine, type ping websetnet.com. If it has reply means your machine work well. If it show unknown host then your configuration has something wrong. Check and rectify it.