DNS-test.resiprocate.org

From reSIProcate
Jump to: navigation, search

Last edited: 20190525075702

Edits here will be reflected in the test. resiprocate.org zone. (no longer true, but the page remains to demonstrate possible DNS configs) Be sure to change the serial number to the form: YYYYMMDDNN

  • YYYY is this year
  • MM is the month
  • DD is the date, and;
  • NN is a small integer that changes with every edit (number of edits per day)

The serial number must always increase or people will not see your zone changes.

Changes may take a few minutes to take effect (this page is scraped by a periodic cronjob)

Ensure that your changes are confined to the <pre>...</pre> region of the text and that you keep the <pre> section intact.

$TTL 600
test.resiprocate.org. IN SOA dns.resiprocate.org. root.resiprocate.org. (
        2007090604 ; serial - change
        10800 ; refresh
        3600 ; retry
        604800 ;   expiry
        86400 ) ; minimum
        IN NS dns.resiprocate.org.
        IN NS dns.estacado.net.

; Comments start with a semicolon
	IN TXT "This is to aid in testing various scenarios"

; These are bogus addresses
h1 IN A 127.0.3.91
h2 IN A 127.0.3.127

; This sets naptrs for "test.resiprocate.org" itself.

test.resiprocate.org.  600   IN    NAPTR   40 50 "s" "SIP+D2U"  ""  _sip._udp.h2
test.resiprocate.org.  600   IN    NAPTR   30 60 "s" "SIP+D2T"  ""  _sip._tcp.h2
test.resiprocate.org.  600   IN    NAPTR   50 70 "s" "SIPS+D2T" "" _sips._tcp.h2

_sip._udp.h2 600 IN SRV  0 1 5060 h2
_sip._tcp.h2 600 IN SRV  0 1 5060 h2

rsproxy IN A 127.4.2.47
_sip._udp.rsproxy 600 IN SRV 0 1 5060 rsproxy
_sip._tcp.rsproxy 600 IN SRV 0 1 5060 rsproxy
_sips._tcp.rsproxy 600 IN SRV 0 1 5061 rsproxy
rsproxy 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.rsproxy
rsproxy 600 IN NAPTR 50 50 "s" "SIP+D2T" "" _sip._tcp.rsproxy
rsproxy 600 IN NAPTR 30 50 "s" "SIPS+D2T" "" _sips._tcp.rsproxy

rsproxyv6 IN AAAA 3ffe:302:feed:beef:211:43ff:fee0:e130
_sip._udp.rsproxyv6 600 IN SRV 0 1 5060 rsproxyv6
_sip._tcp.rsproxyv6 600 IN SRV 0 1 5060 rsproxyv6
_sips._tcp.rsproxyv6 600 IN SRV 0 1 5061 rsproxyv6
rsproxyv6 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.rsproxyv6
rsproxyv6 600 IN NAPTR 50 50 "s" "SIP+D2T" "" _sip._tcp.rsproxyv6
rsproxyv6 600 IN NAPTR 30 50 "s" "SIPS+D2T" "" _sips._tcp.rsproxyv6


rsproxy2 IN A 127.4.2.219
_sip._udp.rsproxy2 600 IN SRV 0 1 5060 rsproxy2
_sip._tcp.rsproxy2 600 IN SRV 0 1 5060 rsproxy2
_sips._tcp.rsproxy2 600 IN SRV 0 1 5061 rsproxy2
rsproxy2 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.rsproxy2
rsproxy2 600 IN NAPTR 50 50 "s" "SIP+D2T" "" _sip._tcp.rsproxy2
rsproxy2 600 IN NAPTR 30 50 "s" "SIPS+D2T" "" _sips._tcp.rsproxy2

home 666 IN A 127.0.0.1

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;For resip DNS unit test;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;  NAPTR ok, SRV ok, A ok 
;  Working NAPTR->SRV->A tree 
user IN A 127.0.0.1

_sip._udp.user 600 IN SRV 0 1 5060 user
_sip._udp.user 600 IN SRV 1 1 5070 user
_sip._udp.user 600 IN SRV 2 1 5080 user
_sip._tcp.user 600 IN SRV 0 1 5060 user
_sip._tcp.user 600 IN SRV 1 1 5070 user
_sip._tcp.user 600 IN SRV 2 1 5080 user
_sips._tcp.user 600 IN SRV 0 1 5061 user
_sips._tcp.user 600 IN SRV 1 1 5071 user
_sips._tcp.user 600 IN SRV 2 1 5081 user

