From: Leonid Eremin <leon.programmer@gmail.com>
To: Mad Deer <gentoo-user-ru@lists.gentoo.org>
Subject: [gentoo-user-ru] Re[2]: [gentoo-user-ru] как заставить bind слушать порт без привязки к интерфейсу
Date: Mon, 9 Jun 2008 13:31:10 +0400 [thread overview]
Message-ID: <1737810128.20080609133110@gmail.com> (raw)
In-Reply-To: <484C1AAA.4090804@mail.ru>
Hello, Mad.
А что если сказать:
listen-on { 0.0.0.0; }
не катит?
You wrote 8 июня 2008 г., 21:45:14:
> 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 запускался после всех интерфейсов.
--
С уважением,
,,,,
/'^'\
( o o )
--oOOO--(_)--OOOo------------------------------------------------
| Leonid Eremin
| Email: Leon.Programmer@gmail.com
| WWW: zlo.homeftp.org
| .oooO mailto:Leon.Programmer@gmail.com
| ( ) Oooo.
---\ (----( )-------------------------------------------------
\_) ) /
(_/
next prev parent reply other threads:[~2008-06-09 9:31 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
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 ` Leonid Eremin [this message]
2008-06-09 14:49 ` 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=1737810128.20080609133110@gmail.com \
--to=leon.programmer@gmail.com \
--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