From 5d6fd8099fb85084086bfb6ae9ae4ac149432df7 Mon Sep 17 00:00:00 2001 From: neilpang Date: Tue, 25 Oct 2016 23:08:02 +0800 Subject: [PATCH] add dns_xxx_rm function https://github.com/Neilpang/acme.sh/issues/79 --- dnsapi/dns_cf.sh | 4 ++++ dnsapi/dns_cx.sh | 9 +++++++++ dnsapi/dns_dp.sh | 9 +++++++++ dnsapi/dns_gd.sh | 7 +++++++ dnsapi/dns_lexicon.sh | 9 +++++++++ dnsapi/dns_myapi.sh | 5 +++++ dnsapi/dns_ovh.sh | 7 +++++++ dnsapi/dns_pdns.sh | 8 ++++++++ 8 files changed, 58 insertions(+) diff --git a/dnsapi/dns_cf.sh b/dnsapi/dns_cf.sh index 19d95c1a..b2dc7eb8 100755 --- a/dnsapi/dns_cf.sh +++ b/dnsapi/dns_cf.sh @@ -78,7 +78,11 @@ dns_cf_add(){ } +#fulldomain +dns_cf_rm() { + fulldomain=$1 +} #################### Private functions bellow ################################## diff --git a/dnsapi/dns_cx.sh b/dnsapi/dns_cx.sh index 1a2e04e7..ae162d62 100755 --- a/dnsapi/dns_cx.sh +++ b/dnsapi/dns_cx.sh @@ -56,6 +56,15 @@ dns_cx_add() { return 1 } + + +#fulldomain +dns_cx_rm() { + fulldomain=$1 + +} + + #usage: root sub #return if the sub record already exists. #echos the existing records count. diff --git a/dnsapi/dns_dp.sh b/dnsapi/dns_dp.sh index 49e8c77f..898806bd 100755 --- a/dnsapi/dns_dp.sh +++ b/dnsapi/dns_dp.sh @@ -51,6 +51,15 @@ dns_dp_add() { fi } + +#fulldomain +dns_dp_rm() { + fulldomain=$1 + +} + + + #usage: root sub #return if the sub record already exists. #echos the existing records count. diff --git a/dnsapi/dns_gd.sh b/dnsapi/dns_gd.sh index c25de32d..0f399b41 100755 --- a/dnsapi/dns_gd.sh +++ b/dnsapi/dns_gd.sh @@ -55,6 +55,13 @@ dns_gd_add(){ +#fulldomain +dns_gd_rm() { + fulldomain=$1 + +} + + #################### Private functions bellow ################################## diff --git a/dnsapi/dns_lexicon.sh b/dnsapi/dns_lexicon.sh index 5e78a2d9..34f7637c 100755 --- a/dnsapi/dns_lexicon.sh +++ b/dnsapi/dns_lexicon.sh @@ -66,4 +66,13 @@ dns_lexicon_add() { } +#fulldomain +dns_lexicon_rm() { + fulldomain=$1 + +} + + + + diff --git a/dnsapi/dns_myapi.sh b/dnsapi/dns_myapi.sh index a29b9ff1..73b1ea85 100755 --- a/dnsapi/dns_myapi.sh +++ b/dnsapi/dns_myapi.sh @@ -20,6 +20,11 @@ dns_myapi_add() { +#fulldomain +dns_myapi_rm() { + fulldomain=$1 + +} #################### Private functions bellow ################################## diff --git a/dnsapi/dns_ovh.sh b/dnsapi/dns_ovh.sh index 443aec6f..b31d02fc 100755 --- a/dnsapi/dns_ovh.sh +++ b/dnsapi/dns_ovh.sh @@ -183,6 +183,13 @@ dns_ovh_add(){ } +#fulldomain +dns_ovh_rm() { + fulldomain=$1 + +} + + #################### Private functions bellow ################################## _ovh_authentication() { diff --git a/dnsapi/dns_pdns.sh b/dnsapi/dns_pdns.sh index 30c6d658..aa7a2c45 100755 --- a/dnsapi/dns_pdns.sh +++ b/dnsapi/dns_pdns.sh @@ -61,6 +61,14 @@ dns_pdns_add() { return 0 } + +#fulldomain +dns_pdns_rm() { + fulldomain=$1 + +} + + set_record() { _info "Adding record" root=$1