Tip: Using dig to Show Nameservers
If the need to scan a list of domains arises, be it one or one hundred, I have one handy Perl script that will list all nameservers of a domain. This script uses the command dig, and filters and lists the result. Do note that Perl must be installed to do this script.
# vi mx_checker.pl
#!/usr/bin/perl
$file=$ARGV[0]; @list = `cat $file`; foreach $domain(@list) {
chomp($file);
chomp($domain);
$ns = `dig ns $domain +short`;
chomp($ns);
$ns =~s/\n/\t/g;
print “$domain\t$ns\n”;
}
To make the script executable, change the permissions:
# chmod 700 mx_checker.pl
Then build the list of domains by listing it on a text file, one domain per file.
# vi domains.txt
google.com
yahoo.com
usautoparts.com
Now that the script and domain list is ready, it is time to execute the script:
# ./mx_checker.pl domains.txt
The nameservers will then be listed and can be piped to a text file, which can be exported to a spreadsheet as tab-separated values.
# ./mx_checker.pl domains.txt >> nameservers.xls
Linux Tip: Reset Root Password
How to reset root password?
If you are as forgetful as I am, you have probably forgotten what password you have set for root user. Today, I am going to teach you a little tip on how to reset the root password.
read more
Google Cheat Sheets
If you are interested in Google domains, services or search operators, then get the Google Cheat Sheet. This PDF file contains the extensive list of thing that I am sure everyone wants to know.
Download the cheat sheet PDF here or view the screenshots:
Search PinoyTux
Subscribe to Email Feeds
Blog Lounge
Popular Posts
Recent Posts
Drop your Card Here
Recent Comments
- mega-mind.net , , Dien Dan,Forums,Blog,CMS,php,cgi,asp,software,serial,hardware,game,games,choi game,Thuong mai dien tu, hoc tap, mua ban, download,choi nhac, xem phim, dien anh,cac van de khac,nokia,hp.vaio,iphone,ipad,itune,gmail,yahoo,chat,crack,an nic on President of United States of America: Barack Obama
- Belarus Hava Yolları, Belarus airlines, Uçak Bileti, Air tickets, Belarus uçak on Cebu Pacific Sucks
- Cezayir Hava Yolları, Cezayir airlines, Uçak Bileti, Air tickets, Cezayir uçak on Cebu Pacific Airlines is Evil!
- Lambchop on Cebu Pacific Airlines is Evil!
- rabat on Linux Comics of the Day








