- Apache (9)
- DNS / BIND (2)
- General Linux (7)
- Mail (8)
- Postfix (1)
- Qmail (4)
- Sendmail (3)
- MySQL (7)
- News (1)
- Other (2)
- Perl (1)
- PHP (5)
- Plesk (13)
- Redhat Linux (8)
- Ruby (1)
- Scripts (4)
- Security (4)
- iptables (2)
TopicNavigationUser login |
Checking all domains on a Plesk box for reverse DNSAvailable at http://partytime.wackyfunster.com/leet/plesk_rdns_check.sh Checks every domain in /home/httpd/vhosts for forward lookup and reverse lookup, and outputs the results. Output may be more readable when piped into sort. #!/bin/bash for i in `ls /home/httpd/vhosts/ |grep "\."` do host=$i ip=`host $i|awk {'print $4'}` if [ $ip == "found:" ]; then echo "$host DOES NOT RESOLVE" continue fi ptr=`host -t PTR $ip|awk {'print $5'}` if [ $ptr == "3(NXDOMAIN)" ]; then echo "$ip ($host) HAS NO PTR" else echo "$ip ($host) has PTR $ptr" fi done |
Linux JournalSlashdot |