이 부분은 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 |
아래의 명령을 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.boot안에 있던 내용들은 그대로 작동하지만 BIND-8의 새로운 기능이나 설정은 작동하지 않는다. 여기에 비슷하지만 더 효과적인 보다 정교한 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"; }; |
BIND 8 배포본의 bind8/src/bin/named/test에서 테스트 할 수 있으며 존 파일을 복사할 수 있다. 사람들은 이러한 식으로 입력해서 즉시 사용하곤 한다.
존 파일과 root.hints 파일은 서로 형식이 동일하며 그들을 업데이트하는 명령 또한 동일하다.