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
6ac27aba
Commit
6ac27aba
authored
2 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update readme
parent
202d3716
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+50
-11
50 additions, 11 deletions
README.md
with
50 additions
and
11 deletions
README.md
+
50
−
11
View file @
6ac27aba
...
...
@@ -29,6 +29,8 @@ Search for aliases and hosts.
```
text
./dns-search.sh
>>>>>>>>>> INFOBLOX DNS SEARCH v1.5
Search for hostnames or aliases in Infoblox API
It uses dns-api.sh and adds the return field for aliases.
...
...
@@ -64,16 +66,6 @@ in all object types
```
### 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. 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.
...
...
@@ -84,7 +76,7 @@ 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
;
>>>>>>>>>>
INFOBLOX DNS SEARCH
v1.5
;
; search for type :
; search regex : www.iml.unibe.ch
...
...
@@ -106,6 +98,7 @@ written to STDERR. To hide them add a 2>/dev/null to hide the comments.
],
"name": "www.iml.unibe.ch",
"ttl": 300,
"use_ttl": false,
"view": "default"
}
]
...
...
@@ -116,3 +109,49 @@ written to STDERR. To hide them add a 2>/dev/null to hide the comments.
; === DNS API :: GET /record:cname?name~=www.iml.unibe.ch&_return_fields%2B=ttl
[]
```
### 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
ttl value for the zone objects.
```
txt
>>>>>>>>>> INFOBLOX DNS HELPER: TTL v1.0
Search for hostnames in Infoblox API and show all hosts that have an
activated custom ttl value.
It uses dns-api.sh and adds the return field for aliases.
SYNTAX: dns-search.sh REGEX
REGEX string search string for a hostname.
Use a dot . to scan all hosts you are allowed to access
```
Example output
```
txt
> ./show_ttls.sh .
;
; >>>>>>>>>> INFOBLOX DNS HELPER TTL v1.0
;
; === DNS API :: GET /record:host?name~=.&_return_fields%2B=ttl,use_ttl
host1.example.com
28800
host2.example.com
300
```
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
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