summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-06-03 11:43:09 +1000
committerAndrew Tridgell <tridge@samba.org>2011-06-06 12:26:10 +1000
commitc4e43f9dff108f762eb1f7271ddb896b9b22e478 (patch)
tree53fe18e15726a02f576de99b3318c4c8724df6fb /source4
parentb34013d5377926303d1ea60259f6853c8684cf8b (diff)
downloadsamba-c4e43f9dff108f762eb1f7271ddb896b9b22e478.tar.gz
samba-c4e43f9dff108f762eb1f7271ddb896b9b22e478.tar.bz2
samba-c4e43f9dff108f762eb1f7271ddb896b9b22e478.zip
s4-ipv6: don't add link local addresses to DNS
these make no sense as DNS addresses
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/scripting/bin/samba_dnsupdate4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate
index cefe3ce859..c82e06bb6f 100755
--- a/source4/scripting/bin/samba_dnsupdate
+++ b/source4/scripting/bin/samba_dnsupdate
@@ -93,7 +93,9 @@ IP6s = []
IP4s = []
for i in IPs:
if i.find(':') != -1:
- IP6s.append(i)
+ if i.find('%') == -1:
+ # we don't want link local addresses for DNS updates
+ IP6s.append(i)
else:
IP4s.append(i)