← All commands
Topic hub Networking
Windows Linux Networking Command guide DNS

Windows Resolve-DnsName -Type MX equivalent in Linux

Looks up mail-exchanger DNS records.

Windows Resolve-DnsName -Type MX
→
Linux equivalents
Debian/Ubuntu apt package: dnsutils
dig MX example.com
Fedora dnf package: bind-utils
dig MX example.com
Arch pacman package: bind
dig MX example.com

Overview

What this command does

On Windows, "Resolve-DnsName -Type MX" is used to query MX records. On Linux, the closest practical mapping shown here is "dig MX example.com". Looks up mail-exchanger DNS records. This reference is grouped under Networking → DNS.

Migration tip: The Linux command "dig MX example.com" stays consistent across the compared distributions, but the package or base component can differ. Use the Debian/Ubuntu, Fedora or Arch row that matches the system you are administering.

Windows → Linux context

What changes when you use this on Linux?

Equivalent task, different tool

Windows Resolve-DnsName -Type MX maps to dig MX example.com for this task. Treat this as a workflow mapping rather than a character-for-character syntax translation.

Portable across the compared distros

The Debian/Ubuntu, Fedora and Arch rows use the same command in this mapping. Package availability or defaults can still vary, so check the installed tool version when an option behaves differently.

Practical tasks

Common use cases

Query MX records

Looks up mail-exchanger DNS records.

dig MX example.com

Query MX records

dig --help

Show command help when supported

man dig

Open the manual page when installed

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

dig MX example.com

Walkthrough

Examples with explanations

# Windows equivalent: Resolve-DnsName -Type MX
dig MX example.com

Reference

Common options and variations

Command or optionUse
dig MX example.comQuery MX records
dig --helpShow command help when supported
man digOpen the manual page when installed

Distro differences

Debian/Ubuntu vs Fedora vs Arch

The command "dig MX example.com" is the same in all three rows, while package or base details differ: Debian/Ubuntu uses apt package: dnsutils; Fedora uses dnf package: bind-utils; Arch uses pacman package: bind.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu apt package: dnsutils dig MX example.com Same command on this distribution.
Fedora dnf package: bind-utils dig MX example.com Same command on this distribution.
Arch pacman package: bind dig MX example.com Same command on this distribution.

Keep learning

Related Networking commands