다음은 이전 예제입니다. 나는 나의 것과 비교했고 형식은 여전히 동일하다.
http://www.adspeed.org/2006/04/parsing-verisign-comnet-zone-files.html
;File start: 95720
; The use of the Data contained in Verisign Inc.' aggregated
; .com, and .net top-level domain zone files (including the checksum
; files) is subject to the restrictions described in the access Agreement
; with Verisign Inc.
$ORIGIN EDU.
@ IN SOA L3.NSTLD.COM. NSTLD.VERISIGN-GRS.COM. (
2006040800 ;serial
1800 ;refresh every 30 min
900 ;retry every 15 min
604800 ;expire after a week
86400 ;minimum of a day
)
$TTL 518400
NS L3.NSTLD.COM.
NS D3.NSTLD.COM.
NS A3.NSTLD.COM.
NS E3.NSTLD.COM.
NS C3.NSTLD.COM.
NS G3.NSTLD.COM.
NS M3.NSTLD.COM.
NS H3.NSTLD.COM.
L3.NSTLD.COM. A 192.41.162.32
D3.NSTLD.COM. A 192.31.80.32
A3.NSTLD.COM. A 192.5.6.32
E3.NSTLD.COM. A 192.12.94.32
C3.NSTLD.COM. A 192.26.92.32
G3.NSTLD.COM. A 192.42.93.32
M3.NSTLD.COM. A 192.55.83.32
H3.NSTLD.COM. A 192.54.112.32
$TTL 172800
22CF NS DNS1.NAME-SERVICES.COM.
22CF NS DNS2.NAME-SERVICES.COM.
22CF NS DNS3.NAME-SERVICES.COM.
TEST NS NS1.TEST
......
이것은 new.zone 파일의 예이다. 네임 서버가 .net 일 때 어떻게 보이는지 알 수 있도록 하단에 하나 추가했습니다.
% named-checkzone -i none -s full -D com. com.zone | \
perl -ane 'print $F[0]."\n" if $F[3] eq "NS"' | \
uniq
명령 줄이 인정 하듯이 더 이상이지만, 그것은 잠재적으로 취약한 정규 표현식 일치에 대한 필요성을 피할 수 :