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

search: add field use_ttl in output

parent 04c1ebd8
Branches
No related tags found
No related merge requests found
......@@ -10,9 +10,11 @@
# 2022-03-03 v1.2 <axel.hahn@iml.unibe.ch> no param: 2 searches in name and alias
# 2022-06-14 v1.3 <axel.hahn@iml.unibe.ch> added search for cname objects; debug comments are written to stderr
# 2022-09-13 v1.4 <axel.hahn@iml.unibe.ch> add search for ip address; fix cname as 1st param
# 2022-09-14 v1.5 <axel.hahn@iml.unibe.ch> add field use_ttl in output
# ======================================================================
returnFields='&_return_fields%2B=aliases,ttl'
_version="1.5"
returnFields='&_return_fields%2B=aliases,ttl,use_ttl'
# ----------------------------------------------------------------------
# HELP
......@@ -20,6 +22,8 @@ returnFields='&_return_fields%2B=aliases,ttl'
if [ -z "$1" ] || [ "$1" = "-h" ]; then
cat <<EOH
>>>>>>>>>> INFOBLOX DNS SEARCH v$_version
Search for hostnames or aliases in Infoblox API
It uses dns-api.sh and adds the return field for aliases.
......@@ -67,13 +71,12 @@ then
shift 1
fi
mysearch=$1
# ----------------------------------------------------------------------
>&2 echo ";"
>&2 echo "; === INFOBLOX DNS SEARCH"
>&2 echo "; >>>>>>>>>> INFOBLOX DNS SEARCH v$_version"
>&2 echo ";"
>&2 echo "; search for type : $mytype"
>&2 echo "; search regex : $mysearch"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment