powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Unix-системы [игнор отключен] [закрыт для гостей] / [Debian.BIND9] Правильно ли nslookup отображает?
2 сообщений из 2, страница 1 из 1
[Debian.BIND9] Правильно ли nslookup отображает?
    #35961086
ku3ia
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Доброго времени суток.

Система: Debian 5. Настроил себе BIND9, основываясь на мануале , а также прочитав замечательную книгу книгу
Альбитца и Ли.

Но вот возник вопрос при тесте службы:
Код: plaintext
1.
2.
3.
4.
#nslookup  192 . 168 . 0 . 100 
Server iserver.home.local
Address  192 . 168 . 0 . 254 

 100 . 0 . 168 . 192 .in-addr.arpa name=desktop.home.local.

Правильно ли оно отображает, потому что, например, в пятом издании книги DNS и BIND (на англ только нашел) пишут вот как:
4.7.3.3. Look up a local address
When nslookup is given an address to look up, it knows to make a PTR query instead of an address query. We ran nslookup to look up carrie's address:

% nslookup 192.253.253.4
Server: toystory.movie.edu
Address: 192.249.249.3

Name: carrie.movie.edu
Address: 192.253.253.4

If looking up an address works, your local nameserver has been configured properly for your in-addr.arpa (reverse-mapping) zones. If the lookup fails, you'll see the same error messages as when you looked up a domain name.

Вот мои конфиги BINDa:

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
//named.conf.options

options {
	directory "/var/cache/bind";

	// If there is a firewall between you and nameservers you want
	// to talk to, you may need to fix the firewall to allow multiple
	// ports to talk.  See http://www.kb.cert.org/vuls/id/ 800113 

	// If your ISP provided one or more IP addresses for stable 
	// nameservers, you probably want to use them as forwarders.  
	// Uncomment the following block, and insert the addresses replacing 
	// the all- 0 's placeholder.

	 forwarders {
	 	 172 . 25 . 255 . 10 ;
	 };

	auth-nxdomain no;    # conform to RFC1035
	listen-on-v6 { any; };
};

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
//named.conf.local

//
// Do any local configuration here
//

// Consider adding the  1918  zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

zone "home.local"
{
    type master;
    file "/etc/bind/zones/home.local.db";
};

zone "0.168.192.in-addr.arpa"
{
    type master;
    file "/etc/bind/zones/0.168.192.in-addr.arpa";
};

zone "0.0.127.in-addr.arpa"
{
    type master;
    file "/etc/bind/zones/0.0.127.in-addr.arpa";
};

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
// zones/ 0 . 0 . 127 .in-addr.arpa
$TTL 3h

@ IN SOA iserver.home.local. root.home.local. (
 1 ;
3h;
1h;
1w;
1h)

    IN NS iserver.home.local.
    
 1  IN PTR localhost

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
// zones/ 0 . 168 . 192 .in-addr.arpa

$TTL 3h

@ IN SOA iserver.home.local. root.home.local. (
 1 ;
3h;
1h;
1w;
1h)

    IN NS iserver.home.local.
    
 100  IN PTR desktop.home.local.
 254  IN PTR iserver.home.local.

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
// zones/home.local.db

$TTL 3h

@ IN SOA iserver.home.local. root.home.local. (
 1 ;
3h;
1h;
1w;
1h)

    IN NS iserver.home.local.

localhost IN A  127 . 0 . 0 . 1 
iserver IN A  192 . 168 . 0 . 254 
desktop IN A  192 . 168 . 0 . 100 

Код: plaintext
1.
2.
3.
4.
5.
// /etc/resolv.conf

domain home.local
nameserver  192 . 168 . 0 . 254 
search home.local

Правильно ли nslookup отображает информацию и какие параметры вы можете еще порекомендовать включить в конфигурационные файлы?

Спасибо большое за помощь.
...
Рейтинг: 0 / 0
[Debian.BIND9] Правильно ли nslookup отображает?
    #35962204
ku3ia
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Вот привожу результаты nslookup:

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
iserver:/etc/bind# ya.ru
Server:  192 . 168 . 0 . 254 
Address:  192 . 1680 . 254 # 53 

Non-authoritative answer:
Name: ya.ru
Address:  213 . 180 . 204 . 8 

iserver:/etc/bind# desktop.home.local
Server:  192 . 168 . 0 . 254 
Address:  192 . 1680 . 254 # 53 

Name: desktop.home.local
Address:  192 . 168 . 0 . 100 

iserver:/etc/bind# nslookup  213 . 180 . 204 . 8 
Server:          192 . 168 . 0 . 254 
Address:         192 . 168 . 0 . 254 # 53 

Non-authoritative answer:
 8 . 204 . 180 . 213 .in-addr.arpa      name = ya.ru.

Authoritative answers can be found from:
 204 . 180 . 213 .in-addr.arpa        nameserver = ns2.yandex.net.
 204 . 180 . 213 .in-addr.arpa        nameserver = ns1.yandex.net.

iserver:/etc/bind# nslookup  213 . 180 . 204 . 8 
Server:          192 . 168 . 0 . 254 
Address:         192 . 168 . 0 . 254 # 53 

Non-authoritative answer:
 8 . 204 . 180 . 213 .in-addr.arpa      name = ya.ru.

Authoritative answers can be found from:
 204 . 180 . 213 .in-addr.arpa        nameserver = ns2.yandex.net.
 204 . 180 . 213 .in-addr.arpa        nameserver = ns1.yandex.net.

А вот тесты под виндами:

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
Microsoft Windows XP [Версия  5 . 1 . 2600 ]
(С) Корпорация Майкрософт,  1985 - 2001 .

C:\Documents and Settings\de>nslookup ya.ru
Server:  iserver.home.local
Address:   192 . 168 . 0 . 254 

Non-authoritative answer:
Name:    ya.ru
Address:   213 . 180 . 204 . 8 


C:\Documents and Settings\de>nslookup  213 . 180 . 204 . 8 
Server:  iserver.home.local
Address:   192 . 168 . 0 . 254 

Name:    ya.ru
Address:   213 . 180 . 204 . 8 


C:\Documents and Settings\de>nslookup desktop.home.local
Server:  iserver.home.local
Address:   192 . 168 . 0 . 254 

Name:    desktop.home.local
Address:   192 . 168 . 0 . 100 


C:\Documents and Settings\de>nslookup  192 . 168 . 0 . 100 
Server:  iserver.home.local
Address:   192 . 168 . 0 . 254 

Name:    desktop.home.local
Address:   192 . 168 . 0 . 100 

C:\Documents and Settings\de>

Может быть, все так и должно быть?
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / Unix-системы [игнор отключен] [закрыт для гостей] / [Debian.BIND9] Правильно ли nslookup отображает?
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]