Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Andrey Zonov                         2:5020/830.28  07 Feb 2005  21:05:19
 To : All
 Subject : bind 9.3.0 не кеширует
 -------------------------------------------------------------------------------- 
 
 
    Hастроил bind 9.3.0 (родной от FreeBSD 5.3-RELEASE) в качестве кэширующего
 ДHС, а он не хочет запоминать кэш.
    Провожу такой тест:
 
 # nslookup yandex.ru
 ;; connection timed out; no servers could be reached
 
 freebsd# ppp -auto provider
 Working in auto mode
 Using interface: tun0
 
 # nslookup yandex.ru
 Server:         192.168.34.1
 Address:        192.168.34.1#53
 
 Non-authoritative answer:
 Name:   yandex.ru
 Address: 213.180.216.200
 
 # killall -TERM ppp
 
 Даже после отключения от инета, ип помнит, как и должен
 
 # nslookup yandex.ru
 Server:         192.168.34.1
 Address:        192.168.34.1#53
 
 Non-authoritative answer:
 Name:   yandex.ru
 Address: 213.180.216.200
 
 # /etc/rc.d/named restart
 Stopping named.
 Starting named.
 
 А после рестарта забыл :(
 
 # nslookup yandex.ru
 ;; connection timed out; no servers could be reached
 
         Так и должно быть?
 
         Да и ещё в /etc/resolv.conf прописываю так:
 
 domain home.ru
 nameserver 192.168.34.1
 
 А после коннекта к инету меняет на:
 
 domain home.ru
 nameserver 217.9.147.42
 nameserver 217.9.148.4
 
 как запретить?
 
 Конфиги, вроде стандартные.
 ==============================named.conf=======================================
 options {
         directory       "/etc/namedb";
         pid-file        "/var/run/named/pid";
         dump-file       "/var/dump/named_dump.db";
         statistics-file "/var/stats/named.stats";
         listen-on       { 192.168.34.1; };
         forwarders {
                 217.9.147.42;
                 217.9.148.4;
         };
 };
 
 zone "." {
         type hint;
         file "named.root";
 };
 
 zone "0.0.127.IN-ADDR.ARPA" {
         type master;
         file "master/localhost.rev";
 };
 
 zone "34.168.192.IN-ADDR.ARPA" {
         type master;
         file "master/192.168.34.rev";
 };
 
 zone "home.ru" {
         type master;
         file "master/home.ru";
 };
 
 // RFC 3152
 zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA" 
 {
         type master;
         file "master/localhost-v6.rev";
 };
 
 // RFC 1886 -- deprecated
 zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" {
         type master;
         file "master/localhost-v6.rev";
 };
 ==============================named.conf=======================================
 ================================rc.conf========================================
 ...
 named_enable="YES"                # Run named, the DNS server (or NO).
 named_program="/usr/sbin/named"   # path to named, if you want a different one.
 named_flags="-u bind"              # Flags for named
 named_pidfile="/var/run/named/pid" # Must set this in named.conf as well
 named_chrootdir="/var/named"    # Chroot directory (or"" not to auto-chroot it)
 named_chroot_autoupdate="YES"   # Automatically install/update chrooted
 named_symlink_enable="YES"      # Symlink the chrooted pid file
 ...
 ================================rc.conf========================================
                                               Успехов!
 
 --- GoldED+/W32 snapshot-2000.12.24
  * Origin: Жизнь - хорошая штука (2:5020/830.28)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 bind 9.3.0 не кеширует   Andrey Zonov   07 Feb 2005 21:05:19 
 bind 9.3.0 не кеширует   Dmitry Pankov   07 Feb 2005 23:02:38 
 Re: bind 9.3.0 не кеширует   Andrey Zonov   08 Feb 2005 09:41:33 
 Re: bind 9.3.0 не кешиpует   Denis Morozov   08 Feb 2005 12:28:02 
 bind 9.3.0 не кеширует   Dmitry Pankov   08 Feb 2005 12:10:14 
 bind 9.3.0 не кеширует   Michael Rulov   08 Feb 2005 17:14:34 
Архивное /ru.unix.bsd/39444207a3ab.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional