Introduction
When transitioning to new nameservers or troubleshooting DNS issues, it's essential to ensure your server returns the correct DNS records, even before they are fully propagated. This guide outlines the procedures for verifying DNS records on different operating systems.
Prerequisites
- Access to a command line interface (CLI).
- Knowledge of the domain name and the IP address of the DNS server you wish to query.
Procedure
The method to verify DNS records will vary depending on your operating system.
Windows
On Windows, you can use the NSLOOKUP
utility to verify DNS records from a specific server:
- Open the Start Menu and type cmd, then press Enter.
- In the command prompt that opens, use the following command format:
nslookup domain.com dns-server-ip
- For example, to check the DNS records for
cpanel.net
using a specific DNS server:
nslookup webhostm.com 104.197.200.143
Linux or macOS
On UNIX-based systems, the dig
utility is available for querying DNS records:
- Open a terminal window on your system.
- Use the
dig
command in the following format:
dig domain.com @dns-server-ip
- For instance, to query the authoritative nameserver for
cpanel.net
:
dig webhostm.com @104.197.200.143
By verifying DNS records using the methods outlined above, you can ensure that your server is correctly configured before changes fully propagate. This can help prevent issues related to email delivery and website accessibility.