Difference between revisions of "Redhat DNS Forwarding"

From Define Wiki
Jump to navigation Jump to search
(Created page with "== 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. <syntaxhighlight> options { li...")
 
(No difference)

Latest revision as of 15:32, 25 August 2013

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.