diff --git a/README.md b/README.md index 88d9a2fd5712afc1e9312ac216811b624b753df1..f6a19fec6fbc9e2690d4a71d70ed4db741f83f14 100644 --- a/README.md +++ b/README.md @@ -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 @@ -154,4 +146,28 @@ 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. \ No newline at end of file +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 + } +] +```