Seekbrain.com

Brain Seeking at it’s Best

Convert reverse DNS zone to forward DNS zone

Filed under: Software — Perlboy at 12:59 pm on Thursday, March 22, 2007

A one liner to convert a reverse DNS zone to a forward DNS zone:
cat 123.345.567.in-addr.arpa | awk '{ printf "%s\tIN\tA\t123.345.567.%s\n", $4, $1; }' | >> myforwardzone.zone

:)

Stu

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>