Sometimes it can be nice to verify that the hostname on your box (printer, raspberry pi, whatever) is resolving to the correct IP-address on the LAN.
Whether it’s published via Avahi, Bonjour or something similar. An mDNS request resolves to.
- IPv4 address 22.214.171.124 or IPv6 address ff02::fb
- UDP port 5353
This can be achieved with dig, example:
~$ dig whatever.local @126.96.36.199 -p 5353
;; QUESTION SECTION:
;whatever.local. IN A
;; ANSWER SECTION:
whatever.local. 10 IN A 10.13.37.7
;; ADDITIONAL SECTION:
whatever.local. 10 IN AAAA fe80::;;
whatever.local. 10 IN AAAA fdaa:;;