git.samba.org
/
metze
/
samba
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
samba-tool dns: Don't use "localhost" to connect to local host
[metze/samba/wip.git]
/
source4
/
scripting
/
python
/
samba
/
netcmd
/
dns.py
diff --git
a/source4/scripting/python/samba/netcmd/dns.py
b/source4/scripting/python/samba/netcmd/dns.py
index 8bd3249ae231a175949f7ba5cf777bfe33f1ff33..c00d17ad7273c1919ab99378277d1377a01b6dbc 100644
(file)
--- a/
source4/scripting/python/samba/netcmd/dns.py
+++ b/
source4/scripting/python/samba/netcmd/dns.py
@@
-31,6
+31,8
@@
from samba.dcerpc import dnsp, dnsserver
def dns_connect(server, lp, creds):
+ if server.lower() == 'localhost':
+ server = '127.0.0.1'
binding_str = "ncacn_ip_tcp:%s[sign]" % server
dns_conn = dnsserver.dnsserver(binding_str, lp, creds)
return dns_conn