G'day all,

I am using bind as a caching name server and have found that it seems to
be very slow when doing reverse DNS lookups. In particular, it seems to be
only caching them for about 5 minutes, and is very slow (up to 2 minutes)
when it is not in the cache. It first showed up when using "who" with
people telnet connected. "Who" likes to show the hostname telneted from.

Another thing interesting is the hostnames that are being looked up are in
my /etc/hosts file, but still take ages. An strace of who shows that "who"
is doing something with the hosts file, and then trying "named" and timing
out and retrying a few times before it completes. There is nothing 
reported in my logs.

I have a default configuration for a caching only bind configuration. here
are my configuration files (sorry for the size of this post).

ABO
-----------------------/etc/host.conf-----------------------
order hosts,bind
multi on
-----------------------/etc/resolve.conf--------------------
search apana.org.au
nameserver      127.0.0.1
----------------------/etc/hosts----------------------------
127.0.0.1       localhost
#
203.12.237.9    minkirri.apana.org.au   minkirri
203.12.237.10   slamdunk.apana.org.au   slamdunk
203.12.237.11   warlu.apana.org.au      warlu
203.12.237.12   pirli.apana.org.au      pirli
# 203.12.237.13 ngapa.apana.org.au      ngapa
# 203.12.237.14 walya.apana.org.au      walya
#
203.12.237.33   dialup-1.minkirri.apana.org.au dialup-1
203.12.237.34   dialup-2.minkirri.apana.org.au dialup-2
203.12.237.35   dialup-3.minkirri.apana.org.au dialup-3
203.12.237.36   dialup-4.minkirri.apana.org.au dialup-4
#
203.12.236.11   ocelot.apana.org.au     ocelot
203.12.236.10   core.apana.org.au       core
203.12.236.14   hock.apana.org.au       hock news
192.189.54.17   ntp.connect.com.au      ntp
#
# Broadcast address         203.12.237.15
# Subnet address            203.12.237.8
#
# End of hosts.
---------/etc/named.boot->/var/named/named.boot------------
;
; Boot file for name server
;

directory /var/named

; type          domain                  source          file
cache           .                                       named.root

; Zone boot information and daemon options are kept in other files

include boot.zones
include boot.options
--------------------/var/named/boot.zones-------------------
;
; Name server zone boot file
; See named(8) for syntax and further information
;

; type          domain                  source          file
------------------/var/named/boot.options-----------------
;
; Options for name server
; Use `bindconfig' to automatically configure this file
;

forwarders      192.188.107.12 203.8.183.1
options         forward-only

; type          domain                  source          file
primary         localhost                               named.local
primary         127.in-addr.arpa                        named.rev-local

;; Custom configurations below (will be preserved)
------------------/var/named/named.local----------------------
;
; BIND data file for local loopback interface
;
@       IN      SOA     localhost. root.localhost. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Default TTL
;
@       IN      NS      localhost.
@       IN      A       127.0.0.1
------------------/var/named/named.rev-local-----------------------
;
; BIND reverse data file for local loopback interface
;
@       IN      SOA     localhost. root.localhost. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Default TTL
;
@       IN      NS      localhost.
1.0.0   IN      PTR     localhost.



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to