*선행 정보 : 도메인의 개념이해 , 테스터 할 도메인 확보(없는 경우 무료 도메인 등록추천)
명령이 > cat /etc/*release*
결과 >
CentOS Linux release 7.2.1511 (Core)
CentOS Linux release 7.2.1511 (Core)
cpe:/o:centos:centos:7
s/w 설치 명령어 > # yum -y install bind bind-libs bind-utils bind-chroot
설정정보 변경(options 부분변경)
명령어> vi /etc/named.conf
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { any; };
/*
- If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
- If you are building a RECURSIVE (caching) DNS server, you need to enable
recursion.
- If your recursive DNS server has a public IP address, you MUST enable access
control to limit queries to your legitimate users. Failing to do so will
cause your server to become part of large scale DNS amplification
attacks. Implementing BCP38 within your network would greatly
reduce such attack surface
*/
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
pid-file "/run/named/named.pid";
session-keyfile "/run/named/session.key";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
zone "korea.cf" in{
type master;
file "korea.cf.zone";
allow-update{ none; };
};
$TTL 3H
@ IN SOA ns.korea.cf. root (
160509 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ; minimum)
IN NS ns.korea.cf.
IN A 10.10.0.1
ns IN A 10.10.0.1
www IN A 10.10.0.1
우분투 SSH Telnet 설치 방법 (0) | 2017.07.14 |
---|---|
Centos 7.x - FTP(Vsftpd) 설치 방법 (0) | 2016.07.15 |
우분투 - 파일링크(심볼릭 링크, 하드링크) 새성 및 삭제 방법 (0) | 2015.05.27 |
우분투 – LAMP 설치방법 (0) | 2015.02.26 |
우분투 - 삼바 설치및 설정 (0) | 2015.02.26 |
Blog is powered by kakao / Designed by 미스터짱