user-udp 600 IN NAPTR 30 50 "s" "SIP+D2U" "" _sip._udp.user
user-udp 600 IN NAPTR 40 50 "s" "SIP+D2T" "" _sip._tcp.user
user-udp 600 IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.user

user-tcp 600 IN NAPTR 40 50 "s" "SIP+D2U" "" _sip._udp.user
user-tcp 600 IN NAPTR 30 50 "s" "SIP+D2T" "" _sip._tcp.user
user-tcp 600 IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.user

user-tls 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.user
user-tls 600 IN NAPTR 40 50 "s" "SIP+D2T" "" _sip._tcp.user
user-tls 600 IN NAPTR 30 50 "s" "SIPS+D2T" "" _sips._tcp.user

;  NAPTR broken, SRV ok, A ok 
user-brokenNAPTR 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.broken
user-brokenNAPTR 600 IN NAPTR 30 50 "s" "SIP+D2T" "" _sip._tcp.broken
user-brokenNAPTR 600 IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.broken
_sip._udp.user-brokenNAPTR 600 IN SRV 0 1 5070 user-brokenNAPTR
_sip._tcp.user-brokenNAPTR 600 IN SRV 0 1 5070 user-brokenNAPTR
_sips._tcp.user-brokenNAPTR 600 IN SRV 0 1 5071 user-brokenNAPTR
user-brokenNAPTR IN A 127.0.0.1

; NAPTR missing, SRV ok, A ok 
_sip._udp.user-noNAPTR 600 IN SRV 0 1 5070 user-noNAPTR
_sip._tcp.user-noNAPTR 600 IN SRV 0 1 5070 user-noNAPTR
_sips._tcp.user-noNAPTR 600 IN SRV 0 1 5071 user-noNAPTR
user-noNAPTR IN A 127.0.0.1

; NAPTR ok, SRV broken, A ok. 
user-brokenSRV 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.user-brokenSRV
user-brokenSRV 600 IN NAPTR 30 50 "s" "SIP+D2T" "" _sip._tcp.user-brokenSRV
user-brokenSRV 600 IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.user-brokenSRV
_sip._udp.user-brokenSRV 600 IN SRV 0 1 5070 broken
_sip._tcp.user-brokenSRV 600 IN SRV 0 1 5070 broken
_sips._tcp.user-brokenSRV 600 IN SRV 0 1 5071 broken
user-brokenSRV IN A 127.0.0.1

; NAPTR broken, SRV broken, A ok 
user-brokenNAPTR-brokenSRV 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.broken
user-brokenNAPTR-brokenSRV 600 IN NAPTR 30 50 "s" "SIP+D2T" "" _sip._tcp.broken
user-brokenNAPTR-brokenSRV 600 IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.broken
_sip._udp.user-brokenNAPTR-brokenSRV 600 IN SRV 0 1 5070 broken
_sip._tcp.user-brokenNAPTR-brokenSRV 600 IN SRV 0 1 5070 broken
_sips._tcp.user-brokenNAPTR-brokenSRV 600 IN SRV 0 1 5071 broken
user-brokenNAPTR-brokenSRV IN A 127.0.0.1

; NAPTR missing, SRV broken, A ok 
_sip._udp.user-noNAPTR-brokenSRV 600 IN SRV 0 1 5070 broken
_sip._tcp.user-noNAPTR-brokenSRV 600 IN SRV 0 1 5070 broken
_sips._tcp.user-noNAPTR-brokenSRV 600 IN SRV 0 1 5071 broken
user-noNAPTR-brokenSRV IN A 127.0.0.1


; NAPTR ok/broken, SRV missing, A ok 
user-noSRV 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.user-noSRV
user-noSRV 600 IN NAPTR 30 50 "s" "SIP+D2T" "" _sip._tcp.user-noSRV
user-noSRV 600 IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.user-noSRV
user-noSRV IN A 127.0.0.1

; NAPTR missing, SRV missing, A ok 
user-noNAPTR-noSRV IN A 127.0.0.1


