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

API call to delete network with all addresses including DNS.

New Member
Posts: 3
342     0

I require an API call to delete a network, like a /30, and delete the IP addresses within it whether they are DHCP or DNS. I know that deleting the network automatically deletes usage of DHCP but not aware if this can be done for DNS?

curl -k -u usernameSmiley Tongueassword -H 'content-type: application/json' -X DELETE "https://infoblox/wapi/v2.12/network/record:a"

Using a command like the above does not delete the DNS, can this be done?

Re: API call to delete network with all addresses including DNS.

Moderator
Moderator
Posts: 306
343     0

DNS records are parented by a zone, not by a network.  If you want to delete all the records within a network, you will need to traverse the network to get them all first.

 

For example, this search will give you a reference to each DNS name associcated with a record in the network.  But note, associated CNAMEs, SRVs, TXTs,  or other types of records without an IP address associated, will not not be in this list and therefore would not get deleted.

curl -k1 -u admin:infoblox -X GET 'https://192.168.1.2/wapi/v2.12/ipv4address?network=192.168.1.0/24&usage=DNS'
Showing results for 
Search instead for 
Did you mean: 

Recommended for You