How to check DNS server?

You can check your DNS server settings by looking at the contents of the /etc/resolv.conf file on a Unix-based system. You can do this by running the following command in the terminal:

cat /etc/resolv.conf

This will display the DNS servers configured on your system. You should see lines that start with nameserver, followed by the IP addresses of the DNS servers.

If you want to check if a specific DNS server is reachable, you can use the dig or nslookup command. For example:

Using dig:

dig @8.8.8.8 example.com

Using nslookup:

nslookup example.com 8.8.8.8

Replace 8.8.8.8 with the IP address of the DNS server you want to check, and example.com with the domain you want to query.

0 Comments

no data
Be the first to share your comment!