Bonjour
ナビゲーションに移動
検索に移動
Bonjour
- Ubuntu mDNS
- https://developer.apple.com/bonjour/
- 概要
- TCP/IP環境に革新もたらすZeroConfネットワーク「Bonjour」
- Bonjour
- サンプル
- サービスタイプ
- DNS Service Discoveryの仕組み
- DNS Service Discovery
- dns-sd
- macOSのdns-sdコマンドではDNSの逆引きに 相当することが出来ない
- How to get MAC address from OS X with Swift
$ dns-sd dns-sd -E (Enumerate recommended registration domains) dns-sd -F (Enumerate recommended browsing domains) dns-sd -R <Name> <Type> <Domain> <Port> [<TXT>...] (Register a service) dns-sd -P <Name> <Type> <Domain> <Port> <Host> <IP> [<TXT>...] (Register Proxy) dns-sd -B <Type> <Domain> (Browse for service instances) dns-sd -Z <Type> <Domain> (Output results in Zone File format) dns-sd -L <Name> <Type> <Domain> (Resolve (‘lookup’) a service instance) dns-sd -Q <name> <rrtype> <rrclass> (Generic query for any record type) dns-sd -q <name> <rrtype> <rrclass> (Generic query, using SuppressUnusable) dns-sd -G v4/v6/v4v6 <hostname> (Get address information for hostname) dns-sd -X udp/tcp/udptcp <IntPort> <ExtPort> <TTL> (NAT Port Mapping) dns-sd -H (Print usage for complete command list) dns-sd -V (Get version of currently running daemon / system service) dns-sd -O [-compress|-stdout](Dump the state of mDNSResponder to file / STDOUT)
calcutta:~ hirotoyagi$ dns-sd -B Browsing for _http._tcp DATE: ---Wed 24 Feb 2021--- 22:20:24.598 ...STARTING... Timestamp A/R Flags if Domain Service Type Instance Name 22:20:24.599 Add 2 6 local. _http._tcp. Brother DCP-J973N
$ dns-sd -q puli.local DATE: ---Sat 01 May 2021--- 10:52:54.599 ...STARTING... Timestamp A/R Flags if Name Type Class Rdata 10:52:54.771 Add 2 6 puli.local. Addr IN 192.168.0.45
digで逆引き
- @224.0.0.251 -p 5353 はBonjourのアドレス
$ dig +short -x 192.168.0.45 @224.0.0.251 -p 5353 puli.local.
© 2006 矢木浩人