A-M
#apt –y install bind9
#vim /etc/bind/named.conf.options
#vim /etc/bind/named.conf
#cp /etc/bind/db.empty /var/cache/bind/alpha.zone
#cp /etc/bind/db.127 /var/cache/bind/192.rev
#vim /var/cache/bind/alpha.zone
:%s:localhost:ns.alpha.com:g
#vim /var/cache/bind/192.rev
:%s:localhost:ns.alpha.com:g
#chmod 777 –R /var/cache/bind
#systemctl restart bind9
#vim /etc/resolv.conf
scp /etc/resolv.conf 192.168.0.2:/etc/
#scp /etc/resolv.conf 192.168.0.3:/etc/
#scp /etc/resolv.conf 192.168.0.4:/etc/
#scp /etc/resolv.conf 192.168.0.254:/etc/
#scp /etc/resolv.conf 192.168.1.254:/etc/
A-Proxy
#apt –y install bind9
#scp 192.168.0.1:/etc/bind/* /etc/bind/
#vim /etc/bind/named.conf
※역방향 내용은 삭제 후, bravo.com 내용 추가
#cp /etc/bind/db.empty /var/cache/bind/alpha.zone
#cp /etc/bind/db.empty /var/cache/bind/bravo.zone
#vim /var/cache/bind/alpha.zone
:%s:localhost:www.alpha.com:g
#vim /var/cache/bind/bravo.zone
:%s:localhost:www.alpha.com:g
#chmod 777 –R /var/cache/bind
#systemctl restart bind9
B-M
#apt –y install bind9
#vim /etc/bind/named.conf.options
#vim /etc/bind/named.conf
#cp /etc/bind/db.empty /var/cache/bind/bravo.zone
#vim /var/cache/bind/bravo.zone
:%s:localhost:www.bravo.com:g
#chmod 777 –R /var/cache/bind
#systemctl restart bind9
#vim /etc/resolv.conf
#scp /etc/resolv.conf 192.168.2.2:/etc/
#scp /etc/resolv.conf 192.168.2.254:/etc/
ISP
#vim /etc/resolv.conf
'OS > Linux' 카테고리의 다른 글
[21전국] 1과제 3. S2S VPN (0) | 2021.11.09 |
---|---|
[21전국] 1과제 CA 구성 (0) | 2021.11.09 |
데비안 리눅스 초기 설정 속성 솔루션 (0) | 2021.11.09 |
[기능대회] 1 과제 bind9 설치 (0) | 2021.11.09 |
[기능대회] 1과제 MySQL Database 구성 (0) | 2021.11.09 |