VxRail: digを使用してDNS機能を確認する方法

Summary: このKB記事では、名前解決の問題が疑われる場合に、Linux Domain Information Groper (dig)を使用してお客様のドメイン ネーム システム(DNS)構成を確認する方法について説明します。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

DigによるDNS機能の検証

この記事では、名前解決の問題が疑われる場合に、Linux digツールを使用してお客様のDNS構成を確認する方法について説明します。

基本的なDNSクエリー

デフォルトでは、ネームサーバーが指定されていない場合、 /etc/resolv.conf ファイル内のDNSリゾルバーが使用されます。発掘はまた、探します A 他のオプションを指定せずに記録します。

mystic@qvxrm:~> dig esxi-vxrail-quanta-01.domain.com +short
192.0.2.100
mystic@qvxrm:~> dig esxi-vxrail-quanta-01.domain.com
; <<>> DiG 9.9.9-P1 <<>> esxi-vxrail-quanta-01.domain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14171
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;esxi-vxrail-quanta-01.domain.com.        IN      A

;; ANSWER SECTION:
esxi-vxrail-quanta-01.domain.com. 3600 IN A       192.0.2.100

;; Query time: 0 msec
;; SERVER: 192.0.2.200#53(192.0.2.200)
;; WHEN: Mon Oct 01 06:53:43 UTC 2018
;; MSG SIZE  rcvd: 75

特定のネーム サーバーのクエリー

クエリーの送信先のネームサーバーを @ 記号の後に、通信するネームサーバーのホスト名または IP アドレスが続きます。

mystic@qvxrm:~> dig esxi-vxrail-quanta-01.domain.com +short
192.0.2.100

mystic@qvxrm:~> dig @192.0.2.200 esxi-vxrail-quanta-01.domain.com +short
192.0.2.100

mystic@qvxrm:~> dig @192.0.2.200 esxi-vxrail-quanta-01.domain.com

; <<>> DiG 9.9.9-P1 <<>> @192.0.2.200 esxi-vxrail-quanta-01.domain.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35841
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;esxi-vxrail-quanta-01.domain.com.        IN      A

;; ANSWER SECTION:
esxi-vxrail-quanta-01.domain.com. 3600 IN A       192.0.2.100

;; Query time: 0 msec
;; SERVER: 192.0.2.200#53(192.0.2.200)
;; WHEN: Mon Oct 01 06:54:40 UTC 2018
;; MSG SIZE  rcvd: 75

DNS逆引きルックアップ

digツールを使用して、DNS逆引き参照を実行し、IPをクエリーして、ポインター レコード(PTR)からドメイン名を検索します。これは、 -x オプションに続けて IP アドレスを指定します。

mystic@qvxrm:~> dig -x 192.0.2.100 +short
esxi-vxrail-quanta-01.domain.com.

mystic@qvxrm:~> dig @192.0.2.200 -x 192.0.2.100 +short
esxi-vxrail-quanta-01.domain.com.

mystic@qvxrm:~> dig -x 192.0.2.100

; <<>> DiG 9.9.9-P1 <<>> -x 192.0.2.100
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42434
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;100.2.0.192.in-addr.arpa.     IN      PTR

;; ANSWER SECTION:
100.2.0.192.in-addr.arpa. 3600 IN      PTR     esxi-vxrail-quanta-01.domain.com.

;; Query time: 0 msec
;; SERVER: 192.0.2.200#53(192.0.2.200)
;; WHEN: Mon Oct 01 06:55:57 UTC 2018
;; MSG SIZE  rcvd: 98
お客様のDNSがeDNS拡張機能をサポートしていない場合は、関連するKB記事を参照してください。

Additional Information

その他の例については、 https://www.rootusers.com/12-dig-command-examples-to-query-dns-in-linux/ を参照してください。このハイパーリンクをクリックすると、デル・テクノロジーズ以外のWebサイトにアクセスします。(外部リンク)

Affected Products

VxRail Appliance Series, VxRail Software
Article Properties
Article Number: 000009594
Article Type: How To
Last Modified: 14 Jul 2026
Version:  9
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.