| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

Bonjour

提供: MyMemoWiki
2022年8月7日 (日) 02:47時点におけるPiroto (トーク | 投稿記録)による版 (→‎Bonjour)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
ナビゲーションに移動 検索に移動

Bonjour

$ 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.