# apt-get install bind9 (낮은 버전은 아래 사이트에서 구할수 있음, 현재 최신 9.8.1b )
또는
# apt-get install openssh
# wget http://ftp.arcane-networks.com/pub/mirrors/ftp.isc.org/isc/bind9/9.4.0/bind-9.4.0.tar.gz
# tar -xvf bind-9.4.0.tar.gz | cd bind-9.4.0
# ./configure --prefix=/opt/bind9 --with-openssl=/usr/local/ssl --sysconfdir=/etc/bind
# make && make install
# root@LEOmaster:/etc/bind# cat named.conf
|
# root@LEOmaster:/etc/bind# cat named.conf.local acl "leo"{ zone "mydomain.com" { zone "leotest.com" {
|
# root@LEOslave:/etc/bind# cat named.conf.local zone "mydomain.com" { }; zone "leotest.com" {
|
# root@LEOmaster:/etc/bind# cat named.conf.options recursion yes; // If there is a firewall between you and nameservers you want
// If your ISP provided one or more IP addresses for stable // the all-0's placeholder.
allow-recursion { auth-nxdomain no; # conform to RFC1035 tcp-clients 500; }; |
#root@LEOmaster:/etc/bind/zones# cat leotest.com.db $TTL 3D @ IN SOA ns.leotest.com. admin.leotest.com. ( 2011060301 28800 3600 604800 38400 ); leotest.com. IN NS ns.leotest.com. ns IN A 192.168.x.x leo IN A 192.168.x.x www IN CNAME leo victim IN A 192.168.x.x backtrack IN A 192.168.x.x backtrack2 IN A 192.168.x.x |
'컴터 때찌 > Experience' 카테고리의 다른 글
sql injection cheat sheet (0) | 2011.06.29 |
---|---|
[링크] DNS 터널링 (0) | 2011.06.12 |
about snort (0) | 2011.05.29 |
DNS cache poisoning (0) | 2011.05.26 |
[Error-VisualStudio] 시스템이 지정된 프로그램을 실행할 수 없습니다 (0) | 2011.05.23 |