; The rest of these should fail.
; NAPTR ok, SRV ok, A broken 
user-brokenA 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.user-brokenA
user-brokenA 600 IN NAPTR 30 50 "s" "SIP+D2T" "" _sip._tcp.user-brokenA
user-brokenA 600 IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.user-brokenA
_sip._udp.user-brokenA 600 IN SRV 0 1 5070 user-brokenA
_sip._tcp.user-brokenA 600 IN SRV 0 1 5070 user-brokenA
_sips._tcp.user-brokenA 600 IN SRV 0 1 5071 user-brokenA
user-brokenA IN A 127.200.0.1


; NAPTR broken, SRV ok, A broken 
user-brokenNAPTR-brokenA 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.foobar
user-brokenNAPTR-brokenA 600 IN NAPTR 30 50 "s" "SIP+D2T" "" _sip._tcp.foobar
user-brokenNAPTR-brokenA 600 IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.foobar
_sip._udp.user-brokenNAPTR-brokenA 600 IN SRV 0 1 5070 user-brokenNAPTR-brokenA
_sip._tcp.user-brokenNAPTR-brokenA 600 IN SRV 0 1 5070 user-brokenNAPTR-brokenA
_sips._tcp.user-brokenNAPTR-brokenA 600 IN SRV 0 1 5071 user-brokenNAPTR-brokenA
user-brokenNAPTR-brokenA IN A 127.200.0.1

; NAPTR missing, SRV ok, A broken 
_sip._udp.user-noNAPTR-brokenA 600 IN SRV 0 1 5070 user-noNAPTR-brokenA
_sip._tcp.user-noNAPTR-brokenA 600 IN SRV 0 1 5070 user-noNAPTR-brokenA
_sips._tcp.user-noNAPTR-brokenA 600 IN SRV 0 1 5071 user-noNAPTR-brokenA
user-noNAPTR-brokenA IN A 127.200.0.1

; NAPTR ok, SRV broken, A broken 
user-brokenSRV-brokenA 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.user-brokenSRV-brokenA
user-brokenSRV-brokenA 600 IN NAPTR 30 50 "s" "SIP+D2T" "" _sip._tcp.user-brokenSRV-brokenA
user-brokenSRV-brokenA 600 IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.user-brokenSRV-brokenA
_sip._udp.user-brokenSRV-brokenA 600 IN SRV 0 1 5070 broken
_sip._tcp.user-brokenSRV-brokenA 600 IN SRV 0 1 5070 broken
_sips._tcp.user-brokenSRV-brokenA 600 IN SRV 0 1 5071 broken
user-brokenSRV-brokenA IN A 127.200.0.1

; NAPTR broken, SRV broken, A broken 
user-brokenNAPTR-brokenSRV-brokenA 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.broken
user-brokenNAPTR-brokenSRV-brokenA 600 IN NAPTR 30 50 "s" "SIP+D2T" "" _sip._tcp.broken
user-brokenNAPTR-brokenSRV-brokenA 600 IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.broken
_sip._udp.user-brokenNAPTR-brokenSRV-brokenA 600 IN SRV 0 1 5070 broken
_sip._tcp.user-brokenNAPTR-brokenSRV-brokenA 600 IN SRV 0 1 5070 broken
_sips._tcp.user-brokenNAPTR-brokenSRV-brokenA 600 IN SRV 0 1 5071 broken
user-brokenNAPTR-brokenSRV-brokenA IN A 127.200.0.1

; NAPTR missing, SRV broken, A broken 
_sip._udp.user-noNAPTR-brokenSRV-brokenA 600 IN SRV 0 1 5070 broken
_sip._tcp.user-noNAPTR-brokenSRV-brokenA 600 IN SRV 0 1 5070 broken
_sips._tcp.user-noNAPTR-brokenSRV-brokenA 600 IN SRV 0 1 5071 broken
user-noNAPTR-brokenSRV-brokenA IN A 127.200.0.1

; NAPTR ok/broken, SRV missing, A broken 
user-noSRV-brokenA 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.user-noSRV-brokenA
user-noSRV-brokenA 600 IN NAPTR 30 50 "s" "SIP+D2T" "" _sip._tcp.user-noSRV-brokenA
user-noSRV-brokenA 600 IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.user-noSRV-brokenA

