Redhat DNS Forwarding

From Define Wiki
Jump to navigation Jump to search

Forwarding DNS server

A forwarding DNS server send requests to other DNS servers. It requires only one line adding to the the named.conf file.

options {
    listen-on port 53 { 127.0.0.1; };
    listen-on-v6 port 53 { ::1; };
    directory "/var/named"
    forward only;
    forwarders {
        192.168.122.1;
        192.168.0.1;
    };
};

The two lines forward only and forwarders configures the server to forward all requests to the IPs shown.

External Queries

To open the DNS server to external queries add the IP for the network adapter to the listen-on directive.