++ 23/04/08 23:20 +0200 - Ton van Rosmalen:
>   I've been brushing up my skills using sed and came to the following:
>   dig @$DNSSERVER $DOMAIN AXFR | sed -e '/;/d;/SOA/{h; d;};$g'
>
>   This strips out comments and pastes one SOA record at the end after
>   deleting all occurrences from the dig-output.

Try a "dig -h", it'll list quite some usefull command line options.  
Using the "+noall +answ" options gives you the zone only, without 
anything else. You would need to strip the last line only.


-- 
Rejo Zenger . <[EMAIL PROTECTED]> . 0x75FC50F3 . <https://rejo.zenger.nl>

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Pdns-users mailing list
[email protected]
http://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to