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

Add just the DNS Host record through API

New Member
Posts: 2
3490     0

Hi,

 

I am trying to add a new DNS Host record directly through the API. I am not bothered from the IPAM side of it, but only concerned with the record created in DNS. The reason I need to do this is that I am getting the AWS Public IPs for a given host and adding it into my Infoblox DNS Record DB.

 

I have tried using the API URL https://myddi.testdomain.com/wapi/v2.10/record:host with the body as below:

{
  "ipv4addrs": [
    {
      "ipv4addr": "10.10.10.10"
    }
  ],
  "name": "myhost.testdomain.com",
  "view": "testview"
}

 

However I am getting the below error:

 

{
    "Error": "AdmConProtoError: Result set too large (> 1000)",
    "code": "Client.Ibap.Proto",
    "text": "Result set too large (> 1000)"
}

 

 

Is this allowed by Infoblox API? 

 

Thanks,
Greg

 

Re: Add just the DNS Host record through API

Moderator
Moderator
Posts: 289
3490     0

It's trying to give you a large number of results, over 1000 which is the default limit.  I suspect the body is not being applied to the request properly.

 

You can also specify the parameters in the URL, instead of in the body.  It would look something like this:

 

https://192.168.1.2/wapi/v2.9/record:host?name=myhome.testdomain.com&view=testview
Showing results for 
Search instead for 
Did you mean: 

Recommended for You