ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Alexey I. Froloff" <raorn@altlinux.ru>
To: Mailing list for ALT Linux users <community@lists.altlinux.org>
Subject: Re: [Comm] ноут и разные профили подключения к сети
Date: Fri, 7 Nov 2008 20:51:45 +0300
Message-ID: <20081107175145.GC27961@altlinux.org> (raw)
In-Reply-To: <6c7be88d0811070101o76f7db73t7263f9b3c445182c@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 856 bytes --]

* Dmitriy Kruglikov <dmitriy.kruglikov@> [081107 12:17]:
> > Я только не понял, куда адрес сервера DNS прописывать для каждого профиля?
> А адрес пишется в /etc/resolv.conf ...
> > Вот только как быть с DNS мне пока не ясно.
> Ну, в качестве кустарного решения могу предложить создать нужное кол-тво
> этих самых resolv.conf#profile_name,
> а в скриптах ifup|ifdown подставлять симлинком resolv.conf на нужный ...
> Если кто-нибудь скажет, что это криво, я соглашусь, но это будет работать :)
Это действительно криво ;-)

$ grep resolv.conf /etc/net/scripts/ifup-common
MYRESOLVCONF=`profiled_filename $MYIFACEDIR/resolv.conf`
        rm -f /etc/resolv.conf
        cp $MYRESOLVCONF /etc/resolv.conf

Создаются /etc/net/ifaces/*/resolv.conf#PROFILENAME, которые
автомагически будут копироваться Куда Надо(tm).

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2008-11-07 17:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-06  4:27 Denis G. Samsonenko
2008-11-06  8:47 ` Денис Ягофаров
2008-11-06 14:48   ` Denis G. Samsonenko
2008-11-06 14:54     ` Dmitriy Kruglikov
2008-11-06 19:29       ` Denis G. Samsonenko
2008-11-07  9:01         ` Dmitriy Kruglikov
2008-11-07 13:16           ` Denis G. Samsonenko
2008-11-07 14:14             ` Dmitriy Kruglikov
2008-11-07 17:51           ` Alexey I. Froloff [this message]
2008-11-07 19:06             ` Denis G. Samsonenko
2008-11-07 19:38               ` Alexey I. Froloff
2008-11-08 15:52                 ` Denis G. Samsonenko
2008-11-08 16:48                   ` Alexey I. Froloff
2008-11-08 18:59                     ` Denis G. Samsonenko
2008-11-08  7:11             ` Dmitriy Kruglikov
2008-11-08 12:27               ` Alexey I. Froloff
2008-11-06 12:20 ` apicultor
2008-11-06 12:41   ` Denis G. Samsonenko

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=20081107175145.GC27961@altlinux.org \
    --to=raorn@altlinux.ru \
    --cc=community@lists.altlinux.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

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