From: "Dmitry V. Levin" <ldv@fandra.org>
To: Linux-Mandrake Russian Edition Mailing List
<mandrake-russian@linuxteam.iplabs.ru>
Subject: Re: [mdk-re] My sami ne mestnye...
Date: Thu Mar 1 02:15:29 2001
Message-ID: <20010228205140.D13952@LDV.fandra.org> (raw)
In-Reply-To: <621474833.20010228104312@mailru.com>; from suralis@mailru.com on Wed, Feb 28, 2001 at 10:43:12AM +0300
[-- Attachment #1: Type: text/plain, Size: 1700 bytes --]
On Wed, Feb 28, 2001 at 10:43:12AM +0300, suralis@mailru.com wrote:
> >> Позвольте возразить. Часто провайдер назначает DNS по DHCP (по
> >> крайней мере в моем случае это, кажется, именно так). Или я
> >> неверно понимаю установку "Получить DNS автоматически"?
>
> m> Вообще-то, в pppd есть аналог "Получить DNS автоматически" -
> m> см.опцию usepeerdns, впоне нормально цепляет DNS, предлагаемые
> m> провайдером, их адреса можно увидеть в /var/log/messages
>
> Вчера после добавления 'nameserver 127.0.0.1' в resolv.conf вроде
> бы все заработало через кэширующий named. А есть ли смысл при
> этом использовать usepeerdns, или кроме вреда -- никакого?
Неплохо бы настроить Ваш caching nameserver как "forward only", при этом
forwarders брать из ответа на "usepeerdns".
Например, часть моего файла /etc/ppp/ip-up.local выглядит так:
if [ -n "$DNS1" -o -n "$DNS2" ]; then
fw="${DNS1:+$DNS1;}${DNS2:+$DNS2;}"
perl -pi -e 's/^(\s*forwarders\s*\{).*\};$/$1 '$fw' };/' /var/lib/named-root/etc/named.conf
/usr/sbin/ndc reload
fi
Соответственно, часть /etc/ppp/ip-down.local выглядит так:
perl -pi -e 's/^(\s*forwarders\s*\{).*\};$/$1 };/' /var/lib/named-root/etc/named.conf
/usr/sbin/ndc reload
Читайте документацию по DNS - хуже не будет. :)
Regards,
Dmitry
+-------------------------------------------------------------------------+
Dmitry V. Levin mailto://ldv@fandra.org
Software Engineer PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html
IPLabs Linux Team http://linux.iplabs.ru
Fandra Project http://www.fandra.org
+-------------------------------------------------------------------------+
UNIX is user friendly. It's just very selective about who its friends are.
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
prev parent reply other threads:[~2001-03-01 2:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-27 18:16 Roman S
2001-02-27 23:18 ` Re[2]: " suralis
2001-02-28 7:41 ` madKOT
2001-02-28 11:12 ` Re[2]: " suralis
2001-02-28 12:06 ` Dmitry Dmitriev
2001-02-28 19:17 ` Re[4]: " Serge Skorokhodov
2001-03-01 3:18 ` Dmitry Dmitriev
2001-03-01 2:15 ` Dmitry V. Levin [this message]
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=20010228205140.D13952@LDV.fandra.org \
--to=ldv@fandra.org \
--cc=mandrake-russian@linuxteam.iplabs.ru \
/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
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git