forked from AMWA-TV/nmos-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 'origin/master' into 'origin/udns'
- Loading branch information
Showing
7 changed files
with
158 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ gitpython | |
ramlfications | ||
websocket-client | ||
jsonref | ||
|
||
dnslib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
$ORIGIN testsuite.nmos.tv. | ||
$TTL 60s | ||
|
||
testsuite.nmos.tv. IN SOA ns.testsuite.nmos.tv. postmaster.testsuite.nmos.tv. ( 2007120710 1d 2h 4w 1h ) | ||
testsuite IN A 127.0.0.1 | ||
|
||
; These lines indicate to clients that this server supports DNS Service Discovery | ||
b._dns-sd._udp IN PTR @ | ||
lb._dns-sd._udp IN PTR @ | ||
|
||
; These lines indicate to clients which service types this server may advertise | ||
_services._dns-sd._udp PTR _nmos-registration._tcp | ||
_services._dns-sd._udp PTR _nmos-register._tcp | ||
_services._dns-sd._udp PTR _nmos-query._tcp | ||
|
||
; These lines give the fully qualified DNS names to the IP addresses of the hosts which we'd like to discover | ||
registration5001.testsuite.nmos.tv. IN A 127.0.0.1 | ||
query5001.testsuite.nmos.tv. IN A 127.0.0.1 | ||
registration5002.testsuite.nmos.tv. IN A 127.0.0.1 | ||
query5002.testsuite.nmos.tv. IN A 127.0.0.1 | ||
registration5003.testsuite.nmos.tv. IN A 127.0.0.1 | ||
query5003.testsuite.nmos.tv. IN A 127.0.0.1 | ||
registration5004.testsuite.nmos.tv. IN A 127.0.0.1 | ||
query5004.testsuite.nmos.tv. IN A 127.0.0.1 | ||
registration5005.testsuite.nmos.tv. IN A 127.0.0.1 | ||
query5005.testsuite.nmos.tv. IN A 127.0.0.1 | ||
|
||
; There should be one PTR record for each instance of the service you wish to advertise. | ||
_nmos-registration._tcp PTR reg-api-5001._nmos-registration._tcp | ||
_nmos-register._tcp PTR reg-api-5001._nmos-registration._tcp | ||
_nmos-query._tcp PTR qry-api-5001._nmos-query._tcp | ||
_nmos-registration._tcp PTR reg-api-5002._nmos-registration._tcp | ||
_nmos-register._tcp PTR reg-api-5002._nmos-registration._tcp | ||
_nmos-query._tcp PTR qry-api-5002._nmos-query._tcp | ||
_nmos-registration._tcp PTR reg-api-5003._nmos-registration._tcp | ||
_nmos-register._tcp PTR reg-api-5003._nmos-registration._tcp | ||
_nmos-query._tcp PTR qry-api-5003._nmos-query._tcp | ||
_nmos-registration._tcp PTR reg-api-5004._nmos-registration._tcp | ||
_nmos-register._tcp PTR reg-api-5004._nmos-registration._tcp | ||
_nmos-query._tcp PTR qry-api-5004._nmos-query._tcp | ||
_nmos-registration._tcp PTR reg-api-5005._nmos-registration._tcp | ||
_nmos-register._tcp PTR reg-api-5005._nmos-registration._tcp | ||
_nmos-query._tcp PTR qry-api-5005._nmos-query._tcp | ||
|
||
; Next we have a SRV and a TXT record corresponding to each PTR above, first the Registration API | ||
; The SRV links the PTR name to a resolvable DNS name (see the A records above) and identify the port which the API runs on | ||
; The TXT records indicate additional metadata relevant to the IS-04 spec | ||
reg-api-5001._nmos-registration._tcp SRV 0 0 5001 registration5001.testsuite.nmos.tv. | ||
reg-api-5001._nmos-registration._tcp TXT "api_ver=v1.0,v1.1,v1.2,v1.3" "api_proto=http" "pri=0" | ||
reg-api-5002._nmos-registration._tcp SRV 0 0 5002 registration5002.testsuite.nmos.tv. | ||
reg-api-5002._nmos-registration._tcp TXT "api_ver=v1.0,v1.1,v1.2,v1.3" "api_proto=http" "pri=10" | ||
reg-api-5003._nmos-registration._tcp SRV 0 0 5003 registration5003.testsuite.nmos.tv. | ||
reg-api-5003._nmos-registration._tcp TXT "api_ver=v1.0,v1.1,v1.2,v1.3" "api_proto=http" "pri=20" | ||
reg-api-5004._nmos-registration._tcp SRV 0 0 5004 registration5004.testsuite.nmos.tv. | ||
reg-api-5004._nmos-registration._tcp TXT "api_ver=v1.0,v1.1,v1.2,v1.3" "api_proto=http" "pri=30" | ||
reg-api-5005._nmos-registration._tcp SRV 0 0 5005 registration5005.testsuite.nmos.tv. | ||
reg-api-5005._nmos-registration._tcp TXT "api_ver=v1.0,v1.1,v1.2,v1.3" "api_proto=http" "pri=40" | ||
|
||
; Finally, the SRV and TXT for the Query API | ||
qry-api-5001._nmos-query._tcp SRV 0 0 5001 query5001.testsuite.nmos.tv. | ||
qry-api-5001._nmos-query._tcp TXT "api_ver=v1.0,v1.1,v1.2,v1.3" "api_proto=http" "pri=0" | ||
qry-api-5002._nmos-query._tcp SRV 0 0 5002 query5002.testsuite.nmos.tv. | ||
qry-api-5002._nmos-query._tcp TXT "api_ver=v1.0,v1.1,v1.2,v1.3" "api_proto=http" "pri=10" | ||
qry-api-5003._nmos-query._tcp SRV 0 0 5003 query5003.testsuite.nmos.tv. | ||
qry-api-5003._nmos-query._tcp TXT "api_ver=v1.0,v1.1,v1.2,v1.3" "api_proto=http" "pri=20" | ||
qry-api-5004._nmos-query._tcp SRV 0 0 5004 query5004.testsuite.nmos.tv. | ||
qry-api-5004._nmos-query._tcp TXT "api_ver=v1.0,v1.1,v1.2,v1.3" "api_proto=http" "pri=30" | ||
qry-api-5005._nmos-query._tcp SRV 0 0 5005 query5005.testsuite.nmos.tv. | ||
qry-api-5005._nmos-query._tcp TXT "api_ver=v1.0,v1.1,v1.2,v1.3" "api_proto=http" "pri=40" |