Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dnsviz/dnsviz.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasey Deccio <casey@deccio.net>2019-03-13 00:15:33 +0300
committerCasey Deccio <casey@deccio.net>2019-03-13 00:15:33 +0300
commiteb0a524c8b3f46f7609189a04c8a908c51ff6e9a (patch)
treec9a594de3f579ab0daa95019c31fef3d198793e0
parentaf31ed1c9ffe6267122835f810966f7e5934cf80 (diff)
Put brackets around addresses
-rw-r--r--dnsviz/commands/probe.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dnsviz/commands/probe.py b/dnsviz/commands/probe.py
index 9e73eb5..e86cabc 100644
--- a/dnsviz/commands/probe.py
+++ b/dnsviz/commands/probe.py
@@ -370,7 +370,7 @@ def name_addr_mappings_from_string(domain, addr_mappings, delegation_mapping, re
else:
for a_rrset in a_rrsets:
for a_rdata in a_rrset:
- mappings_from_file.append('%s=%s' % (lb2s(rdata.target.canonicalize().to_text()), IPAddr(a_rdata.address)))
+ mappings_from_file.append('%s=[%s]' % (lb2s(rdata.target.canonicalize().to_text()), IPAddr(a_rdata.address)))
name_addr_mappings_from_string(domain, ','.join(mappings_from_file), delegation_mapping, require_name)
continue
@@ -1176,14 +1176,14 @@ def main(argv):
query_class_mixin = CustomQueryMixin
if '-e' in opts:
CustomQueryMixin.edns_options.append(_get_ecs_option(opts['-e']))
- if '-n' in opts:
- CustomQueryMixin.edns_options.append(_get_nsid_option())
if '-c' in opts:
if opts['-c']:
CustomQueryMixin.edns_options.append(_get_dns_cookie_option(opts['-c']))
else:
# No cookie option was specified, so generate one
CustomQueryMixin.edns_options.append(_get_dns_cookie_option())
+ if '-n' not in opts:
+ CustomQueryMixin.edns_options.append(_get_nsid_option())
name_objs = []
if '-r' in opts: