From 6642ae9703e4ccb1fdfefa81a6da5b5fa52b53ad Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 19 Sep 2010 13:02:05 -0700 Subject: s4-dns: added --all-names option to samba_dnsupdate this forces the re-registration of all names --- source4/scripting/bin/samba_dnsupdate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4') 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: -- cgit