4 03 2014
CentOS 6.5 DNS 설정
A.정방향
- 1. 기본 설정 파일에 Domain Zone 추가
1 |
vi /etc/named.rfc1912.zones |
2. 신규 .zone 파일의 생성위치
1 |
vi /var/named/nexkorea.com.zone |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
$TTL 14400 @ IN SOA ns.nexkorea.com. root.nexkorea.com. ( 201212201815 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 60 ) ; minimum IN NS ns.nexkorea.com. IN A 218.38.12.28 dev IN NS ns.nexkorea.com. ns.dev IN A 218.38.12.28 ns IN A 218.38.12.28 www IN A 218.38.12.28 homepage IN A 218.38.12.28 kbs IN A 114.207.113.38 |
B. 역방향
1. 기본 설정 파일에 Domain Zone 추가
1 |
vi /etc/named.rfc1912.zones |
1 2 3 4 5 |
zone "12.38.218.in-addr.arpa" IN { type master; file "12.38.218.zone"; allow-update { none; }; }; |
2. 신규 .zone 파일의 생성위치 (Domain, IP t)
1 |
vi /var/named/12.38.218.zone |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
$TTL 14400 @ IN SOA ns.nexkorea.com. root.nexkorea.com. ( 201402201818 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 60 ) ; minimum IN NS ns.nexkorea.com. 28 IN PTR ns.nexkorea.com. 28 IN PTR www.nexkorea.com. 28 IN PTR homepage.nexkorea.com. |
1 |
vi /etc/named.rfc1912.zones |
1 2 3 4 5 6 7 8 9 10 11 |
zone "12.38.218.in-addr.arpa" IN { type master; file "12.38.218.zone"; allow-update { none; }; }; zone "113.207.114.in-addr.arpa" IN { type master; file "113.207.114.zone"; allow-update { none; }; }; |
1 |
vi /var/named/113.207.114.zone |
1 2 3 4 5 6 7 8 9 10 11 |
$TTL 14400 @ IN SOA ns.nexkorea.com. root.nexkorea.com. ( 201502201818 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 60 ) ; minimum IN NS ns.nexkorea.com. 38 IN PTR kbs.nexkorea.com. |
C.서비스 리스타트
1 |
service named restart |
도메인 위임
https://gsk121.tistory.com/206
휴가 신청서 Linux(CentOS)에서 Tomcat.sh 를 service에 등록하기