user-noSRV-brokenA IN A 127.200.0.1


; NAPTR missing, SRV missing, A broken 
user-noNAPTR-noSRV-brokenA IN A 127.200.0.1

; NAPTR ok, SRV ok, A missing 
_sip._udp.user-noA 600 IN SRV 0 1 5070 user-noA
_sip._tcp.user-noA 600 IN SRV 0 1 5070 user-noA
_sips._tcp.user-noA 600 IN SRV 0 1 5071 user-noA

user-noA 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.user-noA
user-noA 600 IN NAPTR 30 50 "s" "SIP+D2T" "" _sip._tcp.user-noA
user-noA 600 IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.user-noA

; NAPTR broken, SRV ok, A missing 
user-brokenNAPTR-noA 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.broken
user-brokenNAPTR-noA 600 IN NAPTR 30 50 "s" "SIP+D2T" "" _sip._tcp.broken
user-brokenNAPTR-noA 600 IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.broken
_sip._udp.user-brokenNAPTR-noA 600 IN SRV 0 1 5070 user-brokenNAPTR-noA
_sip._tcp.user-brokenNAPTR-noA 600 IN SRV 0 1 5070 user-brokenNAPTR-noA
_sips._tcp.user-brokenNAPTR-noA 600 IN SRV 0 1 5071 user-brokenNAPTR-noA

; NAPTR missing, SRV ok, A missing 
_sip._udp.user-noNAPTR-noA 600 IN SRV 0 1 5070 user-noNAPTR-noA
_sip._tcp.user-noNAPTR-noA 600 IN SRV 0 1 5070 user-noNAPTR-noA
_sips._tcp.user-noNAPTR-noA 600 IN SRV 0 1 5071 user-noNAPTR-noA

; NAPTR ok, SRV broken, A missing 
user-brokenSRV-noA 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.user-brokenSRV-noA
user-brokenSRV-noA 600 IN NAPTR 30 50 "s" "SIP+D2T" "" _sip._tcp.user-brokenSRV-noA
user-brokenSRV-noA 600 IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.user-brokenSRV-noA
_sip._udp.user-brokenSRV-noA 600 IN SRV 0 1 5070 broken
_sip._tcp.user-brokenSRV-noA 600 IN SRV 0 1 5070 broken
_sips._tcp.user-brokenSRV-noA 600 IN SRV 0 1 5071 broken

; NAPTR broken, SRV broken, A missing 
;  These NAPTR records are broken, but these SRVs can be manufactured. However, these manufactured SRVs are also broken, as is the manufactured A record.
user-brokenNAPTR-brokenSRV-noA 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.broken
user-brokenNAPTR-brokenSRV-noA 600 IN NAPTR 30 50 "s" "SIP+D2T" "" _sip._tcp.broken
user-brokenNAPTR-brokenSRV-noA 600 IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.broken
_sip._udp.user-brokenNAPTR-brokenSRV-noA 600 IN SRV 0 1 5070 broken
_sip._tcp.user-brokenNAPTR-brokenSRV-noA 600 IN SRV 0 1 5070 broken
_sips._tcp.user-brokenNAPTR-brokenSRV-noA 600 IN SRV 0 1 5071 broken

; NAPTR missing, SRV broken, A missing 
_sip._udp.user-noNAPTR-brokenSRV-noA 600 IN SRV 0 1 5070 broken
_sip._tcp.user-noNAPTR-brokenSRV-noA 600 IN SRV 0 1 5070 broken
_sips._tcp.user-noNAPTR-brokenSRV-noA 600 IN SRV 0 1 5071 broken
user-noNAPTR-brokenSRV-noA IN A 127.200.0.1

; NAPTR ok/broken, SRV missing, A missing 
;  These NAPTR records point nowhere. Manufactured SRV and A records do not exist.
user-noSRV-noA 600 IN NAPTR 50 50 "s" "SIP+D2U" "" _sip._udp.user-noSRV-noA
user-noSRV-noA 600 IN NAPTR 30 50 "s" "SIP+D2T" "" _sip._tcp.user-noSRV-noA
user-noSRV-noA 600 IN NAPTR 50 50 "s" "SIPS+D2T" "" _sips._tcp.user-noSRV-noA


