From: Alexander Bokovoy <a.bokovoy@sam-solutions.net>
To: community@altlinux.ru
Subject: Re: [Comm] проблема с резолвом при установленом dhcp-клиенте
Date: Sun, 30 Nov 2003 16:24:30 +0200
Message-ID: <20031130142430.GB4002@sam-solutions.net> (raw)
In-Reply-To: <3FC9FA41.3010308@mail.ru>
On Sun, Nov 30, 2003 at 05:10:09PM +0300, crux wrote:
> Столкнулся с проблемой в AltLinux Master 2.2.
> Установлен dhcp-клиент. Не разрешаются доменные имена.
>
> $ ping mydomain.ru
> ping: unknown host mydomain.ru
>
> Проблема, как я понял в том, что файлы конфигурации resolv.conf, hosts,
> nsswitch.conf (и другие) копируются в чрут-окружение /var/resolv при
> каждой загрузке системы, но _до_ того как dhcp-клиент получит все
> необходимые параметры (в том числе адреса dns-серверов).
> Собственно, как синхронизировать изменения в системных файлах с
> чрут-окружением понятно: /sbin/update_chrooted conf
> Вопрос в том, что получается не предусмотрели разработчики, что человек
> мог поставить dhcp-клиента...
В Сизифе эта проблема уже разрешена.
Что можно сделать:
1. Проверьте, имеет ли /etc/sysconfig/network-scripts/ifup-post следующие
строчки в конце скрипта:
IFUP_LOCAL=/usr/local/sbin/ifup-local
if [ -x "$IFUP_LOCAL" ]; then
"$IFUP_LOCAL" "$DEVICE"
fi
2. Если нет, добавьте их
3. Поместите в /usr/local/sbin/ifup-local скрипт следующего содержания:
#!/bin/sh
/usr/sbin/update_chrooted all
Не забудьте сделать его исполняемым.
Аналогичное можно проделать и с /etc/sysconfig/network-scripts/ifdown-post
--
/ Alexander Bokovoy
Samba Team http://www.samba.org/
ALT Linux Team http://www.altlinux.org/
Midgard Project Ry http://www.midgard-project.org/
prev parent reply other threads:[~2003-11-30 14:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-30 14:10 crux
2003-11-30 14:24 ` Alexander Bokovoy [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=20031130142430.GB4002@sam-solutions.net \
--to=a.bokovoy@sam-solutions.net \
--cc=community@altlinux.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