]> mj.ucw.cz Git - nsc-5.git/commitdiff
Added TXT and RP records.
authorMartin Mares <mj@ucw.cz>
Wed, 21 May 2008 17:31:46 +0000 (19:31 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 21 May 2008 17:31:46 +0000 (19:31 +0200)
README
cf.dist/example.com
m4/nsc.m4

diff --git a/README b/README
index 47393e279d1e83ee5e323d67799c3cb5a9be52f8..aaaac15e0cf7feaf753c8e298090fe91dd72e63f 100644 (file)
--- a/README
+++ b/README
@@ -230,6 +230,15 @@ ALIAS(alias...)
                Generates a series of CNAME records pointing from the aliases
                to the current host/domain.
 
+TXT(text)
+               Generate a TXT record for the current host or domain.
+
+RP(mail, txt)
+               Generate 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.
+
 CNAME(src, dest)
                Generate a CNAME record -- "src" points to "dest".
 
index 61767834c794af57c0252a65de4e9ad607e1a662..d0f01a84663cda47f924b1c98a40bdc1271a2e86 100644 (file)
@@ -23,6 +23,15 @@ H(www, 10.0.0.3)
 ALIAS(fairytales, scifi, horror)
 MX(0 mail.example.com)
 
+; Hosts with TXT and RP records
+
+H(c)
+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)
index 30b2f1e0cea2e01b7f8e3da70bcf61650fe10c3f..aa2d4d98381f926cda871891cd9e64e9b27bc265 100644 (file)
--- a/m4/nsc.m4
+++ b/m4/nsc.m4
@@ -119,6 +119,14 @@ define(nsc_ALIAS, `$1      `CNAME' CURRENT_NAME
 ')
 define(ALIAS, `nsc_iterate(`nsc_ALIAS', $@)nsc_set_name(CURRENT_NAME)dnl')
 
+# TXT records
+
+define(TXT, `nsc_emit_name     `TXT'   "$1"')
+
+# RP (responsible person) records
+
+define(RP, `nsc_emit_name      `RP'    nsc_corr_dot($1) nsc_corr_dot($2)')
+
 # CNAME records
 
 define(CNAME, `$1      `CNAME' nsc_corr_dot($2)')