how to check pointing of all domain from /etc/localdomains

tttomasz

Member
May 18, 2007
7
0
151
Hello.

I'd like to filter all domains from /etc/localdomains that points to my server. What is the easyiest way to do this?
I found many scripts that are doing domain pointing checks but only for main domains (parked while creating account on top of account) - i need to filter all domains and then remove sudomains from this list.

Any idea how to do this? :)
 
Last edited:

tttomasz

Member
May 18, 2007
7
0
151
OK i found solution :)

for i in `cat /etc/localdomains`;do dig $i|grep NS|grep -v ROOT-SERVERS|grep -v ANSWER>>domains.txt;done