Domain to IP/ASN/BGP block mapping script

Anurag Bhatia
Sleepless night. Reading more about Quagga and it’s options. In meanwhile a quick 5min script to enable domain to BGP/IP/ASN mapping. This script is using basic dig command (for finding IP address) and Team Cymru whois service for IP to ASN/block mapping. #!/bin/bash \# Script for domain name to IP/ASN/BGP block mapping IP=$(dig $1 a +short) whois -h $hostname " -c -p $IP" Yeah just 3 line script! Less code = more power!