Skip to content
Snippets Groups Projects
Commit b3fa78e2 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update docs

parent e42e67fa
No related branches found
No related tags found
No related merge requests found
...@@ -66,8 +66,53 @@ in all object types ...@@ -66,8 +66,53 @@ in all object types
### dns-api.sh ### dns-api.sh
Low level command to access the api Low level command to access the api. It is called from ./dns-search.sh too - but can be started manually for custom api urls.
`dns-api.sh [METHOD] URL` `dns-api.sh [METHOD] URL`
This script is used by dns-search.sh. Maybe you don't want to execute it directly. This script is used by dns-search.sh. Maybe you don't want to execute it directly.
### Output
You maybe want to start with the lazy mode.
Here you see how it accesses the api and the returned json data of each request.
Between the json data are lines starting with a semikolon - these are comments
written to STDERR. To hide them add a 2>/dev/null to hide the comments.
```txt
./dns-search.sh www.iml.unibe.ch
;
; === INFOBLOX DNS SEARCH
;
; search for type :
; search regex : www.iml.unibe.ch
;
; === DNS API :: GET /record:host?name~=www.iml.unibe.ch&_return_fields%2B=aliases,ttl
[
{
"_ref": "record:host/REFID:www.iml.unibe.ch/default",
"aliases": [
...
],
"ipv4addrs": [
{
"_ref": "record:host_ipv4addr/REFID_2:86.119.35.66/www.iml.unibe.ch/default",
"configure_for_dhcp": false,
"host": "www.iml.unibe.ch",
"ipv4addr": "86.119.35.66"
}
],
"name": "www.iml.unibe.ch",
"ttl": 300,
"view": "default"
}
]
; === DNS API :: GET /record:host?alias~=www.iml.unibe.ch&_return_fields%2B=aliases,ttl
[]
; === DNS API :: GET /record:host?ipv4addr~=www.iml.unibe.ch&_return_fields%2B=aliases,ttl
[]
; === DNS API :: GET /record:cname?name~=www.iml.unibe.ch&_return_fields%2B=ttl
[]
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment