DNS (Domain Name System) is a fundamental facilitator of several networking technologies such as mail servers, Internet browsing, and streaming services.
It works on a special computer called a DNS server – which keeps a database record of several public IP addresses along with their corresponding hostnames in order for it to resolve or translate hostnames to IP addresses upon user request.
This happens so that we would not need to bother ourselves with remembering the IP addresses of the different websites we visit
There are several ways to check for it depending on the Operating System that you’re running but Centos, RHEL, Ubuntu, Debian, Fedora systems all share the same method so let’s begin with them
To find out your DNS Server IP address, use the following cat command or less command.
$ cat /etc/resolv.conf OR $ less /etc/resolv.conf
Also, you can use the following grep command.
$ grep "nameserver" /etc/resolv.conf
Here, nameserver 184.108.40.206 is a name server IP address in what is called the dot notation – the format that applications on your workstation use for DNS routing.
But how to Find My Website DNS Server IP Address?
To find out a website DNS Server IP address, you can use the following dig command.
$ dig tecmint.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.68.rc1.el6_10.1 <<>> lgvps.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30412 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;lgvps.com. IN A ;; ANSWER SECTION: lgvps.com. 21 IN A 192.168.7.11 lgvps.com. 21 IN A 192.168.7.11 ;; Query time: 0 msec ;; SERVER: 192.168.7.11 #47(192.168.7.11) ;; WHEN: Mon Jul 19 09:45:42 2019 ;; MSG SIZE rcvd: 47
That’s all about it, so if it’s not clear, please send your reply below so we can help you better.