No subject

Daniele Imbrogino d.imbrogino at gmail.com
Tue Nov 20 15:49:03 UTC 2012


I'd like to install on Ubuntu 12.04 a DNS server using BIND9.
As a first step, I'd just like to configure it as a forwarder for my box
only.
This is what I do:

 1. I deactivate `dnsmasq` editing
`/etc/NetworkManager/NetworkManager.conf` by commenting the `dns=dnsmasq`
line.
Before, the `/etc/resolv.conf` file contained a `nameserver 127.0.0.1`
line, and now there is a `nameserver 10.0.2.3` line (my actual DNS server
working in a VirtualBox environment). I think it's right, and name
resolution (using `dig`) still works.

 2. I download BIND9 and the suggested packages with `sudo apt-get install
bind9 bind9utils bind9-doc`

 3. In `/etc/bind/named.conf.options` I edit the

        // forwarders {
        //      0.0.0.0;
        // };
block with the

         forwarders {
                10.0.2.3;
         };
block.

 4. In `/etc/dhcp/dhclient.conf` I de-comment the `#prepend
domain-name-servers 127.0.0.1;` line; using DHCP for my network interface,
this allows to have `nameserver 127.0.0.1` as first line on
`/etc/resolv.conf`; if I had a static configuration, I would just add a
`dns-nameservers 127.0.0.1` line in `/etc/network/interfaces`.

 5. Now I restart all services (resolvconf, dhclient, bind9).

Well, from this point nothing works.
Using Wireshark I can see a lot of DNS queries to/from 10.0.2.3 and also
to/from root-servers, but `dig` continues to fail with `status: SERVFAIL`.

Why?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20121120/bf6316ef/attachment.html>


More information about the bind-users mailing list