How to use nslookup
command to check email domains in fedora Linux?
I used the following command in terminal:
nslookup -query=mx [email protected]
This is not working for me. What's the correct command?
How to use nslookup
command to check email domains in fedora Linux?
I used the following command in terminal:
nslookup -query=mx [email protected]
This is not working for me. What's the correct command?
You can query for the domain part, not the full email address.
For programmatic use,
dig +short
or some versions ofhost
have better, machine-readable output thannslookup
.Not all domains supply an explicit MX record; fall back to the A record in that case (i.e. attempt to connect directly to the host).