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.
This will depend on the operating system you're using to verify your records.
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
C:\Users\cPanel> nslookup cpanel.net 126.96.36.199
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 @188.8.131.52
; <<>> DiG 9.10.6 <<>> cpanel.net @184.108.40.206
;; 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 220.127.116.11
cpanel.net. 100 IN A 18.104.22.168
;; 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 22.214.171.124
hg.cpanel.net. 1800 IN A 126.96.36.199
mn.cpanel.net. 1800 IN A 188.8.131.52
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: 184.108.40.206#53(220.127.116.11)
;; WHEN: Sat Mar 13 04:58:50 CST 2021
;; MSG SIZE rcvd: 253