[CentOS] How to enable bind to listen querys from all my network

Thu Aug 28 10:28:04 UTC 2008
Lorenzo Quatrini <lorenzo at gmk.it>

Miguel A. Velasco ha scritto:

> I have bind-chroot installed with the following options in /etc/named.conf:
> 
> options {
>         listen-on port 53 { 127.0.0.1; 10.10.80.0; };
>         listen-on-v6 port 53 { ::1; };
>         directory       "/var/named";
>         dump-file       "/var/named/data/cache_dump.db";
>         statistics-file "/var/named/data/named_stats.txt";
>         memstatistics-file "/var/named/data/named_mem_stats.txt";
> 
>         // Those options should be used carefully because they disable port
>         // randomization
>         // query-source    port 53;
>         // query-source-v6 port 53;
> 
>         allow-query     { localhost; };
Hi Miguel,
you have to edit the allow-query line to allow queries from other host (I have
any there, not localhost) I'm not sure about the syntax but I guess you could
try to put 10.10.80.* or 10.10.80.0/24 there to allow queries from you network

Also remove "10.10.80.0;" from listen-on port as it isn't needed (here you can
specify addresses if your server is multi-homed and you want it to listen only
on some interfaces)

--
Regards

Lorenzo Quatrini