1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

dns_hub: Add some debug as to what DNS proxying is happening

This should make it clear at run-time how dns_hub is actually proxying
DNS requests, which will hopefully aid in debugging problems (i.e.
forgetting to add a mapping when adding a new DNS realm).

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Mar  6 00:48:43 UTC 2019 on sn-devel-144
This commit is contained in:
Tim Beale 2019-02-20 16:51:14 +13:00 committed by Andrew Bartlett
parent 2cd65a7a4e
commit 1d5583c913

View File

@ -174,6 +174,10 @@ def main():
realm_mapping = dict(kv.split('=') for kv in sys.argv[3].split(','))
server.realm_to_ip_mappings = realm_mapping
print("dns_hub will proxy DNS requests for the following realms:")
for realm, ip in server.realm_to_ip_mappings.items():
print(" {0} ==> {1}".format(realm, ip))
t = server_thread(server)
t.start()
p = select.poll()