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


Search for DNS name that contains...

[ Edited ]
Posts: 14
1433     0



When in GUI I can search the database and use the filter "DNS name" And the operator "contains" and I can use just a short hostname (no FQDN !) to find all objects matching that contains that short hostname.
Now I want to do the same using a WAPI call, but somehow the WAPI tells me that zone is a mandatory search parameter.

"Error""AdmConProtoError: zone is a mandatory search parameter for allrecords searches",

"code": "Client.Ibap.Proto",
"text": "zone is a mandatory search parameter for allrecords searches"
Is there a way to overcome this so I can do a global search using short hostnames and return all the objects that has this value in their names ?
I have a bulk list of short hostnames that I need to lookup what type of record it is, as these are all mixed up like A, host and even cname records.
I don't want to do this one by one because by the year that I reach my retirement I am not even halfway the list. It is that huge !

Re: Search for DNS name that contains...

Posts: 17
1434     0

I know it's been a while since you posted your question; but I just recently had to do something similar and ended up using the /search object. You can provide the fqdn=xxx field but unlike it's name, it doesn't appear it has to be fully qualified. It's possible to just provide hostname and it will return matches. Not sure this will be of any help to you (might be too late) but wanted to share back. Cheers!

Re: Search for DNS name that contains...

New Member
Posts: 2
1434     0
Hi Stefan, could you please share your code here? Thanks, Reza.

Re: Search for DNS name that contains...

New Member
Posts: 2
1434     0

Hi GreenMotion,


Could you please share your code?




Showing results for 
Search instead for 
Did you mean: 

Recommended for You

NIOS 8.6.3 – What’s New in DDI