DNS Lookup Examples · Example 3 of 13 in Record Types

The MX records of gmail.com: its mail servers with their priorities, lowest (preferred) first.

Asks for the MX records of gmail.com.

Each value is a priority followed by a mail server: 5 gmail-smtp-in.l.google.com is tried first, the four altN servers (priorities 10 to 40) after it. values lists them by priority; raw keeps the order the resolver returned them in.

Request

What this example sends. Every parameter is documented on DNS; the exact request is in the code panel.

ParameterValue
domainquerygmail.com
typequeryMX

Reference updated