This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Discovery with DNS SD
Farshid Tavakolizadeh edited this page Jun 18, 2020
·
7 revisions
The directory is published as a DNS-SD service with:
- Service Type:
_wot._tcp
- Subtype:
_directory
The instance name and domain are configurable.
Browse and resolve (lookup) instances with _wot._tcp
type and _directory
subtype:
Avahi (Linux)
$ avahi-browse _directory._sub._wot._tcp --resolve
+ eth0 IPv4 Local Thing Directory _wot._tcp local
= eth0 IPv4 Local Thing Directory _wot._tcp local
hostname = [raspi.local]
address = [192.168.1.113]
port = [8081]
txt = ["version=master" "td=/td"]
Bonjour (macOS/windows)
# Browse
% dns-sd -B _wot._tcp,_directory
Browsing for _wot._tcp,_directory
DATE: ---Tue 16 Jun 2020---
11:30:43.391 ...STARTING...
Timestamp A/R Flags if Domain Service Type Instance Name
11:30:43.392 Add 2 5 local. _wot._tcp. Local Thing Directory
^C
# Lookup
% dns-sd -L "Local Thing Directory" _wot._tcp local
Lookup Local Thing Directory._wot._tcp.local
DATE: ---Tue 16 Jun 2020---
11:30:52.811 ...STARTING...
11:30:52.812 Local\032Thing\032Directory._wot._tcp.local. can be reached at raspi.local.:8081 (interface 5)
td=/td version=master
^C