From e71dc5ff75ffd595bf84ec59a69a8e19c2e4df72 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 21 May 2008 19:31:46 +0200 Subject: [PATCH] Added TXT and RP records. --- README | 9 +++++++++ cf.dist/example.com | 9 +++++++++ m4/nsc.m4 | 8 ++++++++ 3 files changed, 26 insertions(+) diff --git a/README b/README index 47393e2..aaaac15 100644 --- 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". diff --git a/cf.dist/example.com b/cf.dist/example.com index 6176783..d0f01a8 100644 --- a/cf.dist/example.com +++ b/cf.dist/example.com @@ -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) diff --git a/m4/nsc.m4 b/m4/nsc.m4 index 30b2f1e..aa2d4d9 100644 --- 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)') -- 2.39.2