DNS서버 (네임서버 = nameserver = ns)
[호스트][도메인]
www . google.com
[설명]
www IN A 192.168.100.101
IN A 192.168.100.102
www IN CNAME webserver.ryu.com.
webserver 100 IN A 192.168.100.101
200 IN A 192.168.100.102
:wq
[오류검출][root@dns ~]# named-checkzone ryu.com /var/named/ryu.com.zone
[root@nginx ~]# yum install -y epel-release
[root@localhost ~]# vim /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1
:wq
[root@localhost ~]# yum install -y nginx
....
[root@localhost ~]# firewall-cmd --permanent --zone=public --add-service=http
[root@localhost ~]# firewall-cmd --reload
[root@nginx ~]# firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: ens32
sources:
services: dhcpv6-client http ssh
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
[root@nginx ~]# systemctl restart nginx
[root@nginx ~]# systemctl status nginx
www IN A 192.168.100.11
:wq
[root@dns /var/named]# systemctl restart named