nslookup -type=MX gmail.comServer: XXXAddress: 192.168.1.11Non-authoritative answer:gmail.com MX preference = 5, mail exchanger = gmail-smtp-in.l.google.comgmail.com MX preference = 30, mail exchanger = alt3.gmail-smtp-in.l.google.comgmail.com MX preference = 20, mail exchanger = alt2.gmail-smtp-in.l.google.comgmail.com MX preference = 10, mail exchanger = alt1.gmail-smtp-in.l.google.comgmail.com MX preference = 40, mail exchanger = alt4.gmail-smtp-in.l.google.comgmail-smtp-in.l.google.com internet address = 142.250.102.27gmail-smtp-in.l.google.com AAAA IPv6 address = ::alt3.gmail-smtp-in.l.google.com internet address = 74.125.200.27alt3.gmail-smtp-in.l.google.com AAAA IPv6 address = ::alt2.gmail-smtp-in.l.google.com internet address = 142.250.150.27alt2.gmail-smtp-in.l.google.com AAAA IPv6 address = ::alt1.gmail-smtp-in.l.google.com internet address = 142.251.9.26alt1.gmail-smtp-in.l.google.com AAAA IPv6 address = ::alt4.gmail-smtp-in.l.google.com internet address = 142.250.157.26alt4.gmail-smtp-in.l.google.com AAAA IPv6 address = ::
nslookup -type=MX opnsense.orgServer: XXXXXAddress: 192.168.1.11Non-authoritative answer:opnsense.org MX preference = 0, mail exchanger = mail.opnsense.orgmail.opnsense.org internet address = 81.171.24.236
Resolve-DnsName -Name gmail.com -Type MX | where {$_.NameExchange -ne $null} | Resolve-DnsName | where {$_.IP4Address -ne $null} | select -Unique IP4AddressIP4Address----------142.250.150.27142.251.9.26142.250.157.27142.250.102.2674.125.200.26