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
b3fa78e2
Commit
b3fa78e2
authored
2 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update docs
parent
e42e67fa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+46
-1
46 additions, 1 deletion
README.md
with
46 additions
and
1 deletion
README.md
+
46
−
1
View file @
b3fa78e2
...
@@ -66,8 +66,53 @@ in all object types
...
@@ -66,8 +66,53 @@ in all object types
### dns-api.sh
### dns-api.sh
Low level command to access the api
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`
`dns-api.sh [METHOD] URL`
This script is used by dns-search.sh. Maybe you don't want to execute it directly.
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.
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.
```
txt
./dns-search.sh www.iml.unibe.ch
;
; === INFOBLOX DNS SEARCH
;
; search for type :
; search regex : www.iml.unibe.ch
;
; === DNS API :: GET /record:host?name~=www.iml.unibe.ch&_return_fields%2B=aliases,ttl
[
{
"_ref": "record:host/REFID:www.iml.unibe.ch/default",
"aliases": [
...
],
"ipv4addrs": [
{
"_ref": "record:host_ipv4addr/REFID_2:86.119.35.66/www.iml.unibe.ch/default",
"configure_for_dhcp": false,
"host": "www.iml.unibe.ch",
"ipv4addr": "86.119.35.66"
}
],
"name": "www.iml.unibe.ch",
"ttl": 300,
"view": "default"
}
]
; === DNS API :: GET /record:host?alias~=www.iml.unibe.ch&_return_fields%2B=aliases,ttl
[]
; === DNS API :: GET /record:host?ipv4addr~=www.iml.unibe.ch&_return_fields%2B=aliases,ttl
[]
; === DNS API :: GET /record:cname?name~=www.iml.unibe.ch&_return_fields%2B=ttl
[]
```
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