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
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()