- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
REST API call for query_fqdn_on_member
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2018 01:44 PM
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?
Thanks!
Craig
Re: REST API call for query_fqdn_on_member
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2018 11:31 PM
Hi,
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" : "demo.com","member": "nios.test.com"}'
Sample output:
{
"dig_started": 1541748509,
"result": "NOERROR",
"result_text": "\n; <<>> DiG 9.10.2-ECS-M3 <<>> @localhost demo.com ANY -b 127.0.1.0 \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;demo.com.\t\t\tIN\tANY\n\n;; ANSWER SECTION:\ndemo.com.\t\t28800\tIN\tSOA\tnios.test.com. please_set_email.absolutely.nowhere. 19 10800 3600 2419200 900\ndemo.com.\t\t28800\tIN\tNS\tnios.test.com.\n\n;; Query time: 0 msec\n;; SERVER: 127.0.0.1#53(127.0.0.1)\n;; WHEN: Fri Nov 09 12:58:29 IST 2018\n;; MSG SIZE rcvd: 132\n\n",
"source_address": "127.0.1.0"
}
Here are more details on the function call:
Hope you find this helpful,
Krishna
Re: REST API call for query_fqdn_on_member
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 07:29 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2024 08:33 AM
I realize that asking questions in a very old thread might not be the best way - so I created a new thread instead /Anders