« iPhone stupidity | Fedora 14 preupgrade doesn't require user interaction » |
Resolving IP addresses with Bonjour and mDNS
Wednesday, November 3, 2010
OS X uses this strange mDNS thing that I haven't studied much, but what I have gathered is that host
and nslookup
don't work for resolving hostnames over mDNS. The way to do this is to use dns-sd -G
, like:
$ dns-sd -G v4 foobar.local
Comments
eDiAmFxUoTpRabz on Sunday, March 24, 2024 at 11:11
jqiAdGaNbu
eDiAmFxUoTpRabz on Sunday, March 24, 2024 at 11:11
jqiAdGaNbu
wRAGkiTWXBy on Sunday, March 24, 2024 at 11:11
pJUWNCRT
wRAGkiTWXBy on Sunday, March 24, 2024 at 11:11
pJUWNCRT
Max on Tuesday, June 3, 2014 at 04:33
Excelent! Note that you might want your command window 101 characters wide. Example output:
Timestamp A/R Flags if Hostname Address TTL
12:32:23.921 Add 2 12 unitname.local. 192.168.111.9 120
You will need to use CTRL+C to exit.