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

update readme

parent 0d6fecc1
No related branches found
No related tags found
No related merge requests found
......@@ -110,14 +110,6 @@ written to STDERR. To hide them add a 2>/dev/null to hide the comments.
[]
```
### dns-api.sh
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`
This script is used by dns-search.sh ans show_ttls.sh.
### show_ttls.sh
This helper searches for all **host** entries that override the default
......@@ -155,3 +147,27 @@ host2.example.com
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.
### dns-api.sh
This is a low level command to access the api.
This script is used by dns-search.sh ans show_ttls.sh.
But it can be started manually for custom api urls.
`dns-api.sh [METHOD] URL`
Example:
As an additional information for show_ttl.sh: how to get the default TTL?
```txt
./dns-api.sh GET '/zone_auth?fqdn=example.com&_return_fields=soa_default_ttl,use_grid_zone_timer'
; === DNS API :: GET /zone_auth?fqdn=example.com&_return_fields=soa_default_ttl,use_grid_zone_timer
[
{
"_ref": "zone_auth/RFID:example.com/default",
"soa_default_ttl": 28800,
"use_grid_zone_timer": false
}
]
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment