How To Find Mx Record

Table of contents:

How To Find Mx Record
How To Find Mx Record

Video: How To Find Mx Record

Video: How To Find Mx Record
Video: MX Records: All You Need to Know 2023, December

An MX record is information about which IP addresses of receiving mail servers correspond to a particular domain name. This information is stored on the domain name server (DNS) and can be found using the nslookup utility.

How to find mx record
How to find mx record

It is necessary

a computer connected to the internet


Step 1

Enter the command line. In the Linux operating system, when using the text interface, this does not require any additional actions (except for entering the login and password, if this has not been done earlier). If you are using one or another graphical shell (for example, Gnome, JWM or KDE), start one of the terminal emulators available on the system. These include Konsole, rxvt and xterm, among others. All users can run the nslookup utility, so it is not necessary to log in as root to do this.

Step 2

Also, in Linux, you can go to the command line mode by pressing the Ctrl-Alt-F2 keys, and then, if required, by entering your username and password. To return back to the GUI, enter the logout command and then press Alt-F7, or if that doesn't work, Alt-F5.

Step 3

In Windows XP, to enter command mode, click the "Start" button, select "Run" from the menu, and then enter the name of the executable file cmd. In Windows 7, click the operating system logo button, then type cmd in the search box. The cmd.exe file will be found automatically - all you have to do is select it and it will start.

Step 4

The nslookup utility is preinstalled on both Linux and Windows, so you don't need to download any programs. The syntax of its keys is the same in both operating systems. Run it like this:

nslookup -type = mx server.domain, where server.domain is the domain name.

In response, you will soon receive all the information you need. In the list displayed on the screen, pay attention only to those lines in which there is a combination of letters mx - these are data about the servers intended for receiving mail. You do not need information about other servers.

Step 5

If the command line session was started in windowed mode, copy all the necessary data to the clipboard, and from there to any text editor, and then close the console. When working in text mode, you will have to rewrite the information received manually. To avoid this, use this construction:

nslookup -type = mx server.domain> text.txt

The output from the nslookup utility will be copied to the text.txt file (you can name it differently).