unbound deploy DNS server

Check if unbound is installed

#rpm -qa unbound *

install unbound

#yum install unbound -y

start the service

[root@localhost ~]# systemctl start unbound.service
[root@localhost ~]# systemctl enable unbound.service

Modify the configuration file

[root@localhost ~]# vi /etc/unbound/unbound.conf

38 lines

interface: 0.0.0.0 #Set to monitor all interfaces

Line 179

access-control: 0.0.0.0/0 allow #Allow all address resolution services

214 lines

username: "" #Any user can access

375 lines

domain-insecure: "ict.edu" #Skip verification domain

458 lines

               local-zone: "ict.edu" static
        local-data:"ict.edu.86400 IN SOA dns1.ict.edu root.ict.edu 1 1D 1H 1W 1H"
        local-data:"dns1.ict.edu. IN A 192.168.125.146" #Forward parsing
        local-data:"dns2.ict.edu. IN A 192.168.125.138" #Forward parsing
        local-data-ptr:"192.168.125.146 dns1.ict.edu" #Reverse resolution
        local-data-ptr:"192.168.125.138 dns2.ict.edu" #Reverse resolution

555 lines

forward-zone:
        name: "."
        forward-addr: 8.8.8.8 #Forward the query if it cannot be resolved

restart the service

[root@localhost ~]# systemctl restart unbound


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324778717&siteId=291194637