Windows 10のnslookupコマンドでDNSのMXレコードを参照する

Windowsには、少なくとも標準ではdigコマンドやhostコマンドはなく、nslookupコマンドしかない。 NetBSDにもBINDに付属するnslookupコマンドはあるのだが、最近は使うことはあまりない。

そのWindows用のnslookupコマンドも、BINDのものと同様に、レコードのタイプを 指定して参照できる。少なくともレコードのタイプを指定するという意味では、 Windows 10 20H2のnslookupコマンドは、BINDのものと同じように使えた。

Windows 10の場合

>nslookup -type=MX google.com
サーバー:  UnKnown
Address:  10.123.123.123

権限のない回答:
google.com      MX preference = 30, mail exchanger = alt2.aspmx.l.google.com
google.com      MX preference = 40, mail exchanger = alt3.aspmx.l.google.com
google.com      MX preference = 50, mail exchanger = alt4.aspmx.l.google.com
google.com      MX preference = 20, mail exchanger = alt1.aspmx.l.google.com
google.com      MX preference = 10, mail exchanger = aspmx.l.google.com

alt2.aspmx.l.google.com internet address = 142.250.115.26
alt2.aspmx.l.google.com AAAA IPv6 address = 2607:f8b0:4023:1004::1b
alt3.aspmx.l.google.com internet address = 64.233.171.26
alt3.aspmx.l.google.com AAAA IPv6 address = 2607:f8b0:4003:c15::1a
alt1.aspmx.l.google.com internet address = 142.250.141.26
alt1.aspmx.l.google.com AAAA IPv6 address = 2607:f8b0:4023:c0b::1a
aspmx.l.google.com      internet address = 108.177.97.26
aspmx.l.google.com      AAAA IPv6 address = 2404:6800:4008:c15::1a

NetBSD 9.99.92の場合

$ nslookup -type=MX google.com
Server:         10.234.234.234
Address:        10.234.234.234#53

Non-authoritative answer:
google.com      mail exchanger = 30 alt2.aspmx.l.google.com.
google.com      mail exchanger = 50 alt4.aspmx.l.google.com.
google.com      mail exchanger = 10 aspmx.l.google.com.
google.com      mail exchanger = 20 alt1.aspmx.l.google.com.
google.com      mail exchanger = 40 alt3.aspmx.l.google.com.

Authoritative answers can be found from:
alt4.aspmx.l.google.com internet address = 142.250.152.27
aspmx.l.google.com      internet address = 108.177.97.26
aspmx.l.google.com      has AAAA address 2404:6800:4008:c13::1a
alt1.aspmx.l.google.com internet address = 142.250.141.27
alt1.aspmx.l.google.com has AAAA address 2607:f8b0:4023:c0b::1b
alt3.aspmx.l.google.com internet address = 64.233.171.27
alt3.aspmx.l.google.com has AAAA address 2607:f8b0:4003:c15::1a
alt2.aspmx.l.google.com internet address = 142.250.115.26

nslookupコマンドでインタラクティブにクエリーを発行する場合にも、 WindowsとBINDで設定方法は同じだった。

Windows 10の場合

>nslookup
既定のサーバー:  UnKnown
Address:  10.123.123.123

> set type=MX
> google.com
サーバー:  UnKnown
Address:  10.123.123.123

権限のない回答:
google.com      MX preference = 40, mail exchanger = alt3.aspmx.l.google.com
google.com      MX preference = 50, mail exchanger = alt4.aspmx.l.google.com
google.com      MX preference = 20, mail exchanger = alt1.aspmx.l.google.com
google.com      MX preference = 10, mail exchanger = aspmx.l.google.com
google.com      MX preference = 30, mail exchanger = alt2.aspmx.l.google.com

alt3.aspmx.l.google.com internet address = 64.233.171.27
alt3.aspmx.l.google.com AAAA IPv6 address = 2607:f8b0:4003:c15::1a
aspmx.l.google.com      internet address = 108.177.97.26
alt2.aspmx.l.google.com internet address = 142.250.115.26
> gmail.com
サーバー:  UnKnown
Address:  10.123.123.123

