Pages

Wednesday, April 17, 2013

How to easily set DNS in Linux


This post below are the steps on how to configure primary and secondary DNS :
  1. Login as root
  2. Modify file /etc/resolv.conf
    vi /etc/resolv.conf
    
  3. Add lines below
    nameserver 192.168.6.17
    nameserver 192.168.6.18
    
    You must replace DNS IP on your own
  4. Save and close the file
  5. To test DNS use one of the following command :
  6. $ host google.com
    $ dig google.com
    $ ping google.com
    $ nslookup your-domain.com
    

No comments:

Post a Comment

Don't Forget To Join Our Community
×
Widget