Which if the following tools, used for DNS debugging, reports not only the response from the name sever but also details about the query?
Which if the following tools, used for DNS debugging, reports not only the response from the name sever but also details about the query?
The tool for DNS debugging that reports not only the response from the name server but also details about the query is 'dig'. 'dig' (Domain Information Groper) is commonly used for inspecting the DNS and provides detailed output about the query, including the question, answer, authority, and additional sections.
dig is correct, as it provides query options
>> dig is correct [root@rhel8-02 ~]# dig google.com ; <<>> DiG 9.11.26-RedHat-9.11.26-3.el8 <<>> google.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18335 ;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ;; QUESTION SECTION: ;google.com. IN A ;; ANSWER SECTION: google.com. 102 IN A 142.250.4.100 google.com. 102 IN A 142.250.4.138 google.com. 102 IN A 142.250.4.102 google.com. 102 IN A 142.250.4.101 google.com. 102 IN A 142.250.4.113 google.com. 102 IN A 142.250.4.139 ;; Query time: 47 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Sat Nov 20 04:41:02 EST 2021 ;; MSG SIZE rcvd: 135
If you suspect issues with hostnames, you can use the host and dig commands to query the DNS server for host names.
dig is correct "dig will work for simple lookups, but it is more suited for troubleshooting DNS server configuration" source: LPIC-1 (102) (Version 5.0), page 469