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

MyMemoWiki

差分

ナビゲーションに移動 検索に移動
2,900 バイト追加 、 2021年9月4日 (土) 07:11
ページの作成:「==Bonjour== *https://developer.apple.com/bonjour/ *[https://ja.wikipedia.org/wiki/Bonjour 概要] *[http://www.asahi-net.or.jp/~cy5d-ks/colum013.html TCP/IP環境に革…」
==Bonjour==
*https://developer.apple.com/bonjour/
*[https://ja.wikipedia.org/wiki/Bonjour 概要]
*[http://www.asahi-net.or.jp/~cy5d-ks/colum013.html TCP/IP環境に革新もたらすZeroConfネットワーク「Bonjour」]
*[https://developer.apple.com/bonjour/ Bonjour]
*[https://github.com/ecnepsnai/BonjourSwift/blob/master/Bonjour.swift サンプル]
*[https://developer.apple.com/library/mac/qa/qa1312/_index.html サービスタイプ]
*[https://support.apple.com/ja-jp/guide/deployment-reference-ios/apd2b9e1ffaa/1/web/1.0 DNS Service Discoveryの仕組み]
*[https://help.dyn.com/bonjour-and-dns-discovery/ DNS Service Discovery]
*[https://docs.oracle.com/cd/E56342_01/html/E54076/dns-sd-1m.html dns-sd]
**macOSのdns-sdコマンドではDNSの逆引きに 相当することが出来ない
*[https://stackoverflow.com/questions/31835418/how-to-get-mac-address-from-os-x-with-swift How to get MAC address from OS X with Swift]
<pre>
$ 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)
</pre>
<pre>
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
</pre>

<pre>
$ 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
</pre>


=====[https://serverfault.com/questions/143184/how-do-i-get-the-machine-name-from-an-ip-via-multicast-dns digで逆引き]=====
*@224.0.0.251 -p 5353 はBonjourのアドレス
<pre>
$ dig +short -x 192.168.0.45 @224.0.0.251 -p 5353
puli.local.
</pre>

案内メニュー