[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bind 9.2.4-1 very slow in resolving uncached querres



Hi Eriberto,

I am using the default config of bind9, and it already includes zones
for localhost and 127.0.0.1. Here is how it looks in my named.conf

###################################################
zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";
};
###################################################

now, db.local:

###################################################
$TTL    604800
@       IN      SOA     localhost. root.localhost. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      localhost.
@       IN      A       127.0.0.1
###################################################

and db.127:

###################################################
$TTL    604800
@       IN      SOA     localhost. root.localhost. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      localhost.
1.0.0   IN      PTR     localhost.
###################################################

Does this look OK to you? Thank you.

Martynas


On 20/08/05, Eriberto <jemf@gabcmt.eb.mil.br> wrote:
> No. I said you need to make two dns zones (one to localhost and other to
> 127.0.0.0 network). An example to localhost:
> 
> ----------------------------------------
> $TTL    1D
> @       IN SOA  ns.mynet.org. admnet.mynet.org. (
>                         20050820        ; Serial
>                               3H        ; Refresh
>                              15M        ; Retry
>                               1W        ; Expire
>                               1D )      ; Negative Cache TTL
> 
>                 IN NS   ns.mynet.org.
> 
> localhost.      IN A    127.0.0.1
> ----------------------------------------
> 
> Best regards,
> 
> Eriberto - www.eriberto.pro.br
> 
> HOGWASH - IPS invisível em camada 2. http://www.eriberto.pro.br/hogwash
> 
> 
> 
> Martynas Brijunas escreveu:
> 
> > yes, i have the nameserver 127.0.0.1 in my resolv.conf
> 
> 
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
>



Reply to: