# bind9 설치


아래 config file 수정

# cat named.conf.options <-------- forward 옵션 설정 , dns 서버에 없는 경우

forwarders {

8.8.8.8;

};


# cat named.conf.local <-------- zone 생성(domain 등록)

zone "wlstn.com" {

type master;

file "/etc/bind/db.wlstn.com";

};


# cat db.wlstn.com

root@ubuntu:/etc/bind# cat db.wlstn.com 

;

; BIND data file for local loopback interface

;

$TTL 604800

@ IN SOA ns.wlstn.com. root.wlstn.com. (

     2 ; Serial

604800 ; Refresh

 86400 ; Retry

2419200 ; Expire

604800 ) ; Negative Cache TTL

;

@ IN NS ns.wlstn.com.

@ IN A 192.168.218.129

www IN A 192.168.218.130

mail IN A 192.168.218.131

* IN A 192.168.218.129

Posted by 뭉탁거림
,