Knowledgebase

batch name server check

Posted by bluebubble, 12-31-2007, 08:43 AM
hi, i want to check in a batch if my client's domain changed name server or not. Are there are tools / script available for that? thanks.

Posted by activelobby4u, 01-01-2008, 03:17 PM
for i in `cat domain_list` >do >whois $i >echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" >done This would show the name servers from the whois records . PS : Please execute this in a linux machine

Posted by bluebubble, 01-09-2008, 12:20 PM
thx...but it shows the whole whois info is it possible to grep that line only?

Posted by activelobby4u, 01-10-2008, 12:18 AM
for i in `cat domain_list` >do >whois $i |grep -i Domain >> file >whois $i | grep -i name >> file >echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" >done That should do the trick

Posted by bitserve, 01-10-2008, 01:46 AM
I think you'd get better results with a DNS query. I don't know of any tools that do the whole job, without some coding.

Posted by derek.bodner, 01-10-2008, 02:24 AM
if you run "dig" the nameserver will show up in the authority section.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Traffic shaping (Views: 609)
MDADM Problem (Views: 572)


Language:

Client Login

Email

Password

Remember Me

Search