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/db.example.org
on
the nameserver host.
Example 5.1. ISC Bind zone file entries
; the server where everything will run server1 IN A 198.51.100.19 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 198.51.100.19 turn-server IN AAAA 2001:DB8:1000:2000::19 sip-proxy IN A 198.51.100.19 sip-proxy IN AAAA 2001:DB8:1000:2000::19 xmpp-gw IN A 198.51.100.19 xmpp-gw IN AAAA 2001:DB8:1000:2000::19 ; DNS SRV for STUN / TURN _stun._udp IN SRV 0 1 3478 turn-server.example.org. _turn._udp IN SRV 0 1 3478 turn-server.example.org. ; DNS SRV and NAPTR records for SIP _sips._tcp IN SRV 0 1 5061 sip-proxy.example.org. @ IN NAPTR 10 0 "s" "SIPS+D2T" "" _sips._tcp.example.org. @ IN NAPTR 10 0 "s" RELAY:turn.udp "" _turn._udp.example.org. ; DNS SRV records for XMPP Server and Client modes: _xmpp-client._tcp IN SRV 5 0 5222 xmpp-gw.example.org. _xmpp-server._tcp IN SRV 5 0 5269 xmpp-gw.example.org.