summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-19 13:02:05 -0700
committerAndrew Tridgell <tridge@samba.org>2010-09-19 13:36:02 -0700
commit6642ae9703e4ccb1fdfefa81a6da5b5fa52b53ad (patch)
treee4397582ce8c130648827e3ee5b7bdb055f38a23 /source4
parent94694ecf4e3c8df4d3818d24916125f9e85ec6a9 (diff)
downloadsamba-6642ae9703e4ccb1fdfefa81a6da5b5fa52b53ad.tar.gz
samba-6642ae9703e4ccb1fdfefa81a6da5b5fa52b53ad.tar.bz2
samba-6642ae9703e4ccb1fdfefa81a6da5b5fa52b53ad.zip
s4-dns: added --all-names option to samba_dnsupdate
this forces the re-registration of all names
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/scripting/bin/samba_dnsupdate3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate
index 4dafe79375..6729328d96 100755
--- a/source4/scripting/bin/samba_dnsupdate
+++ b/source4/scripting/bin/samba_dnsupdate
@@ -49,6 +49,7 @@ sambaopts = options.SambaOptions(parser)
parser.add_option_group(sambaopts)
parser.add_option_group(options.VersionOptions(parser))
parser.add_option("--verbose", action="store_true")
+parser.add_option("--all-names", action="store_true")
parser.add_option("--all-interfaces", action="store_true")
parser.add_option("--use-file", type="string", help="Use a file, rather than real DNS calls")
@@ -337,7 +338,7 @@ for d in dns_list:
# now check if the entries already exist on the DNS server
for d in dns_list:
- if not check_dns_name(d):
+ if opts.all_names or not check_dns_name(d):
update_list.append(d)
if len(update_list) == 0: