LKBEN10943: How to resolve MX records from a dns server with nslookup for a domain to find the mail server.


This article has not been checked!

LKB | Created: 02/04/2020 | Version: 0 | Language: EN | Rating: 0 | Outdated: False | Marked for deletion: False

Author: Wim Peeters - Keskon GmbH & Co. KG


Symptom

You would like to know the MX record for a certain domain.

Cause

none

Solution

You can use the nslookup command from linux and set the type to MX:

 nslookup
> set type=mx
> lubby.org
Server:         192.168.123.3
Address:        192.168.123.3#53

Non-authoritative answer:
lubby.org       mail exchanger = 20 mx01.kundenserver.de.
lubby.org       mail exchanger = 10 lubby.org.

Authoritative answers can be found from:
org     nameserver = TLD1.ULTRADNS.NET.
org     nameserver = TLD2.ULTRADNS.NET.
org     nameserver = TLD3.ULTRADNS.org.
org     nameserver = TLD4.ULTRADNS.org.
org     nameserver = TLD5.ULTRADNS.INFO.
org     nameserver = TLD6.ULTRADNS.CO.UK.
lubby.org       internet address = 87.106.55.67
>

This is an interactive way to find it out! You should type exit to leave this interactive mode. 

About the Author

Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux in different European countries and different European languages. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform where he is one of the most important contributors and the main developer.

Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!