s4-ipv6: don't add link local addresses to DNS
authorAndrew Tridgell <tridge@samba.org>
Fri, 3 Jun 2011 01:43:09 +0000 (11:43 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 6 Jun 2011 02:26:10 +0000 (12:26 +1000)
these make no sense as DNS addresses

source4/scripting/bin/samba_dnsupdate

index cefe3ce859b636d4a1e2f1aa58c597ac82cea8c7..c82e06bb6f539950f213de0d48369f03191b5cf0 100755 (executable)
@@ -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)