Infoblox Exchange Cybersecurity Roadshow 2020 – Join us!
North America | Europe | Middle East/Africa | Asia-Pacific

DNS DHCP IPAM

Reply

Getting all records from WAPI

[ Edited ]
smann
Techie
Posts: 2
4080     0

I am trying to get all the records for an authoritative zone.  The WAPI version that I have on the InfoBlox is 1.2.1.  When I call https://1.2.3.4/wapi/v1.2.1/record:host, I only get a partial list of what hosts are on the device.

 

When I call https://1.2.3.4/wapi/v1.2.1/record:host?zone=mydomain.com, I get zero data back (just an empty array).  I have also tried https://1.2.3.4/wapi/v1.2.1/record:host?name=mysite.mydomain.com and get nothing back beyond an empty array.

 

I am trying to get the following information

  1. A list of all FQDN like my.site.com
  2. A list of all “A” records that might exist under the respective domain like “my.site.com”.
  3. A list of all CNAME record that might exist under the respective domain like “my.site.com”.

Any help is greatly appreciated

 

We are running 6.8.6-227913

Re: Getting all records from WAPI

GHorne Community Manager
Community Manager
Posts: 248
4080     0

what you want is either :

 

- allow zone transfer to your client and just AXFR the zone data (much faster and gives you everything you need)

 

- use CSV export to get all the records from the zone using the GUI

 

- use the /allrecords call, which is essentially a zone transfer but much slower. I'm also not sure if it is supported in v1.2.1 of the wapi ( /wapi/v1.2.1/allrecords?zone=mydomain.com )

 

if none of that works, there is nothing obviously wrong with your call, if you're getting an empty list, it just means there are no host records in that zone. (are they, perhaps, all A records instead)

 

what do you get if you use:

 

/wapi/v1.2.1/record:a?zone=mydomain.com

Highlighted

Re: Getting all records from WAPI

smann
Techie
Posts: 2
4080     0

Yes, using the Record:A type worked perfectly for me.  Thank you!

Showing results for 
Search instead for 
Do you mean 

Recommended for You