File: example.zonetester

package info (click to toggle)
maradns 1.2.12.04-1etch2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 6,676 kB
  • ctags: 2,176
  • sloc: ansic: 26,137; sh: 3,657; perl: 703; makefile: 622; python: 593; sql: 106; awk: 11
file content (8 lines) | stat: -rw-r--r-- 256 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
#!/bin/bash

# This script tests an example zone with TXT fields to make sure it works
# correctly

cat db.example | \
	awk '$2 ~ /[Tt][Xx][Tt]/ {print "dig @127.0.0.3 " $1 " txt"}
             $2 ~ /[Rr][Aa][Ww]/ {print "dig @127.0.0.3 " $1 " raw"}' | sh