Configure DNS Client / Nameserver on Linux CentOS Redhat RHEL Ubuntu

Configure DNS Client / Nameserver on Linux CentOS Redhat RHEL Ubuntu 

commands

1. Use your Local DNS Server (NameServer)

root@opensips:~# vi /etc/resolv.conf
domain ithelpblog.com
search ithelpblog.com
nameserver 192.168.129.2
root@opensips:~#

2. Use Public DNS Server (google DNS Server)

root@opensips:~# cat /etc/resolv.conf
domain localdomain
search localdomain
nameserver 8.8.8.8
nameserver 8.8.4.4
root@opensips:~#

3. Test DNS Server

root@opensips:~# nslookup yahoo.com
Server: 192.168.129.2
Address: 192.168.129.2#53Non-authoritative answer:
Name: yahoo.com
Address: 206.190.36.45
Name: yahoo.com
Address: 98.138.253.109
Name: yahoo.com
Address: 98.139.183.24root@opensips:~#

That’s all. Thanks for using IThelpblog.com

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>