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 Examples

Reply

To get all records in a zone with some search criteria of record names irrespective of record types

New Member
Posts: 1
2819     0

Hello,

 

We have a requirement to get all records in a zone irespective of record type with some search criteria on names using regular expression.

 

We tried to explore from API document and found two API’s as below .

 

<WAPI_URL>/allrecords?zone=info.com – Retrieve all records in a zone

 

<wapi_url>/record:host?name~=info.com&_return_fields=name – It will return only host records with search of name, but no zone parameter  here and it stick to only host record type

 

Is there any way on API front to combine both queries in a single API to get all records by passing input as zone info and search criteria without sticking to only one record type.

Re: To get all records in a zone with some search criteria of record names irrespective of record ty

Adviser
Posts: 181
2819     0

Hi,

 

The name field is also searchable under the allrecords API endpoint:

<WAPI_URL>/allrecords?zone=info.com&name~=test

This will return records of all tyopes with the word test in them.

 

The name fields is available for search via

  • ‘:=’ (case insensitive search)
  • ‘=’ (exact equality)
  • ‘~=’ (regular expression)

Regards,

Krishna Vasudevan

Showing results for 
Search instead for 
Did you mean: 

Recommended for You