Use own MNAME because no primary/secondary logic exists (https://datatracker.ietf.org/doc/html/rfc1035#section-3.3.13). So each service should use own MNAME.
This commit is contained in:
3
Makefile
3
Makefile
@@ -26,6 +26,9 @@ PGPASSWORD ?=
|
|||||||
#- ACME zone suffix
|
#- ACME zone suffix
|
||||||
ACME_DOMAIN ?=
|
ACME_DOMAIN ?=
|
||||||
|
|
||||||
|
#- This NS for use in SOA
|
||||||
|
NSERVER ?=
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
all: help
|
all: help
|
||||||
|
|||||||
@@ -2,17 +2,19 @@
|
|||||||
Complete PowerDNS zone records
|
Complete PowerDNS zone records
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
SET vars.ns TO :'NSERVER';
|
||||||
|
|
||||||
DO $_$
|
DO $_$
|
||||||
DECLARE
|
DECLARE
|
||||||
v_domain text := 'dev.lan'; -- domain name
|
v_domain text := 'dev.lan'; -- domain name
|
||||||
v_ip text := '127.0.0.1'; -- base ip
|
v_ip text := '127.0.0.1'; -- base ip
|
||||||
v_ip1 text := '127.0.1.1'; -- some another ip
|
v_ip1 text := '127.0.1.1'; -- some another ip
|
||||||
v_ns text := 'ns.dev.lan'; -- master DNS host
|
v_ns text := current_setting('vars.ns'); -- master DNS host
|
||||||
v_ns_admin text := 'admin.ns.dev.lan'; -- master DNS admin email
|
v_ns_admin text := 'admin.ns.dev.lan'; -- master DNS admin email
|
||||||
v_domain_id integer; -- internal domain id
|
v_domain_id integer; -- internal domain id
|
||||||
v_stamp text; -- zone SOA timestamp
|
v_stamp text; -- zone SOA timestamp
|
||||||
v_stamp_old text; -- previous zone SOA timestamp
|
v_stamp_old text; -- previous zone SOA timestamp
|
||||||
v_soa text; -- zone SOA
|
v_soa text; -- zone SOA
|
||||||
|
|
||||||
v_refresh int := 10800;
|
v_refresh int := 10800;
|
||||||
v_retry int := 3600;
|
v_retry int := 3600;
|
||||||
|
|||||||
Reference in New Issue
Block a user