Dominic Raferd <domi...@timedicer.co.uk> wrote on 23.01.2018 at 9:06:
> 
> ​Is there a method (regex?) for reliably identifying dynamic ip addresses?​ 
> Take for instance 199-127-103-235.static.avestadns.com - it looks dynamic to 
> me but it says it is static. Is it best/safest to rely on '\.dynamic\.' 
> occurring in the name?

You example is probably a static IP a customer has leased from their ISP’s 
pool. Some ISPs won’t set up a custom PTR record for such.

No, there is no definite way of identifying dynamic IPs. You may use some regex 
but it will produce both false negatives and positives. Something along:
/\d+\.(dyn(amic)?|ppoe|pools?|dialup|dsl|rev)(\.[-_A-Za-z0-9]{2,}){2,}$/
You'll have to consider whether it is more worth than it is trouble.

br, Petri

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to