Skip to main content

DNS: Recursive DNS

Install Unbound

Because DNS is soan important inutility termsfor ofyour functionalitynetwork and security itso isI'd recommendedrecommend to userunning a recursive DNS resolver.resolver Thisto allowsremove DNS resolution without the dependencydependencies on external name servers which can help improve speed and security.servers.

$ apt install unbound

Recursive DNS can sometimes sacrifice speed for security so the unbound server is going to be locked downlimited to only serve DNS requests via IPv4 and IPv6 loopback addresses. Everyone else will have to go through a cacheDNS caching server I'll setup later to perform DNS queries.

# /etc/unbound/unbound.conf.d/local.conf
+ server:
+ 	interface: 127.0.0.1
+ 	interface: ::1
+ 	access-control: 127.0.0.1 allow
+ 	access-control: ::1 allow

$ systemctl restart unbound