named.conf 옵션에 아래와 같이 추가 해 주면 텍스트로 나온다.
options {
...
masterfile-format text;
...
}
출처
options {
...
masterfile-format text;
...
}
#!/bin/sh
zoneDir=/var/named/chroot/var/named/slaves/
if [ $# != 1 ] ; then
echo "Error domain name is not defined e.g. showzone domain.org.uk"
exit 0
fi
/usr/sbin/named-compilezone -f raw -F text -o /tmp/myzone $1 ${zoneDir}$1.zone
cat /tmp/myzone
rm -rf /tmp/myzone
for /f "tokens=1,2,3 delims= " %i in ('dir') do @echo %i %j %k
LOG LEVEL | DESCRIPTION |
---|---|
0 | Emergencies – System is unusable |
1 | Alerts – Immediate action needed |
2 | Critical – Critical conditions |
3 | Errors – Error conditions |
4 | Warnings – Warning conditions |
5 | Notifications – Informational messages |
6 | Informational – Normal but significant conditions |
7 | Debugging – Debugging messages |
OPTIONS="-LS0-4d -Lf /dev/null -p /var/run/snmpd.pid"
$ /var/qmail/bin/qmail-inject <<EOM
To: test@test.com
Subject: Test
This is a test message
EOM
printf 'To: test@test.com\nSubject: Test\n\nThis is a test message' | /var/qmail/bin/qmail-inject