Global 'dns_dict' should not be overridden in main().