Assuming that you find some way to do DNS queries without your router
blocking them:
Stan wrote:
// named.conf
options {
listen-on port 53 { 127.0.0.1; };
Above, you are *only* listening on the local loopback address.
allow-query { localhost; 192.168.0.0/24; };
allow-query-cache { localhost; 192.168.0.0/24; };
Here, you are allowing queries from your LAN, but your server isn't
listening for connections from your LAN.
Interestingly, with my server's default settings (only allowing
localhost), it allows queries from more than just localhost, but it
just doesn't give any answers (I expected less than that). And when I
look at examples, they've written addresses like "192.168.0/24;" not
"192.168.0.0/24;", it seems to work either way.
Add another listen directive if you want your DNS server to be queried
by other devices on your LAN.
e.g. listen-on port 53 { 192.168.0/16; };
Though, if your DNS server is on a fixed IP (which it ought to be),
just put its specific IP in there.