Introducing SOC Insights for BloxOne Threat Defense: Boost your SOC efficiency with AI-driven insights to eliminate manual work and accelerate investigation and response times. Read the blog announcement here.

API & Integration, DevOps,NetOps,SecOps


REST API call for query_fqdn_on_member

Posts: 5
297     0

In the Perl API you can use query_fqdn_on_member, but I can't seem to locate this functionality on REST API.


Does anyone know if it is there or an RFE request for it to be added?





Re: REST API call for query_fqdn_on_member

Posts: 181
297     0



The function call is available with the grid object in WAPIs. You can invoke it as shown below.


curl -k -u admin:infoblox -H 'content-type: application/json' -X POST "https://grid-master/wapi/v2.7/grid/b25lLmNsdXN0ZXIkMA:Infoblox?_function=query_fqdn_on_member" -d '{"fqdn" : "","member": ""}'

Sample output:
    "dig_started": 1541748509,
    "result": "NOERROR",
    "result_text": "\n; <<>> DiG 9.10.2-ECS-M3 <<>> @localhost ANY -b \n; (2 servers found)\n;; global options: +cmd\n;; Got answer:\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28541\n;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1\n;; WARNING: recursion requested but not available\n\n;; OPT PSEUDOSECTION:\n; EDNS: version: 0, flags:; udp: 4096\n;; QUESTION SECTION:\n;\t\t\tIN\tANY\n\n;; ANSWER SECTION:\\t\t28800\tIN\tSOA\ please_set_email.absolutely.nowhere. 19 10800 3600 2419200 900\\t\t28800\tIN\tNS\\n\n;; Query time: 0 msec\n;; SERVER:\n;; WHEN: Fri Nov 09 12:58:29 IST 2018\n;; MSG SIZE  rcvd: 132\n\n",
    "source_address": ""

Here are more details on the function call:


Hope you find this helpful,



Re: REST API call for query_fqdn_on_member

New Member
Posts: 4
297     0

Question: I want to use this function to lookup records on DNS servers outside my org - I'm especially interested in SOA-records. The GUI allows me to overrule the list of record types, and type in "SOA" and click "Perform dig". But in the API an error is returned:


"Error": "AdmConProtoError: Invalid value for record_type (\"SOA\") valid values are: ANY, A, AAAA, CNAME, DNAME, MX, NAPTR, NS, PTR, SRV, TXT, AXFR"
To be honest this is highly frustrating, since the GUI allows it ;-) (and the arguments are just handed off to `dig` that does support the SOA)
Any suggestions?

Re: REST API call for query_fqdn_on_member

New Member
Posts: 4
298     0

I realize that asking questions in a very old thread might not be the best way Smiley Wink - so I created a new thread instead  /Anders

Showing results for 
Search instead for 
Did you mean: 

Recommended for You