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

update README

parent 46c16857
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ License: GNU GPL 3.0 ...@@ -10,6 +10,7 @@ License: GNU GPL 3.0
* Bash * Bash
* curl in $PATH * curl in $PATH
* jq in $PATH (optional for coloring json data)
## Installation ## Installation
...@@ -37,14 +38,12 @@ Search for aliases and hosts. ...@@ -37,14 +38,12 @@ Search for aliases and hosts.
Search for hostnames or aliases in Infoblox API Search for hostnames or aliases in Infoblox API
It uses dns-api.sh and adds the return field for aliases. It uses dns-api.sh and adds the return field for aliases.
SYNTAX: dns-search.sh name|alias REGEX SYNTAX: dns-search.sh [name|alias] REGEX
EXAMPLES: EXAMPLES:
(1) (1)
search for a hostname / A record search for a hostname / A record
dns-search.sh www.iml.unibe.ch
OR
dns-search.sh name www.iml.unibe.ch dns-search.sh name www.iml.unibe.ch
(2) (2)
...@@ -53,6 +52,12 @@ search for CNAME - use "alias" as 1st parameter ...@@ -53,6 +52,12 @@ search for CNAME - use "alias" as 1st parameter
(3) (3)
The search supports regex: The search supports regex:
dns-search.sh ^assets dns-search.sh name ^assets
dns-search.sh "^(connector|examinator).*measured.stage" dns-search.sh name "^(connector|examinator).*measured.stage"
(4)
Lazy mode: do not add name or alias to start 2 requests to search in name and
alias fields
dns-search.sh ufive
``` ```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment