jonny5alive wrote:
What script did you use with dig?
Just a couple of lines of a bash script I wrote for the occasion. I doubt I kept it, but it would have just been an infinite while loop with two dig calls (one for each resolver) and a sleep. Oh, and probably a date in there somewhere for logging, so probably something like (untested):
Code:
#!/bin/bash
while [ 1 ]; do
date
# One of the following for each resolver address
echo "x.y.z.w:" `dig +noall +answer @x.y.z.w domain`
sleep 30
done
Replace addresses, domain name and sleep delay as needed. In my case I used a domain of mine hosted on Linode's servers, to minimize the risk of introducing a remote DNS server issue into the testing. Then, nohup that into the background while redirecting the output to some file, e.g.:
Code:
nohup script >script.out 2>&1
wait a bit and then review the output looking for dig errors.
-- David