digとnslookupの使用例を記載します。
フォーマット
nslookup [ns名] [ip/ドメイン名]
dig @[ns名] [option] [ip/ドメイン名]
正引き
dig test.com
Host1 admin$ dig test.com
;; QUESTION SECTION:
test.com. IN A
;; ANSWER SECTION:
test.com. IN A 10.10.10.1
nslookup test.com
Host1 admin$ nslookup test.com
Server: 20.20.20.20
Address: 20.20.20.20#53
Non-authoritative answer:
Name: test.com
Address: 10.10.10.1
逆引き
dig -x 10.10.10.1
Host1 admin$ dig -x 10.10.10.1
;; QUESTION SECTION:
;1.10.10.10.in-addr.arpa. IN PTR
;; ANSWER SECTION:
1.10.10.10.in-addr.arpa. 7200 IN PTR test.com.
nslookup 10.10.10.1
Host1 admin$ $nslookup 10.10.10.1
Non-authoritative answer:
1.10.10.10.in-addr.arpa name = test.com.