Metasploit - 07. 해킹 연습할 사이트 구축I [작업중]
by jennysgapDNS 구축
- 해킹 연습할 사이트 구축
- 보안위협탐지준비 13
# ps -ef | grep named
# vi /etc/named.conf
--------------------------------------------
options {
directory "/var/named";
allow
};
zone "." in {
type hint;
file "named.root";
};
zone "jenny.com" in {
type master;
file "jenny.zone";
};
zone "3.168.192.in-addr.arpa" in {
type master;
file "jenny.rzone";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "loopback.rzone";
};
--------------------------------------------
# vi /var/named/jenny.zone
--------------------------------------------
$TTL 86400
@ IN SOA host.jenny.com. root.host.jenny.com. (
2016112801 ; Serial
1D ; Refresh
6H ; Retry
1W ; Expire
86400 ; TTL
)
IN NS host.jenny.com.
IN MX 1 mail.jenny.com.
; Service List
host.jenny.com. IN A 192.168.3.220
mail IN A 192.168.3.221
web1 IN A 192.168.3.222
web2 IN A 192.168.3.223
dbsvr IN A 192.168.3.224
share IN A 192.168.3.225
; Alias List
www IN CNAME web1
cloud IN CNAME share
ns IN CNAME Jenny
; localhost List
localhost IN A 127.0.0.1 ; Loopback
--------------------------------------------
# vi /var/named/jenny.rzone
--------------------------------------------
$TTL 86400
@ IN SOA host.jenny.com. root.host.jenny.com. (
2016112801 ; Serial
1D ; Refresh
6H ; Retry
1W ; Expire
86400 ; TTL
)
IN NS host.jenny.com.
IN MX 1 mail.jenny.com.
; Service List
220 IN PTR host.jenny.com.
221 IN PTR mail.jenny.com.
222 IN PTR web1.jenny.com.
223 IN PTR web2.jenny.com.
224 IN PTR dbsvr.jenny.com.
225 IN PTR share.jenny.com.
--------------------------------------------
# vi /var/named/loopback.rzone
--------------------------------------------
$TTL 86400
@ IN SOA host.jenny.com. root.host.jenny.com. (
2016112801 ; Serial
1D ; Refresh
6H ; Retry
1W ; Expire
86400 ; TTL
)
IN NS host.jenny.com.
IN MX 1 mail.jenny.com.
; Service List
1 IN PTR localhost.jenny.com.
--------------------------------------------
# cd /var/named/backup
# mv /named.ca ../named.root
# chkconfig --list named
# chkconfig --level 5 named on
# sercive named start
# iptables -F
# vi /etc/resolv.conf
--------------------------------------------
search jenny.com
nameserver 192.168.3.220
--------------------------------------------
# ps -ef | grep named
# nslookup
> server
> server 192.168.3.220
> www.jenny.com
'BOX' 카테고리의 다른 글
운영체제의 기초 - 2. Introduction to OS 2 (2) | 2017.03.14 |
---|---|
Metasploit - 08. msfvenom [작업중] (0) | 2017.03.14 |
운영체제의 기초 - 1. Introduction to OS 1 (0) | 2017.03.14 |
깔끔한 제안서를 만드는 실용적인 팁 10가지 (0) | 2017.02.27 |
취약점 유형 (OWASP, 국정원, SANS) (0) | 2017.02.24 |
블로그의 정보
jennysgap
jennysgap