Страница 1 из 1

Локальный DNS на BIND 9 под FreeBSD

Добавлено: 2008-08-14 13:02:02
Flame
Приветствую, славные жители форума!
Скажу сразу, что знаком с FreeBSD надавно (около месяца). На днях получил задание от начальства поднять на локальной машине DNS, который обрабатывал бы локальные запросы, а запросы в Интернет слал провайдеру. 1,5 недели мучаю BIND 9, ничего не выходит. Подскажите, пожалуйста, что делать?

Re: Локальный DNS на BIND 9 под FreeBSD

Добавлено: 2008-08-14 13:21:24
Alex Keda
разрешить локалке рекурсию и запустить.
всё.

Re: Локальный DNS на BIND 9 под FreeBSD

Добавлено: 2008-08-14 14:26:21
Flame
А если домена как такового нет, dns на локальной машине будет кэшировать имена хостов?

Re: Локальный DNS на BIND 9 под FreeBSD

Добавлено: 2008-08-14 15:49:54
Morty
Тема очень хорошо гуглиться.....здесь на сайте тоже есть примеры....лучше взять самое простое что понимаешь и просто попробовать
чтоб понять оно или не оно.
Варианты решения:
http://www.bsdguides.org/guides/freebsd ... scache.php
http://danangyanto.blogspot.com/2008/06 ... eebsd.html
Вообще тупа неймед порбовал запустить ? -))) дето слышал что даже так может подойти -))))) смотря что хочешь...
---------
named.conf (тупой релей)

Код: Выделить всё

// named.conf
// Refer to the named.conf(5) and named(8) man pages, and the documentation
// in /usr/share/doc/bind9 for more details.
//
// If you are going to set up an authoritative server, make sure you
// understand the hairy details of how DNS works.  Even with
// simple mistakes, you can break connectivity for affected parties,
// or cause huge amounts of useless Internet traffic.

options {
directory "/etc/namedb";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";

// If named is being used only as a local resolver, this is a safe default.
// For named to be accessible to the network, comment this option, specify
// the proper IP address, or delete this option.

listen-on { 192.168.10.1; 127.0.0.1; };

// In addition to the "forwarders" clause, you can force your name
// server to never initiate queries of its own, but always ask its
// forwarders only, by enabling the following line:
//
      forward only;

// If you've got a DNS server around at your upstream provider, enter
// its IP address here, and enable the line below.  This will make you
// benefit from its cache, thus reduce overall DNS traffic in the Internet.

// forwarders { x.x.x.x; y.y.y.y; };
forwarders { [IP address of ISP DNS server]; [IP address of ISP DNS server]; };

};

// If you enable a local name server, don't forget to enter 127.0.0.1
// first in your /etc/resolv.conf so this server will be queried.
// Also, make sure to enable it in /etc/rc.conf.

zone "." {
type hint;
file "named.root";
};

// end named.conf