Sample DNS zone file

See Example 5.1, “ISC Bind zone file entries” for an example of how to write the entries for the zone file. For the purposes of the example, this file would be /etc/bind/ on the nameserver host.

Example 5.1. ISC Bind zone file entries

; the server where everything will run
server1            IN     A
server1            IN     AAAA   2001:DB8:1000:2000::19

; Use different names for each service.
; Don't use CNAMEs, the SRV records (further down)
; can't point to CNAME records.
turn-server        IN     A
turn-server        IN     AAAA   2001:DB8:1000:2000::19
sip-proxy          IN     A
sip-proxy          IN     AAAA   2001:DB8:1000:2000::19
xmpp-gw            IN     A
xmpp-gw            IN     AAAA   2001:DB8:1000:2000::19

_stun._udp  IN SRV    0 1 3478
_turn._udp  IN SRV    0 1 3478

; DNS SRV and NAPTR records for SIP
_sips._tcp  IN SRV    0 1 5061
@           IN NAPTR  10 0 "s" "SIPS+D2T" ""
@           IN NAPTR  10 0 "s" RELAY:turn.udp ""

; DNS SRV records for XMPP Server and Client modes:
_xmpp-client._tcp  IN     SRV    5 0 5222
_xmpp-server._tcp  IN     SRV    5 0 5269