Подскажите, что делаю не так, почему у всех пользователей из локалки, domen.ru ресолвится как 83.3хх.1хх.1хх
httpd.conf
-------------------------------------
Код:
// $FreeBSD: src/etc/namedb/named.conf,v 1.21.2.1 2005/09/10 08:27:27 dougb Exp $
//
// 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";query-source address * port 53;
allow-recursion { 192.168.0.0/16; };
// allow-update { none; };
//logging {
// category lame-servers { null; };
// category update { null; };
// category default { default_syslog; };
// };
// 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.// If you have IPv6 enabled on this system, uncomment this option for
// use as a local resolver. To give access to the network, specify
// an IPv6 address, or the keyword "any".
// listen-on-v6 { ::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 {
127.0.0.1;
};
*/
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND versions 8 and later
* use a pseudo-random unprivileged UDP port by default.
*/
// query-source address * port 53;
};// 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.view "internal" {
match-clients { 192.168.0.0/16; };
recursion yes; /* this is the default */zone "portal.lan" in {
type master;
file "/etc/namedb/master/portal.int";
};
zone "domen.ru" {
type master;
file "/etc/namedb/master/domen.int";
};
};view "external" {
match-clients { any; };
recursion no;zone "domen.ru" {
type master;
file "/etc/namedb/master/domen.ext";
};
};domen.int
----------------------------------------
Код:
$TTL 3600
domen.ru. IN SOA ns.domen.ru. ns.domen.ru. (
2008021001
10800
3600
604800
86400 )
domen.ru. IN NS ns.domen.ru.
domen.ru. IN A 192.168.1.60
www.domen.ru. IN A 192.168.1.60
ns IN A 192.168.1.60
ftp IN A 192.168.1.60
domen.ext
---------------------------------
Код:
$TTL 3600
dome.ru. IN SOA ns0.xname.org. root.domen.ru. (
2008021001
10800
3600
604800
86400 )
domen.ru. IN NS ns0.xname.org.
domen.ru. IN NS ns1.xname.org.
domen.ru. IN MX 10 mail
domen.ru. IN MX 20 mail
domen.ru. IN A 83.3xx.1xx.1xx
www.domen.ru. IN A 83.3xx.1xx.1xx
ftp IN A 83.3xx.1xx.1xx
mail IN A 83.3xx.1xx.1xx
smtp IN A 83.3xx.1xx.1xx
pop IN A 83.3xx.1xx.1xx
Не знаю. Вызывает сомнение только ширина маски match-clients { 192.168.0.0/16; };
Покажи ifconfig <внутр. итф.> сервера.
>Не знаю. Вызывает сомнение только ширина маски match-clients { 192.168.0.0/16; };
>
>Покажи ifconfig <внутр. итф.> сервера.оказывается все было элементарно, но покрайней мере сейчас все заработало. Нужно было прописать на клиентах ТОЛЬКО!!! днс 192.168.1.60 А я вписывал еще и 192.168.1.1 (инет шлюз)
Только теперь другая проблема, при запущенном нэймеде, при попытке ping ya.ru выдает
ping: cannot resolve ya.ru: No address associated with name
и так любой хост. При выключенном, все ок
forwarders {
127.0.0.1;
};
Впиши ДНС провайдера.