Skip to content

DNS check on startup takes forever to time out #793

@rmccue

Description

@rmccue

When using a DNS server that poisons loopback (127.0.0.1) resolution (i.e. to block DNS rebinding attacks), the DNS resolution check takes a long time before erroring out. We should lower this threshold - DNS should resolve nearly instantly.

Steps to reproduce:

  1. Use a DNS server which blocks loopback resolution
    1. If you don't have one already, go to NextDNS and hit "try it now"
    2. Go to Security > DNS Rebinding Protection and enable it
    3. Go back to Setup and hit "Link IP" on the right hand side
    4. Use the DNS server IPs provided
    5. Verify failing lookup by using dig test.altis.dev - you should see OPT=15: 00 11 42 6c 6f 63 6b 65 64 20 62 79 20 4e 65 78 74 44 4e 53 ("..Blocked by NextDNS")
  2. composer server start
  3. Observe wait time for DNS resolution after startup

Acceptance criteria:

  • ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugExisting functionality isn't behaving as expecteddeveloper advocacyDeveloper Advocacy related tasks

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions