git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b34013d
)
s4-ipv6: don't add link local addresses to DNS
author
Andrew Tridgell
<tridge@samba.org>
Fri, 3 Jun 2011 01:43:09 +0000
(11:43 +1000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source4/scripting/bin/samba_dnsupdate
b/source4/scripting/bin/samba_dnsupdate
index cefe3ce859b636d4a1e2f1aa58c597ac82cea8c7..c82e06bb6f539950f213de0d48369f03191b5cf0 100755
(executable)
--- 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)