; NAPTR missing, SRV missing, A missing 

;records for load-leveling unit-tests

loadlevel1 IN A 127.0.0.1
loadlevel2 IN A 127.0.0.2
loadlevel3 IN A 127.0.0.3
loadlevel4 IN A 127.0.0.4

_sip._udp.1s 600 IN SRV 0 1 5060 loadlevel1
_sip._tcp.1s 600 IN SRV 0 1 5060 loadlevel1
_sips._tcp.1s 600 IN SRV 0 1 5061 loadlevel1

_sip._udp.2s 600 IN SRV 0 1 5060 loadlevel1
_sip._tcp.2s 600 IN SRV 0 1 5060 loadlevel1
_sips._tcp.2s 600 IN SRV 0 1 5061 loadlevel1
_sip._udp.2s 600 IN SRV 0 1 5060 loadlevel2
_sip._tcp.2s 600 IN SRV 0 1 5060 loadlevel2
_sips._tcp.2s 600 IN SRV 0 1 5061 loadlevel2

_sip._udp.3s 600 IN SRV 0 1 5060 loadlevel1
_sip._tcp.3s 600 IN SRV 0 1 5060 loadlevel1
_sips._tcp.3s 600 IN SRV 0 1 5061 loadlevel1
_sip._udp.3s 600 IN SRV 0 1 5060 loadlevel2
_sip._tcp.3s 600 IN SRV 0 1 5060 loadlevel2
_sips._tcp.3s 600 IN SRV 0 1 5061 loadlevel2
_sip._udp.3s 600 IN SRV 0 1 5060 loadlevel3
_sip._tcp.3s 600 IN SRV 0 1 5060 loadlevel3
_sips._tcp.3s 600 IN SRV 0 1 5061 loadlevel3

_sip._udp.4s 600 IN SRV 0 1 5060 loadlevel1
_sip._tcp.4s 600 IN SRV 0 1 5060 loadlevel1
_sips._tcp.4s 600 IN SRV 0 1 5061 loadlevel1
_sip._udp.4s 600 IN SRV 0 1 5060 loadlevel2
_sip._tcp.4s 600 IN SRV 0 1 5060 loadlevel2
_sips._tcp.4s 600 IN SRV 0 1 5061 loadlevel2
_sip._udp.4s 600 IN SRV 0 1 5060 loadlevel3
_sip._tcp.4s 600 IN SRV 0 1 5060 loadlevel3
_sips._tcp.4s 600 IN SRV 0 1 5061 loadlevel3
_sip._udp.4s 600 IN SRV 0 1 5060 loadlevel4
_sip._tcp.4s 600 IN SRV 0 1 5060 loadlevel4
_sips._tcp.4s 600 IN SRV 0 1 5061 loadlevel4

loadlevel2 600 IN NAPTR 40 50 "s" "SIP+D2U" "" _sip._udp.2s
loadlevel2 600 IN NAPTR 40 50 "s" "SIP+D2T" "" _sip._tcp.2s
loadlevel2 600 IN NAPTR 40 50 "s" "SIPS+D2T" "" _sips._tcp.2s
loadlevel2 600 IN NAPTR 40 60 "s" "SIPS+D2T" "" _sips._tcp.nowhere

loadlevel3 600 IN NAPTR 40 50 "s" "SIP+D2U" "" _sip._udp.3s
loadlevel3 600 IN NAPTR 40 50 "s" "SIP+D2T" "" _sip._tcp.3s
loadlevel3 600 IN NAPTR 40 50 "s" "SIPS+D2T" "" _sips._tcp.3s
loadlevel3 600 IN NAPTR 40 60 "s" "SIPS+D2T" "" _sips._tcp.nowhere

loadlevel4 600 IN NAPTR 40 50 "s" "SIP+D2U" "" _sip._udp.4s
loadlevel4 600 IN NAPTR 40 50 "s" "SIP+D2T" "" _sip._tcp.4s
loadlevel4 600 IN NAPTR 40 50 "s" "SIPS+D2T" "" _sips._tcp.4s
loadlevel4 600 IN NAPTR 40 60 "s" "SIPS+D2T" "" _sips._tcp.nowhere