- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Get NSLookup data for an IP from infoblox
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2022 04:34 AM - edited 10-19-2022 03:40 AM
Hi All, When we search for an IP address from top right search in Infoblox GUI, click on the subnet of that IP address, and then search for the IP address under List, the we get the list of associated records under that IP with name field, same result which we get performing a NSlookup for the IP.
Please let me know how to fetch this data via API.
Re: Get NSLookup data for an IP from infoblox
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2022 03:20 AM - edited 10-12-2022 03:22 AM
Hi Snehasish,
I cannot see the image you have uploaded but i think you need the related objects for an IP address via API. You can use the ipv4address/ipv6address objects for that.
Sample curl:
curl -k -u admin:infoblox -X GET "https://grid-master/wapi/v2.12/ipv4address?ip_address=10.10.10.10"
Response for the API query contains an objects attribute which should give you the list you are looking for.
Sample output:
[ { "_ref": "ipv4address/Li5pcHY0X2FkZHJlc3MkMTAuMTAuMTAuMTAvMA:10.10.10.10", "ip_address": "10.10.10.10", "is_conflict": false, "mac_address": "", "names": [ "host01.test.com" ], "network": "10.10.10.0/24", "network_view": "default", "objects": [ "record:a/ZG5zLmJpbmRfYSQuX2RlZmF1bHQuY29tLnRlc3QsaG9zdDAxLDEwLjEwLjEwLjEw:host01.test.com/default", "record:ptr/ZG5zLmJpbmRfcHRyJC5fZGVmYXVsdC5hcnBhLmluLWFkZHIuMTAuMTAuMTAuMTAuaG9zdDAxLnRlc3QuY29t:10.10.10.10.in-addr.arpa/default" ], "status": "USED", "types": [ "A", "PTR" ], "usage": [ "DNS" ] } ]