16일차

httpd 열기
systemcil start httpd
netstat -ant | grep 80

개정 추가시 파일 복사
cd /etc/skel

사용자 추가
useradd ai
useradd shopping

사용자 추가 확인
cd /home
ls

웹사이트 확인
master.timetomove
ai.timetomove
shoopping.timtomove
http://192.168.0.201/~master
http://192.168.0.201/~ai
http://192.168.0.201/~shopping

파일 생성
chmod 711 /home/master
chmod 755 /home/master/public_html

su
setsebool -P httpd_enable_homedirs on
restorecon -R /home

touch index.html
touch index.php

useradd ai
useradd shopping

passwd ai
passwd shopping

파일 삭제
rm -rf public_html

nslookup timetomvoe.kr
192.168.0.100(웹서버)
192.168.0.99(DNS)

파일 설정
dnf -y install bind bind-utils
systemctl start named
netstat -ant | grep 53
cd /etc
ls -al | grep named.conf
cat named.conf

cd /var/named
nano /etc/named.conf

방법 1
zone "timetomove.kr" IN {
type hint;
file "timetomove.zone";
};

방법 2
nano etc/named.rfc1912.zones

zone "timetomove.kr" IN {
type master;
file "timetomove.kr.zone";
allow-update { none; };

nslookup timetomove.kr
1. hosts > named.conf >

cd /var/named
cp named.localhost timetomove.zone



$TTL 1D
@ IN SOA @ rname.invalid. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS @
A 127.0.0.1
AAAA ::1
www In A 10.0.2.15
ai IN A 10.0.2.15
shopping IN A 10.0.2.15
* IM A 10.0.2.15


nano /etc/resolv.conf
nameser 10.0.2.15 (반응 X)

복습
nano /etc/named.rfc1912.zones

zone "ysh.kr" IN {
type master;
file "ysh.kr.zone";
allow-update { none; };

cd /var/named/
cp named.localhost ysh.zone

www In A 10.0.2.15
ai IN A 10.0.2.15
shopping IN A 10.0.2.15
* IM A 10.0.2.