diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-11-17 12:54:13 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-11-17 23:55:38 +1100 |
commit | 292003343ebf37954eb0862d17f431cc16d8ec54 (patch) | |
tree | 0b181be66f63f8618127c2745f3cf315e35e7714 /source4/scripting | |
parent | 60449d561dd4fdbe5ea9368ea59ef4e8bfa7b420 (diff) | |
download | samba-292003343ebf37954eb0862d17f431cc16d8ec54.tar.gz samba-292003343ebf37954eb0862d17f431cc16d8ec54.tar.bz2 samba-292003343ebf37954eb0862d17f431cc16d8ec54.zip |
s4-provision: add log messages about IP lookup
the IPv6 lookup can be very slow if a DNS server in the search list is
unavailable. It's good to let the user know what its doing.
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/provision.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py index 420dd14468..659e8aba67 100644 --- a/source4/scripting/python/samba/provision.py +++ b/source4/scripting/python/samba/provision.py @@ -1477,6 +1477,7 @@ def provision(setup_dir, logger, session_info, paths.bind_gid = bind_gid if hostip is None: + logger.info("Looking up IPv4 addresses") hostips = samba.interface_ips(lp, False) if len(hostips) == 0: logger.warning("No external IPv4 address has been found. Using loopback.") @@ -1488,6 +1489,7 @@ def provision(setup_dir, logger, session_info, if hostip6 is None: try: + logger.info("Looking up IPv6 address for %s" % names.hostname) for ip in socket.getaddrinfo(names.hostname, None, socket.AF_INET6, socket.AI_CANONNAME, socket.IPPROTO_IP): if hostip6 is None: hostip6 = ip[-1][0] |