権限のない回答:
gmail.com       MX preference = 30, mail exchanger = alt3.gmail-smtp-in.l.google.com
gmail.com       MX preference = 5, mail exchanger = gmail-smtp-in.l.google.com
gmail.com       MX preference = 10, mail exchanger = alt1.gmail-smtp-in.l.google.com
gmail.com       MX preference = 40, mail exchanger = alt4.gmail-smtp-in.l.google.com
gmail.com       MX preference = 20, mail exchanger = alt2.gmail-smtp-in.l.google.com

alt3.gmail-smtp-in.l.google.com internet address = 64.233.171.26
alt3.gmail-smtp-in.l.google.com AAAA IPv6 address = 2607:f8b0:4003:c15::1a
gmail-smtp-in.l.google.com      internet address = 108.177.125.26
gmail-smtp-in.l.google.com      AAAA IPv6 address = 2404:6800:4008:c01::1a
alt1.gmail-smtp-in.l.google.com internet address = 142.250.141.26
alt1.gmail-smtp-in.l.google.com AAAA IPv6 address = 2607:f8b0:4023:c0b::1b
alt4.gmail-smtp-in.l.google.com internet address = 142.250.152.26
alt4.gmail-smtp-in.l.google.com AAAA IPv6 address = 2607:f8b0:4001:c56::1a
alt2.gmail-smtp-in.l.google.com internet address = 142.250.115.26
alt2.gmail-smtp-in.l.google.com AAAA IPv6 address = 2607:f8b0:4023:1004::1a

NetBSD 9.99.92の場合

$ nslookup
> set type=MX
> google.com
Server:         10.234.234.234
Address:        10.234.234.234#53

Non-authoritative answer:
google.com      mail exchanger = 40 alt3.aspmx.l.google.com.
google.com      mail exchanger = 30 alt2.aspmx.l.google.com.
google.com      mail exchanger = 50 alt4.aspmx.l.google.com.
google.com      mail exchanger = 10 aspmx.l.google.com.
google.com      mail exchanger = 20 alt1.aspmx.l.google.com.

Authoritative answers can be found from:
alt4.aspmx.l.google.com internet address = 142.250.152.27
aspmx.l.google.com      internet address = 142.250.157.26
alt1.aspmx.l.google.com internet address = 142.250.141.26
alt3.aspmx.l.google.com internet address = 64.233.171.26
alt2.aspmx.l.google.com internet address = 142.250.115.27
> gmail.com
Server:         10.234.234.234
Address:        10.234.234.234#53

Non-authoritative answer:
gmail.com       mail exchanger = 30 alt3.gmail-smtp-in.l.google.com.
gmail.com       mail exchanger = 20 alt2.gmail-smtp-in.l.google.com.
gmail.com       mail exchanger = 40 alt4.gmail-smtp-in.l.google.com.
gmail.com       mail exchanger = 10 alt1.gmail-smtp-in.l.google.com.
gmail.com       mail exchanger = 5 gmail-smtp-in.l.google.com.

Authoritative answers can be found from:
alt1.gmail-smtp-in.l.google.com internet address = 142.250.141.27
alt1.gmail-smtp-in.l.google.com has AAAA address 2607:f8b0:4023:c0b::1b
gmail-smtp-in.l.google.com      internet address = 108.177.97.27
gmail-smtp-in.l.google.com      has AAAA address 2404:6800:4008:c00::1a
alt3.gmail-smtp-in.l.google.com internet address = 64.233.171.26
alt3.gmail-smtp-in.l.google.com has AAAA address 2607:f8b0:4003:c15::1b
alt2.gmail-smtp-in.l.google.com internet address = 142.250.115.27
alt2.gmail-smtp-in.l.google.com has AAAA address 2607:f8b0:4023:1004::1b
alt4.gmail-smtp-in.l.google.com internet address = 142.250.152.27
alt4.gmail-smtp-in.l.google.com has AAAA address 2607:f8b0:4001:c56::1a

0 件のコメント:

コメントを投稿

Mac miniにWindows用キーボードを接続してmacOSをインターネットリカバリーする

iPhoneの写真をWindows PCにUSB-Lightningケーブルで接続すると、MTPでファイル転送できるのだが、 非常に不安定で、少しまとめて写真を転送しようとすると、すぐにデバイスエラーになってしまう。 iPhoneがMTP経由でWindows PCに...