Is there a way to determine the range of addresses a dynamic IP home user will communicate from when connected to their ISP?

The known factors are:

  • User's public IP address
  • The ISP's Name
  • PTR domain for the IP

What I'm really looking for is:

  • A subnet block to use in a very specific firewall rule

Do a whois against the RIR who assigned the IP addresses. Among the output will be something like:

$ whois -a
. . . . . .
NetRange: -
. . . . . .

Their IP will be somewhere in the ISP's allocated range. If you want to narrow it down more you'll have to speak to the ISP and see if they'll tell you how their dynamic addresses are allocated. They probably won't.

  • In the example above I picked a DNS server at the ISP I used to work for, which gives one of the netblocks they use. The dynamic IP range for our DSL customers is substantially smaller (a few /24s), but we reserve the right to move those ranges around as needed.
    – voretaq7
    Jun 11 '12 at 18:48
  • Yeah, the whois for this address gives me a /10 net block. Perhaps a bit too big for what I'm looking for.
    – Hyppy
    Jun 11 '12 at 18:54
  • @Hyppy Usually there's a subdelegation. You might have to traverse a few whois servers to get a narrow answer. Jun 11 '12 at 20:03
  • @JeffFerland That doesn't tell the whole story though - the ISP had discontiguous ranges, so if you asked our rwhois server about the subdelegation you might miss a bunch of subnets that were in the dynamic address pool.
    – voretaq7
    Jun 11 '12 at 20:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.