Infoblox’s global team of threat hunters uncovers a DNS operation with the ability to bypass traditional security measures and control the Great Firewall of China. Read about “Muddling Meerkat” and the many other threat actors discovered by Infoblox Threat Intel here.

API & Integration, DevOps,NetOps,SecOps

Reply

How to check if a list of IP has a host entry

[ Edited ]
New Member
Posts: 1
2060     0

Hi, I have a list of 2500 IPs (approx.) and I need to check how many of them have a host entry in Infoblox. Is there any script or any easy way to accomplish that ??

Re: How to check if a list of IP has a host entry

Moderator
Moderator
Posts: 289
2060     0

This won't be a simple script but shouldn't be too complex.

 

Each address would need to be checked individually.  I can see two different strategies, depending on the size of the database.

 

1)  Have the script check each IP address individually, and return records associated with the IP.  This means 2500 API calls.  This could be optimized by combining multiple calls into one, using multibody requests, maybe 10 at a time.  That would cut down the number of calls by a factor of 10.

 

2) Download all records and compare within the script.  If this is a large database, it may take more time and resources, compared to checking each address individually.

 

 

Showing results for 
Search instead for 
Did you mean: 

Recommended for You