BIND Refusing to Resolve for External Hosts

Chris Maness chris at
Sat Jul 3 21:04:36 UTC 2010

On Sat, Jul 3, 2010 at 12:52 PM, Matthew Seaman
<m.seaman at> wrote:
> Hash: SHA1
> On 03/07/2010 20:28:27, Chris Maness wrote:
>> Including the line:
>> acl public-nets {; ::1; }
>                                     ^
> You need a semi-colon here __________|

I am on gmail with variable width font.  I am not sure exactly where I
need the semi colon.

> Just defining the acl won't do a great deal on its own -- you need to
> add it to an allow-recursion {}; or similar block.

Sorry, Matt.  I haven't had to mess with the configuration file in 10
years.  Everything just worked until recently (probably the upgrade).
I am running a small Web/DNS/Mail server in my house.  I like using a
local recursive server as it has been faster than the alternatives in
the past.  Currently, my local net is using the DSL router as its
upstream DNS.  So without rambling too much.  I am a bit simple at
this stuff, and a little confused.  I could switch to another DNS
server, but for academic purposes, I want to learn this stuff.  I am
looking at some example files from the ISC link you sent me:

I was thinking of just rebuilding the file from scratch as my current
file is greek to me.  However, the examples posted are for recursive
only and authoritative only.  Since my server is a hybrid, I am
wondering which directives might interfere with the other.

Moreover I had a look at the security section from that link:

Here is what I added to my named.conf.  I guess over time they have
increased the default security of BIND so that old files don't allow
recursion from outside hosts by default.

// Set up an ACL called our-nets. Replace this with the real IP numbers.

acl our-nets {; };

options {
        // Relative to the chroot directory, if any
        directory       "/etc/namedb";
        pid-file        "/var/run/named/pid";
        dump-file       "/var/dump/named_dump.db";
        statistics-file "/var/stats/named.stats";
        allow-transfer {
        allow-query { our-nets; };
        allow-recursion { our-nets; };

Chris Maness

More information about the freebsd-questions mailing list