I'm building a WWW management piece of software and part of it encompasses checking DNS of websites... When i perform DNS queries I get the IP address of the website and I want to check that against the list of IPs my company owns for an upcoming mass migration we have coming along and to verify that clients are still hosting with us (for those clients which we arent DNS authoritative on)
id like to have these stored in an array, however, to manually fill 300+ ip's into an array would be brutal...
is there a way i can do something with range() or array_fill()
the ranges I need are:
x.x.x.64 -> x.x.x.127
and
y.y.y.128 -> y.y.y.255
perhaps build the arrays using range to fill the last numbers then prepend the rest of the IP to every array value??? this doesnt seem very efficient however
TY