강좌 & 팁
글 수 2,412
2014.01.08 10:35:09 (*.52.177.249)
69774
Inverse Zone 설정 하기
Inverse Zone 파일은 아이피 주소를 문자로 변환 해주는 역할을 담당 합니다.아래의 내용은 /etc/bind/zones/falinuxcorp.com.db 파일의 내용으로, 인버스 존 을 담당 합니다.
; This file holds the information on root name servers needed to
;
; replace example.com with your domain name. do not forget the . after the domain name!
; Also, replace ns1 with the name of your DNS server
$TTL 3600
falinuxcorp.com. IN SOA ns.falinuxcorp.com. admin.falinuxcorp.com. (
; Do not modify the following lines!
2013122318
28800
3600
604800
38400
)
; Replace the following line as necessary:
falinuxcorp.com. IN NS ns.falinuxcorp.com.
; Replace the IP address with the right IP addresses.
ns IN A 192.168.10.2
nadia IN A 192.168.10.10
bunny IN A 192.168.10.11
설정을 위한 네임서버의 IP는 192.168.10.2 입니다.
이 서버를 설정 하기 위하여 위와 같은 내용으로 파일을 작성 합니다.
Reverse Zone 설정 하기
Reverse Zone 파일은 문자로된 도메인 주소를 아이피로 변환 해주는 역할을 담당합니다.아래의 내용은 /etc/bind/zones/rev.10.168.192.in-addr.arpa 파일의 내용으로, 인버스 존 을 담당 합니다.
;replace example.com with yoour domain name, ns1 with your DNS server name.
; The number before IN PTR example.com is the machine address of the DNS server. in my case, it's 1, as my IP address is 192.168.10.2.
@ IN SOA ns1.falinuxcorp.com. admin.falinuxcorp.com. (
2013122318;
28800;
604800;
604800;
86400
)
@ IN NS ns.falinuxcorp.com.
2 IN PTR falinuxcorp.com
2 IN PTR ns.falinuxcorp.com
10 IN PTR nadia.falinuxcorp.com.
11 IN PTR bunny.falinuxcorp.com.
위와 같이 Zone 파일을 작성 하고, bind9 데몬을 재시작 해줍니다.# /etc/init.d/bind9 restart
* Stopping domain name service... bind9 waiting for pid 322 to die
[ OK ]
* Starting domain name service... bind9 [ OK ]
그리고 나서, 다음과 같이 named 데몬이 정상적으로 동작 하는지 확인 합니다.
# ps auxw | grep named bind 9568 0.5 2.3 47148 16868 ? Ssl 10:43 0:00 /usr/sbin/name -u bind


