Skip to content

Help: Using DNS/ASN resolver script to find working IP/SNI pairs #923

@Montazeran8

Description

@Montazeran8

Hi @Shjpr9 ,

In issue #779, you mentioned a small script that resolves a given domain using a list of DNS servers and then looks up its IP info (ASN, country) via an internal website. You also showed a successful example for deno.com:

Enter the domain: deno.com
Resolver: 217.218.155.155 | 65.97ms
Answer(s):
69.67.170.170
ASN Name:  AMAZON-02

I am in a situation where I need to set up fronting_groups for several domains (like val.town, deno.com, fly.io, huggingface.co), but I face two major problems:

  • DNS is heavily poisoned/misbehaving on my ISP, so I can't reliably resolve IPs.
  • My ISP blocks direct connections to most CDN IPs, so I need to test many IPs to find a workable one.

Your script would be a huge help because it can:

  1. Bypass my ISP's DNS issues by using alternative resolvers.
  2. Tell me the ASN of each IP, so I can pick a benign SNI (like aws.amazon.com for an IP in AMAZON-02).

Could you please share the script (or the method behind it)? Even a minimal version that just prints a few IPs with ASN for a given domain would be enough. If you can't share the script itself, maybe you could give some guidance on how to replicate it (e.g., which DNS servers to use, which IP lookup API it calls). I'd be very grateful for any help.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions