From b1006fae0117ac7c0062e92b5842bf9eb9179c6d Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 7 Apr 2017 11:31:45 +0200 Subject: [PATCH 1/1] dyn-ns-client: add option to remove potentially existing A/AAAA records --- client-scripts/dyn-ns-client | 2 ++ dyn-ns-client.conf.dist | 2 ++ 2 files changed, 4 insertions(+) diff --git a/client-scripts/dyn-ns-client b/client-scripts/dyn-ns-client index 0e96bed..f482c19 100755 --- a/client-scripts/dyn-ns-client +++ b/client-scripts/dyn-ns-client @@ -61,6 +61,8 @@ def getMyIP(family, config, methods = {}, verbose = 0): method = config[family]['method'] if method == 'none': return None + elif method == 'remove': + return "" elif method == 'web': server = config[family].get('server', config['DEFAULT']['server']) url = 'https://'+server+'/checkip' diff --git a/dyn-ns-client.conf.dist b/dyn-ns-client.conf.dist index 5b35ae3..a833f43 100644 --- a/dyn-ns-client.conf.dist +++ b/dyn-ns-client.conf.dist @@ -8,6 +8,7 @@ password = some_secure_password [IPv4] # Possible IPv4 detection methods are # none: Don't set IPv4 address (leaves the domain's A record untouched). +# remove: Remove domain's A record if it exists. # web: Call a website to detect the current, external IPv4 address. method = web @@ -19,6 +20,7 @@ server = ipv4.ns.example.com [IPv6] # Possible IPv6 detection methods are # none: Don't set IPv6 address (leaves the domain's AAAA record untouched). +# remove: Remove domain's AAAA record if it exists. # web: Call a website to detect the current, external IPv6 address. # local: Try to detect the global IPv6 address based on the configuration of the local network interfaces. method = none -- 2.30.2