How to setup bind as a simple forwarder?

How to setup bind as a simple forwarder?

I would like to setup a simple bind server able to act as simple forwarder to the OpenDNS servers. I don’t want my bind however being able to query the root servers, i want all the traffic go only to OpenDNS and maybe act as “cache” for it. How this can be achieved? Should i disable the root servers hints in some way? Is this the correct procedure?

Which is the default DNS resolver for bind?

On the BIND server, we need to set 127.0.0.1 as the default DNS resolver. You can check the current DNS resolver on CentOS 8/RHEL 8 with the following command. This DNS query can’t be found in BIND log. Instead, you need to explicitly tell dig to use BIND.

How to configure bind as a caching or forwarding DNS server?

The main configuration file is called named.conf ( named and bind are two names for the same application). This file simply sources the named.conf.options file, the named.conf.local file, and the named.conf.default-zones file. For a caching DNS server, we will only be modifying the named.conf.options file.

Where does the bind authoritative DNS server run?

The BIND server will run as the named user, which is created during installation, and listens on TCP and UDP port 53, as can be seen by running the following command: Usually, DNS queries are sent to the UDP port 53. The TCP port 53 is for responses size larger than 512 bytes.

How to make bind a no querying server?

I read however that the non querying root servers can be achieved also by disabling the recursion, but disabling the recursion seems to lead the server not being able to take advantage of the forwarders too.. where my conf is wrong? // This is the primary configuration file for the BIND DNS server named.

How does bind forward to outside resolving server?

However, it actually does none of the recursive querying itself. Instead, it forwards all requests to an outside resolving server and then caches the results to use for later queries. This lets the forwarding server respond from its cache, while not requiring it to do all of the work of recursive queries.