ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Как настраивать ДНС?
@ 2014-10-21 17:26 Alexei V. Mezin
  2014-10-22 12:28 ` Mikhail Efremov
  0 siblings, 1 reply; 3+ messages in thread
From: Alexei V. Mezin @ 2014-10-21 17:26 UTC (permalink / raw)
  To: sisyphus

Домашний стационарный компьютер. Получает настройки сети по DHCP с 
подстольного сервера. Если все нормально, то

[alexei@bigbear etc]$ cat /etc/resolv.conf
# Generated by resolvconf
# Do not edit manually, use
# /etc/net/ifaces/<interface>/resolv.conf instead.
domain localdomain
nameserver 192.168.0.254

Что соответствует ожиданиям. Никаких дополнительных настроек в /e/n/i/ нету.

Однако, если сделать service network restart, то получается

nameserver localhost

и сеть, естественно, не работает. ЧЯДНТ? Как теперь правильно 
перезапускать сеть чтоб она работала?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] Как настраивать ДНС?
  2014-10-21 17:26 [sisyphus] Как настраивать ДНС? Alexei V. Mezin
@ 2014-10-22 12:28 ` Mikhail Efremov
  2014-10-22 18:44   ` Alexei V. Mezin
  0 siblings, 1 reply; 3+ messages in thread
From: Mikhail Efremov @ 2014-10-22 12:28 UTC (permalink / raw)
  To: sisyphus

On Tue, 21 Oct 2014 21:26:39 +0400 Alexei V. Mezin wrote:
> Домашний стационарный компьютер. Получает настройки сети по DHCP с 
> подстольного сервера. Если все нормально, то
> 
> [alexei@bigbear etc]$ cat /etc/resolv.conf
> # Generated by resolvconf
> # Do not edit manually, use
> # /etc/net/ifaces/<interface>/resolv.conf instead.
> domain localdomain
> nameserver 192.168.0.254
> 
> Что соответствует ожиданиям. Никаких дополнительных настроек в /e/n/i/ нету.
> 
> Однако, если сделать service network restart, то получается

При использовании systemd /etc/net/ifaces/lo/ во время загрузки не
отрабатывает совсем. А вот при service network restart отрабатывает,
отсюда и разница.

> nameserver localhost

Что, прям вот так и написано? Даже не 127.0.0.1?

> и сеть, естественно, не работает. ЧЯДНТ? Как теперь правильно 
> перезапускать сеть чтоб она работала?

Смотрите есть ли /etc/net/ifaces/lo/resolv.conf и что в нем.
А вообще resolvconf -l расскажет все подробно.

-- 
WBR, Mikhail Efremov


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] Как настраивать ДНС?
  2014-10-22 12:28 ` Mikhail Efremov
@ 2014-10-22 18:44   ` Alexei V. Mezin
  0 siblings, 0 replies; 3+ messages in thread
From: Alexei V. Mezin @ 2014-10-22 18:44 UTC (permalink / raw)
  To: sisyphus

22.10.2014 16:28, Mikhail Efremov пишет:

> Смотрите есть ли /etc/net/ifaces/lo/resolv.conf и что в нем.

Да, именно он все портил.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-10-22 18:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-21 17:26 [sisyphus] Как настраивать ДНС? Alexei V. Mezin
2014-10-22 12:28 ` Mikhail Efremov
2014-10-22 18:44   ` Alexei V. Mezin

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