이 부분은 David E. Smith (dave@bureau42.ml.org)씨가 쓴 'using bind 8'에 있던 절이다. 새로은 절의 이름에 맞도록 약간 편집을 가했다.
별로 해야할 것은 없다. named.boot대신 named.conf를 사용하는 점 말고는 모든 것이 동일하다. bind8은 펄 스크립트로 옛 형식의 파일들을 새로운 형식에 맞게 변환한다. 다음은 옛형식으로 된 캐시 전용 네임 서버의 예이다.
directory /var/named cache . root.hints primary 0.0.127.IN-ADDR.ARPA 127.0.0.zone primary localhost localhost.zone
On the command line, in the bind8/src/bin/named directory (this assumes you got a source distribution. If you got a binary package the script is probably around, I'm not sure where it would be though. -ed.), type:
bind8/src/bin/named 디렉토리(여러분에게 소스가 있다고 가정한다. 만약 바이너리 패키지를 가지고 있더라도 이 스크립트는 분명 어딘가에 있을 것이다. 어디에 있을지는 확신할수 없다.)에서 다음 명령을 입력하자.
./named-bootconf.pl < named.boot > named.conf
그러면 named.conf가 만들어 진다.
// generated by named-bootconf.pl options { directory "/var/named"; }; zone "." { type hint; file "root.hints"; }; zone "0.0.127.IN-ADDR.ARPA" { type master; file "127.0.0.zone"; }; zone "localhost" { type master; file "localhost.zone"; };
named.conf 파일에 들어갈 수 있을 만큼 모든 것이 작동하기는 하지만 bind8이 지원하는 새롭게 향상된 기능이나 설정 옵션들은 추가되지 않는다. 여기에 똑같은 일을 하지만 좀더 효과적인 더욱 완전한 named.conf가 있다.
// This is a configuration file for named (from BIND 8.1 or later). // It would normally be installed as /etc/named.conf. // The only change made from the `stock' named.conf (aside from this // comment :) is that the directory line was uncommented, since I // already had the zone files in /var/named. options { directory "/var/named"; datasize 20M; }; zone "localhost" IN { type master; file "localhost.zone"; }; zone "0.0.127.in-addr.arpa" IN { type master; file "127.0.0.zone"; }; zone "." IN { type hint; file "root.hints"; };
bind8/src/bin/named/test에 위의 예와 함께 바로 가져다 쓸 수 있는 존 파일 복사본이 많이 있다.
존 파일과 root.hints 파일을 업데이트하는 명령이 동일하듯이, 존 파일과 root.hints 파일의 형식도 동일하다.