2 hours ago · Tech · hide · 0 comments

Note to self. I've had the joy of bringing a few sites live the last days, and in one case it was a multi-site with 7 different domains. During the process I needed a simple overview of the DNS propagation status. Before I've used online sites for this kind of stuff, but this time i reached for a CLI way instead, which I ended up liking. I used the watch command in the CLI for this (installed via brew) to continually watch it. Example 1: Look up eddiedale.com, vasser.no and sans.supply every 10 seconds via the 1.1.1.1 DNS watch -n 10 'for d in eddiedale.com vasser.no sans.supply; do printf "%-32s %s\n" "$d" "$(dig +short "$d" @1.1.1.1 | head -1)"; done' Example 2: Listening to a single domain (every 5 second in this example), but from multiple DNS-resolvers (if thats the right word for it). Here watching Google, Cloudflare, Quad9 and OpenDNS. watch -n 5 'for r in 1.1.1.1 8.8.8.8 9.9.9.9 208.67.222.222; do printf "%-16s %s\n" "$r" "$(dig +short eddiedale.com @$r | tr "\n" " ")" done'…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.