to the current host/domain.
TXT(text)
- Generate a TXT record for the current host or domain.
+ Specify a TXT record for the current host or domain.
RP(mail, txt)
- Generate a RP (responsible person) record for the current host or domain.
+ Specify a RP (responsible person) record for the current host or domain.
The first argument is a mail address in DNS notation (with `@' replaced
by `.' as in the SOA record), the second one is a name of a TXT record
with contact information.
+SRV(service, protocol, priority, weight, port, target)
+ Specify a SRV (service) record for the current host or domain.
+
CNAME(src, dest)
Generate a CNAME record -- "src" points to "dest".
NS(ns1.example.com, ns2.example.com)
MX(0 mail.example.com, 10 smtp.example.net)
+; The domain also has its own service record for Jabber, handled by the `mail' machine
+
+SRV(jabber, tcp, 0, 1, 5269, mail)
+SRV(xmpp-server, tcp, 0, 1, 5269, mail)
+SRV(xmpp-client, tcp, 0, 1, 5222, mail)
+
+; Responsible person record (e-mail and reference to textual contact information)
+
+RP(admin.example.com, text)
+
; A couple of hosts
H(ns1, 10.0.0.1)
ALIAS(fairytales, scifi, horror)
MX(0 mail.example.com)
-; Hosts with TXT and RP records
+; TXT record
-H(c)
+H(text)
TXT(Once upon a midnight dreary)
TXT(When I pondered weak and weary)
-H(d)
-RP(admin.example.com, c)
-
; A subdomain called a.example.com
D(a)
define(RP, `nsc_emit_name `RP' nsc_corr_dot($1) nsc_corr_dot($2)')
+# SRV records
+
+define(SRV, `_`'$1`'._`'$2`'.CURRENT_NAME `SRV' $3 $4 $5 nsc_corr_dot($6)`'nsc_set_name(CURRENT_NAME)')
+
# CNAME records
define(CNAME, `$1 `CNAME' nsc_corr_dot($2)')