Klaus Darilion <[email protected]> wrote:
>
> named-compilezone -j -f raw -o - example.com \
> /etc/bind/zones/example.com 2>&1| grep SOA|awk '{print $7;}'
Another option might be to use named-journalprint and grab the last SOA
from the output. I don't know which is faster... actually, let's test...
$ time named-compilezone -j -f raw -o - cam.ac.uk /spool/bind/zs/cam |
awk '/ IN SOA / { print $7 }'
zone cam.ac.uk/IN: loaded serial 1391086754 (DNSSEC signed)
1391086754
OK
real 0m1.802s
user 0m1.793s
sys 0m0.150s
$ time named-journalprint /spool/bind/zs/cam.jnl |
awk '/ IN SOA / { soa = $8 } END { print soa }'
1391086754
real 0m5.317s
user 0m4.949s
sys 0m0.629s
$ time named-checkzone -j -f raw cam.ac.uk /spool/bind/zs/cam 2>&1 |
awk '/ loaded serial / { print $5 }'
1391086754
real 0m0.678s
user 0m0.622s
sys 0m0.050s
Winner!
Tony.
--
f.anthony.n.finch <[email protected]> http://dotat.at/
Forties, Cromarty: East, veering southeast, 4 or 5, occasionally 6 at first.
Rough, becoming slight or moderate. Showers, rain at first. Moderate or good,
occasionally poor at first.
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe
from this list
bind-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/bind-users