3

According to http://www.zytrax.com/books/dns/ch7/queries.html#forwarders the port can be specified after the address.

However when i try to set it to

forwarders {
    127.0.0.1 2053;
}

named-checkconf returns

/etc/bind/named.conf.options:12: missing ';' before '2053'
/etc/bind/named.conf.options:12: expected IP address near '2053'

My Fulls named.conf.options file:

options {
    directory "/var/cache/bind";
    dnssec-validation no;
    auth-nxdomain no;
    recursion yes;
    allow-recursion { any; };
    allow-query { any; };
    allow-query-cache { any; };
    listen-on { any; };
    listen-on-v6 { any; };
    forwarders {
            127.0.0.1 2053;
    };
};
1
  • 3
    I think the correct syntax would be 127.0.0.1 port 2053;.
    – Thomas
    Commented Mar 2, 2019 at 15:59

1 Answer 1

9

You need to use port keyword.

forwarders {
            127.0.0.1 port 2053;
    };

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .