Setting up Simple Caching Nameserver

Kevin Darcy kcd at daimlerchrysler.com
Thu Sep 28 22:03:23 UTC 2000


nslookup stupidly aborts if it can't reverse-resolve whatever nameserver
it wants to use. So, either set up reverse resolution for 127.0.0.1 on
your box or use a real tool like "dig", which omits this "feature".


- Kevin

kreedmot at my-deja.com wrote:

> Sun Solaris 7
> Bind 2.2.2 pl5
>
> I'm setting up a caching only nameserver on a mailhost that
> on the outside of our firewall.  Before, it was simply
> pointing all DNS queries to the provider.
>
> I get the nameserver running and before changing the resolv.conf
> entry, I can use nslookup, set the server to localhost or the
> hosts IP and it works like a charm...
>
> However, as soon as I change the resolv.conf file to point to
> localhost, nslookup fails everytime and ends up at the provider
> with an error like:
>
> root at phxsnp03:/usr/local/etc # nslookup
> *** Can't find server name for address 127.0.0.1: Non-existent
> host/domain
> Default Server:  ns.digex.net
> Address:  164.109.1.3
>
> >
>
> I can't figure out what I'm doing wrong.
>
> named.conf contains:
>
> [Ip numbers changed]
> ...
>
> options {
>         statistics-interval 0;
>         directory "/usr/local/etc/namedb";
>         listen-on { 148.89.2.21; 127.0.0.1 };
>         allow-query { 148.89.2.21; 127.0.0.1 };
> };
>
> logging {
>         category statistics { null; };
>         category lame-servers { null; };
>         category cname { null; };
> };
> zone "." in {
>         type hint;
>         file "db.cache";
> };
>
> ...
>
> db.cache contains:
>
> ;; ANSWER SECTION:
> .                       6D IN NS        A.ROOT-SERVERS.NET.
> .                       6D IN NS        H.ROOT-SERVERS.NET.
> .                       6D IN NS        B.ROOT-SERVERS.NET.
> .                       6D IN NS        C.ROOT-SERVERS.NET.
> .                       6D IN NS        D.ROOT-SERVERS.NET.
> .                       6D IN NS        E.ROOT-SERVERS.NET.
> .                       6D IN NS        I.ROOT-SERVERS.NET.
> .                       6D IN NS        F.ROOT-SERVERS.NET.
> .                       6D IN NS        G.ROOT-SERVERS.NET.
> .                       6D IN NS        J.ROOT-SERVERS.NET.
> .                       6D IN NS        K.ROOT-SERVERS.NET.
> .                       6D IN NS        L.ROOT-SERVERS.NET.
> .                       6D IN NS        M.ROOT-SERVERS.NET.
>
> ;; ADDITIONAL SECTION:
> A.ROOT-SERVERS.NET.     5w6d16h IN A    198.41.0.4
> H.ROOT-SERVERS.NET.     5w6d16h IN A    128.63.2.53
> B.ROOT-SERVERS.NET.     5w6d16h IN A    128.9.0.107
> C.ROOT-SERVERS.NET.     5w6d16h IN A    192.33.4.12
> D.ROOT-SERVERS.NET.     5w6d16h IN A    128.8.10.90
> E.ROOT-SERVERS.NET.     5w6d16h IN A    192.203.230.10
> I.ROOT-SERVERS.NET.     5w6d16h IN A    192.36.148.17
> F.ROOT-SERVERS.NET.     5w6d16h IN A    192.5.5.241
> G.ROOT-SERVERS.NET.     5w6d16h IN A    192.112.36.4
> J.ROOT-SERVERS.NET.     5w6d16h IN A    198.41.0.10
> K.ROOT-SERVERS.NET.     5w6d16h IN A    193.0.14.129
> L.ROOT-SERVERS.NET.     5w6d16h IN A    198.32.64.12
> M.ROOT-SERVERS.NET.     5w6d16h IN A    202.12.27.33
>
> Do I perhaps need to setup a localhost entry?
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.






More information about the bind-users mailing list