본문 바로가기
OS/Linux

CentOS / DNS server

by 하하IT 2020. 4. 27.

1. webmin 설치후

 

2. webmin 접속한뒤

 

 

3. https://192.168.0.71:10000/bind8

 

   로 접속하면

Module Index
Help..
Install Package  

Installing package(s) with command yum -y install bind ..

.....

 


.. install complete.

을 진행함..

 

 

4. https://192.168.0.71:10000/ 다시 접속하면

    Servers > BIND DNS Server 존재함.

 

 

5. Webmin > BIND DNS Server > Edit Config File

    내용중에 아래내용을 확인하여 수정함

 

options {
     ...
    listen-on port 53 { any; };
     ...

    allow-query     { any; };
...

 

   

 

 

DNS 서비스 포트 확인 (TCP , UDP  53 포트를 open해야함)

 

[root@dnsTEST ~]#

[root@dnsTEST ~]#  vi /etc/sysconfig/iptables

[root@dnsTEST ~]#

 

 

....

-A INPUT -m state --state NEW -m tcp -p tcp --dport 53 -j ACCEPT

-A INPUT -m state --state NEW -m udp -p udp --dport 53 -j ACCEPT

.....

 

 

 

[root@dnsTEST ~]#

[root@dnsTEST ~]#  service iptables restart

[root@dnsTEST ~]#

 

 

 

[root@dnsTEST ~]# service iptables status

Table: filter

Chain INPUT (policy ACCEPT)

num  target     prot opt source               destination

1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED

2    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0

3    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0

4    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22

5    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:53

6    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           state NEW udp dpt:53

7    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:10000

8    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited

 

Chain FORWARD (policy ACCEPT)

num  target     prot opt source               destination

1    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited

 

Chain OUTPUT (policy ACCEPT)

num  target     prot opt source               destination

 

[root@dnsTEST ~]#

[root@dnsTEST ~]#

[root@dnsTEST ~]#