Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Infoblox Dns Helperscripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Infoblox Dns Helperscripts
Commits
af8b46e4
Commit
af8b46e4
authored
2 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
search: add field use_ttl in output
parent
04c1ebd8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dns-search.sh
+6
-3
6 additions, 3 deletions
dns-search.sh
with
6 additions
and
3 deletions
dns-search.sh
+
6
−
3
View file @
af8b46e4
...
...
@@ -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
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment