82 lines
1.3 KiB
Markdown
82 lines
1.3 KiB
Markdown
# <scriptname>
|
|
|
|
Skript zur schnellen Abfrage historischer Domain-Records im json-Format. Zur Abfrage wird ein API-Key von Securitytrails.com benötigt.
|
|
|
|
|
|
---
|
|
|
|
## Features
|
|
|
|
- Abfrage historischer DNS-Records inklusive TTLs und Prioritäten
|
|
|
|
---
|
|
|
|
## Installation
|
|
|
|
1. Repository klonen oder Skript kopieren:
|
|
```bash
|
|
git clone git.int.loki-net.at/esn-support-bash-snippets.git
|
|
cd esn-support-bash-snippets/domaintools/histodomain
|
|
chmod +x histodomain
|
|
```
|
|
|
|
---
|
|
|
|
## Nutzung
|
|
|
|
### Standardaufruf
|
|
```bash
|
|
./histodomain.sh
|
|
```
|
|
|
|
### Beispiele
|
|
```bash
|
|
./<scriptname> --option foo
|
|
./<scriptname> 2025-09-08
|
|
```
|
|
|
|
---
|
|
|
|
## Optionen
|
|
|
|
```
|
|
Usage: ./<scriptname> [OPTIONS]
|
|
|
|
--help Zeigt diese Hilfe
|
|
--option Beispieloption
|
|
YYYY-MM-DD Beispiel für Datumsargument
|
|
```
|
|
|
|
---
|
|
|
|
## Beispielausgabe
|
|
|
|
Hier ein Beispieloutput des Skripts.
|
|
|
|
``` bash
|
|
histodomain
|
|
> Welche Domain?
|
|
> domain.tld
|
|
> Welcher DNS-Typ?
|
|
> a
|
|
> API-Key für Securitytrails angeben:
|
|
```
|
|
```
|
|
---
|
|
|
|
## Setup-Hinweise
|
|
|
|
Falls notwendig, Alias in `~/.bashrc` setzen:
|
|
```bash
|
|
alias <scriptname>='~/pfad/zum/repo/domaintools/histodomain/histodomain.sh'
|
|
```
|
|
|
|
---
|
|
|
|
## Notes
|
|
|
|
- Free-Version von Securitytrails ermöglicht bis zu 50 kostenlose Abpfragen über die API/Monat
|
|
- To-Do
|
|
- Non-interaktive Version bauen
|
|
|