CMD Script – Mx Records

Version: 13.1a
Revision: 22 Build 12

CMD Script – Mx Records

Introduction:
for the last four weeks, I was reading and studying. But, it was a little bit boring. So, I decided to read another book about MX – Records and their history. In the end of my studying week, I was free to write new articles and update my website for students and readers.
—————————————

This CMD script was designed to retrieve information from a specific domain, IP address and DNS server. It can also look for individual IP address and their network – range.
However, this script was only created for educational research. Therefore, please don’t use this script for illegal activity.

1.] Download Notepad++ (http://notepad-plus.sourceforge.net/) from the author’s website and install the application.

2.] Execute Notepad++ and copy this script. After that, you’ll need to save it as: “mx-lookup-xp.bat”.

Extension: .bat (batch file)

———— Copy Text —————

@echo off
cls
echo.
nslookup -querytype=mx website.com > MX.txt
echo.
nslookup -d -type=mx website.com > MX-Results.txt
echo.
nslookup -a -type=mx website.com > Aliases.txt
echo.
nslookup -querytype=all website.com > Mx-Aliases.txt
::exit

———— End —————

Notes: you’ll need to replace “website.com” with your own website.

3.] Run the script and there will be four ‘Text File’ for you to analyze and read. But, I would recommend you to delete these text file, when you’re done with the research.

4.] Enjoy!

Copyrighted By Lair360

Comments are closed.