当前位置: 首页 > Linux > 正文

How to Setup Forward Only DNS Server on Ubuntu & LinuxMint

The Domain Name System (DNS) is a hierarchical distributed naming system for computers connected over network. It resolves ip address correspondence to a domain name. A forward only dns server does not keep the domain information. If any query comes to this server, it forward it to configured dns server. A details information about DNSis available.

This article will help you to configure forward only Domain Name System (DNS) using Bind9 on Ubuntu, Debian and LinuxMint systems.

Install DNS Packages

Bind9 is the most popular dns server used world-wide. It is available under default apt-get repositories. So use following commands to install Bind9 domain name system.

Enable DNS Forwarding

We are configuring this server as forward only dns server. So edit bind configuration file

and add following values.

Change the dns server 8.8.8.8 and 8.8.4.4 with suitable dns server ips. Using allow-query we can restrict access of dns server to specific ip ranges. To make it public dns server, comment allow-query line.

Verify Configuration Files

After making all configuration, verify all files using following commands.

If any of above commands returns any error or warning, Please fix that before proceeding to next step.

Restart DNS

After successfully verification of all files, let’s restart bind9 service.

Test Setup

Finally your dns server is successfully configured and ready to use. Let’s verify that DNS is properly responding on queries. Below is example commands to test it.

本文固定链接: http://t.yjsec.com/index.php/2017/12/02/24/ | 下一站

该日志由 admin 于2017年12月02日发表在 Linux 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: How to Setup Forward Only DNS Server on Ubuntu & LinuxMint | 下一站

How to Setup Forward Only DNS Server on Ubuntu & LinuxMint:等您坐沙发呢!

发表评论

快捷键:Ctrl+Enter