From: Mikhail Efremov <sem@altlinux.org> To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org> Subject: Re: [sisyphus] etcnet, VPN и DNSы для конкретных доменов Date: Thu, 18 Nov 2021 15:40:00 +0300 Message-ID: <20211118154000.310e96c3@sem-notebook.localdomain> (raw) In-Reply-To: <sn5gla$lu7$1@ciao.gmane.io> On Thu, 18 Nov 2021 15:24:27 +0300 Alexei Mezin wrote: > 18.11.2021 15:10, Sergey пишет: > > > Значит ставить себе локально Bind. Там можно что-то вроде > > Так в системе уже локально стоит systemd-resolved, который с задачей > справляется отлично. Не справляется механизм, который добавляет/удаляет > ДНС при подключении/отключении VPN. Точнее, я с ним не справляюсь :( > Кстати, dnsmasq тоже умеет все нужное, и полегче bind'а. Я для точно такой же задачи использую dnsmasq, ну и просто вызываю resolvconf в ifup-post vpn-интерфейса: /sbin/resolvconf -p -a "$1" <<EOF domain <work_domain> nameserver <ns1> nameserver <ns2> EOF Ну и удаляю в ifdow-post: /sbin/resolvconf -fd "$1" -- WBR, Mikhail Efremov
next prev parent reply other threads:[~2021-11-18 12:40 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-16 23:41 Alexei V. Mezin 2021-11-18 9:09 ` Sergey 2021-11-18 9:18 ` Alexei Mezin 2021-11-18 12:10 ` Sergey 2021-11-18 12:24 ` Alexei Mezin 2021-11-18 12:33 ` Sergey 2021-11-18 12:48 ` Alexei Mezin 2021-11-18 13:21 ` Sergey 2021-11-18 12:40 ` Mikhail Efremov [this message] 2021-11-18 21:56 ` Alexei V. Mezin
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=20211118154000.310e96c3@sem-notebook.localdomain \ --to=sem@altlinux.org \ --cc=sisyphus@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 Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git