Reply

Get NSLookup data for an IP from infoblox

[ Edited ]
Authority
Posts: 21
2605     0

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 ]
Superuser
Posts: 38
2606     0

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"
        ]
    }
]
Shukran
Showing results for 
Search instead for 
Did you mean: 

Recommended for You

Businesses are investing heavily into securing company resources from cyber-attacks form cybercrimin