A. The listen-on option specifies IPv4 address to listen on. There is no interface specific option but IP is assigned to specific interface, so by specific IP you can force BIND to listen on certain IP or network interface.
listen-on syntax
IPv4 specific syntax is as follows to listen on 202.54.1.2; IP address:listen-on { 202.54.1.2; };To listen on all interfaces and IP (default)
listen-on { any; };IPv6 option is as follows:
listen-on-v6 { any; };Here is sample configuration snapshot from named.conf file:
listen-on-v6 { ipv-6-address; };
options
{
//listen-on-v6 { any; };
listen-on { 202.54.1.2; };
directory "/var/named"; // the default
dump-file "data/cache_dump.db";
statistics-file "data/named_stats.txt";
memstatistics-file "data/named_mem_stats.txt";
dnssec-enable yes;
recursion no;
allow-notify { 202.54.1.3; 202.54.1.4; };
version "go away";
};
No comments:
Post a Comment