Skip to content

Instantly share code, notes, and snippets.

View luizjr8's full-sized avatar
💭
A parallax second

Luiz Júnior luizjr8

💭
A parallax second
View GitHub Profile
@luizjr8
luizjr8 / awsDNSSearch.sh
Created September 16, 2021 01:47
Search Amazon AWS Route53 all zones records by ip
#! /bin/bash
# Parâmetros
ipAddress=$1
# Baixa todas as zonas
zoneids=$(aws route53 --output json list-hosted-zones | jq '.HostedZones[] | "\(.Id)" | ltrimstr("/hostedzone/")' | sed 's/[^0-9|A-Z]//g')
# Loop por Zonas
for zone in $zoneids