Tech C**P
15 subscribers
161 photos
9 videos
59 files
304 links
مدرس و برنامه نویس پایتون و لینوکس @alirezastack
Download Telegram
How to check whether name servers (NS) are propagated in Domain Name Server (DNS)?

Occasionally sysadmins/devops migrate their server to a new server with a new IP address due to server lag/ data loss, you name it. Here our domain name will point to the old IP address. It sometimes take a couple of days to fully get propagated.

There are some network tools like nslookup`/`dig that can help in checking DNS propagation. Let's say your name server (NS) is ns1. example.com:
nslookup - ns1-5-61-24-199.parsdev.net

At prompt type your domain and hit enter:
nillkin24.ir

If it resolves to what you expected then it works. It should give you something like:
Server:     ns1-5-61-24-199.parsdev.net
Address: 5.61.24.199#53

NOTE: it may still take a while to propagate to the rest of the internet, that's out of your control.

Using dig:
dig @ns1-5-61-24-199.parsdev.net nillkin24.ir

It prints lots of information, you should see ANSWER SECTION with a result like below:
;; ANSWER SECTION:
nillkin24.ir. 14400 IN A 5.61.24.199

If you see the correct IP address, it means that it has properly cached by remote name servers.

#sysadmin #nslookup #dig #ns #dns #name_server