When looking to move to new nameservers, or just generally troubleshooting DNS, it can become useful to ensure that, even before propagated, your server is returning the correct records.
Procedure
This will depend on the operating system you're using to verify your records.
Windows
On Windows, the NSLOOKUP utility can be used to verify DNS records from a particular server.
Open the Start Menu and type "cmd", then press enter.
In the window that opens, you'll use the command in this format:
nslookup domain.com dns-server-ip
For example:
C:\Users\cPanel> nslookup cpanel.net 208.74.121.52
Server: c.cpanel.net
Address: 208.74.121.52
Name: cpanel.net
Addresses: 208.74.123.84
208.74.121.151
Linux or macOS
On UNIX-based systems, the dig utility is available.
Open a terminal window on your system. The dig command can be used like this:
$ dig domain.com @dns-server-ip
When querying your authoritative nameserver, you may get back additional zone information:
~ -$ dig cpanel.net @208.74.121.52
; <<>> DiG 9.10.6 <<>> cpanel.net @208.74.121.52
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42710
;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 3, ADDITIONAL: 7
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;cpanel.net. IN A
;; ANSWER SECTION:
cpanel.net. 100 IN A 208.74.121.151
cpanel.net. 100 IN A 208.74.123.84
;; AUTHORITY SECTION:
cpanel.net. 14400 IN NS mn.cpanel.net.
cpanel.net. 14400 IN NS hg.cpanel.net.
cpanel.net. 14400 IN NS c.cpanel.net.
;; ADDITIONAL SECTION:
c.cpanel.net. 1800 IN A 208.74.121.52
hg.cpanel.net. 1800 IN A 208.74.121.57
mn.cpanel.net. 1800 IN A 208.74.123.178
c.cpanel.net. 1800 IN AAAA 2620:0:28a4:1528::52
hg.cpanel.net. 1800 IN AAAA 2620:0:28a4:1528::57
mn.cpanel.net. 1800 IN AAAA 2620:0:28a8:4580::178
;; Query time: 194 msec
;; SERVER: 208.74.121.52#53(208.74.121.52)
;; WHEN: Sat Mar 13 04:58:50 CST 2021
;; MSG SIZE rcvd: 253