Browse Source

added usage comments

pull/2/head
Ralph Rönnquist 11 months ago
parent
commit
9e3b379ec7
  1. 6
      ip6arpa

6
ip6arpa

@ -1,4 +1,10 @@
#!/usr/bin/awk -f
# Process zone file for listing all ipv6 revDNS split into 3 columnes:
# <file:hostname> <host_part> <block/64 part>
#
# Usage: ip6arpa zonefile* | column -t
# or: ip6arpa <(echo check AAAA 2001:41d0:8:732b::3624:8eb6)
#
$1 ~/^[;#]/ || $0 !~ / AAAA / || $NF !~ /:/{next;}
{
NX=split( $NF, X, ":" );

Loading…
Cancel
Save