From: Mad Deer <mad-deer@mail.ru>
To: gentoo-user-ru@lists.gentoo.org
Subject: Re: [gentoo-user-ru] как заставить bind слушать порт без привязки к интерфейсу
Date: Sun, 08 Jun 2008 21:45:14 +0400 [thread overview]
Message-ID: <484C1AAA.4090804@mail.ru> (raw)
In-Reply-To: <484BC5A5.5030701@gmail.com>
Denis V. Rybakov пишет:
> Приветствую, камрады.
>
> Вопрос такой, как named (bind) заставить слушать порт на 0.0.0.0 ?
>
> Собственно конфиг
>
> options {
> directory "/var/bind";
> listen-on-v6 { none; };
> # listen-on { 127.0.0.1; };
> allow-query { any; };
> pid-file "/var/run/named/named.pid";
> };
>
> что имеем в результате
>
> # netstat -na | grep :53
> tcp 0 0 10.200.0.1:53 0.0.0.0:* LISTEN
> tcp 0 0 172.16.141.5:53 0.0.0.0:* LISTEN
> tcp 0 0 172.16.130.10:53 0.0.0.0:* LISTEN
> tcp 0 0 10.70.0.233:53 0.0.0.0:* LISTEN
> tcp 0 0 172.16.20.1:53 0.0.0.0:* LISTEN
> tcp 0 0 172.16.200.100:53 0.0.0.0:* LISTEN
> tcp 0 0 77.40.x.x:53 0.0.0.0:* LISTEN
> tcp 0 0 192.168.100.1:53 0.0.0.0:* LISTEN
> tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTE
>
> т.е. слушает на интерфейсах, которые были подняты в момент запуска named
> если что-то поднимается позднее, он их уже не слушает.
>
> хочу чтобы было так
>
> # netstat -na | grep :53
> tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN
>
> man named.conf
> делал
> там по этому поводу сказано
>
> listen-on [ port integer ] { address_match_element; ... };
> listen-on-v6 [ port integer ] { address_match_element;
> ... };
>
> однако как в address_match_element задать 0.0.0.0 я не дошел.
> попытка сказать
> listen-on { 0.0.0.0; };
> listen-on { 255.255.255.255; };
> приводит к тому, что он запускается, но не слушает ничего.
>
> откройте мне веки (c) Н.В.Гоголь ;)
>
> PS:
> поступил совет прописать
> listen-on { any; };
> попробовал, ситуация ничем не меняется.
> слушает "все" интерфейсы, которые были активны на момент запуска,
> а не 0.0.0.0:53
>
может имеет смысл копать с сторону очереди init скриптов?
т.е. смотреть что бы bind запускался после всех интерфейсов.
--
Да здравствует то, благодаря чему мы, несмотря ни на что.(c) Задорнов
Registered Linux User #317544
Linux 2.6.24-gentoo-r5 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
next prev parent reply other threads:[~2008-06-08 17:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-08 11:42 [gentoo-user-ru] как заставить bind слушать порт без привязки к интерфейсу Denis V. Rybakov
2008-06-08 17:45 ` Mad Deer [this message]
2008-06-08 20:26 ` Denis V. Rybakov
2008-06-08 20:52 ` Alex Efros
2008-06-09 7:05 ` Peter Volkov
2008-06-09 5:22 ` [gentoo-user-ru] Re[2]: " Konstantin Astafjev
2008-06-09 14:48 ` Re[3]: " Denis V. Rybakov
2008-06-09 9:31 ` [gentoo-user-ru] Re[2]: " Leonid Eremin
2008-06-09 14:49 ` Re[3]: " Denis V. Rybakov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=484C1AAA.4090804@mail.ru \
--to=mad-deer@mail.ru \
--cc=gentoo-user-ru@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox