Skip to content

[Bug] Single DMARC query can take as long as 8 minutes #524

Open
@d33tah

Description

@d33tah

Describe the bug

echo _dmarc.ycskd.net | zdns txt took way longer than one could infer from the help screen

To Reproduce

  • The version of ZDNS: (main HEAD, release v.X.X.X, etc)

  • CLI command ZDNS was run with

echo _dmarc.ycskd.net | time zdns txt \
            --iteration-timeout 6 \
            --iterative \
            --tcp-only \
            --verbosity=5 \
            --conf-file /tmp/zdns.conf 2>&1 | tee /dev/stderr | gzip > /tmp/zdns-debug.log.gz

zdns-debug.log.gz

zdns.conf contained:

nameserver 1.1.1.1

Expected behavior

The command finishes within... 20 seconds? I don't know what's the sensible default timeout, given those options:

> zdns --help 2>&1 | rg timeout
      --iteration-timeout=     timeout for a single iterative step in an iterative query, in seconds. Only applicable with --iterative (default: 8)
      --network-timeout=       timeout for round trip network operations, in seconds (default: 2)
      --retries=               how many times should zdns retry query against a new nameserver if timeout or temporary failure (default: 3)
      --timeout=               timeout for resolving a individual name, in seconds (default: 20)

Additional context

I attach the log.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions