From b7dbe74d759b6de753c6cc00c1daf35bcffb52a7 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 2 Aug 2021 12:46:27 +0200 Subject: [PATCH] Added example dnscontrol.js --- dnscontrol.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 dnscontrol.js diff --git a/dnscontrol.js b/dnscontrol.js new file mode 100644 index 0000000..f5d819f --- /dev/null +++ b/dnscontrol.js @@ -0,0 +1,23 @@ +// Providers +var REG_NONE = NewRegistrar('none', 'NONE'); // No registrar. + +var cloudflare = NewDnsProvider('cloudflare', 'CLOUDFLAREAPI'); + + +// Default settings +DEFAULTS( + NAMESERVER_TTL('1d'), + DefaultTTL('1d'), + AUTOSPLIT, // Split long TXT + CF_PROXY_DEFAULT_OFF // Dont use Cloudflare-Proxy-Feature +); + + +// Zone-declaration +D('example.com', REG_NONE, DnsProvider(cloudflare)); + + + +// Include +// (Do not touch unless you know what you are doing!) +require_glob(""); // TODO: determine correct location to include