nslookup
ネットワーク
書き方
nslookup <name> [server]名前を住所に変える古い道具で、まだ動きますが、出力の形も終了状態も一定でないため台本には向かず、いまは dig がその役を引き継いでいます。
よく使うオプション
| オプション | 意味 |
|---|---|
| <name> <server> | The resolver to ask goes second, with no flag. |
| -type=MX | Record type, written with an equals sign. |
| -debug | Show the full packet, including the flags in the header. |
| (no argument) | Drops into an interactive prompt where you use "set type=MX". |
例
nslookup example.com 1.1.1.1A quick lookup against a chosen resolver.
nslookup -type=MX example.comMail records, the nslookup spelling.
つながらないとき、どこまで行けたのかを絞ります — 名前が引けないのか、経路がないのか、ポートが閉じているのか。
読み方
- 角括弧 [ ] は省いてよい部分です。
- 三点 … は複数並べられるという意味です。
- オプションは大文字小文字を区別します — -r と -R が別物のコマンドもあります。
よくある質問
Q. nslookup は何をしますか。
名前を住所に変える古い道具で、まだ動きますが、出力の形も終了状態も一定でないため台本には向かず、いまは dig がその役を引き継いでいます。
Q. どう打ちますか。
nslookup <name> [server] — 角括弧は省いてよい部分です。
Q. よく使うオプションはいくつですか。
ここにまとめたのは4個です。全部は man nslookup にあります。このコマンドはネットワークの仲間です。
関連するコマンド
man ページ: man nslookup