<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Linux Forum &mdash; CentOS + OpenVZ. Проблема с DNS на виртуалке.]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=14945</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=14945&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «CentOS + OpenVZ. Проблема с DNS на виртуалке.».]]></description>
		<lastBuildDate>Thu, 07 Jul 2011 11:04:33 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: CentOS + OpenVZ. Проблема с DNS на виртуалке.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=193388#p193388</link>
			<description><![CDATA[<p>Решил проблему перенастроив самостоятельно IPTABLES. Делал это в первый раз, поэтому укажите, пожалуйста, на косяки, если они имеются:<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">[root@localhost ~]# iptables -L<br />Chain INPUT (policy DROP)<br />target&nbsp; &nbsp; &nbsp;prot opt source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destination<br />ACCEPT&nbsp; &nbsp; &nbsp;tcp&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp dpt:ssh<br />ACCEPT&nbsp; &nbsp; &nbsp;icmp --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere<br />ACCEPT&nbsp; &nbsp; &nbsp;tcp&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp spt:domain<br />ACCEPT&nbsp; &nbsp; &nbsp;udp&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; udp spt:domain<br />ACCEPT&nbsp; &nbsp; &nbsp;all&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; state RELATED,ESTABLISHED</p><p>Chain FORWARD (policy DROP)<br />target&nbsp; &nbsp; &nbsp;prot opt source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destination<br />ACCEPT&nbsp; &nbsp; &nbsp;icmp --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere<br />ACCEPT&nbsp; &nbsp; &nbsp;udp&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; udp spt:domain<br />ACCEPT&nbsp; &nbsp; &nbsp;udp&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; udp dpt:domain<br />ACCEPT&nbsp; &nbsp; &nbsp;all&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; state RELATED,ESTABLISHED<br />ACCEPT&nbsp; &nbsp; &nbsp;tcp&nbsp; --&nbsp; 192.168.3.0/24&nbsp; &nbsp; &nbsp; &nbsp;anywhere</p><p>Chain OUTPUT (policy ACCEPT)<br />target&nbsp; &nbsp; &nbsp;prot opt source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destination<br /></div></p>]]></description>
			<author><![CDATA[null@example.com (TrUnK)]]></author>
			<pubDate>Thu, 07 Jul 2011 11:04:33 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=193388#p193388</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS + OpenVZ. Проблема с DNS на виртуалке.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=193357#p193357</link>
			<description><![CDATA[<p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">[root@localhost ~]# iptables --list<br />Chain INPUT (policy ACCEPT)<br />target&nbsp; &nbsp; &nbsp;prot opt source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destination<br />RH-Firewall-1-INPUT&nbsp; all&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere<br />ACCEPT&nbsp; &nbsp; &nbsp;udp&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; multiport dports domain<br />ACCEPT&nbsp; &nbsp; &nbsp;tcp&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; multiport dports domain<br />ACCEPT&nbsp; &nbsp; &nbsp;all&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; state RELATED,ESTABLISHED</p><p>Chain FORWARD (policy ACCEPT)<br />target&nbsp; &nbsp; &nbsp;prot opt source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destination<br />RH-Firewall-1-INPUT&nbsp; all&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere</p><p>Chain OUTPUT (policy ACCEPT)<br />target&nbsp; &nbsp; &nbsp;prot opt source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destination<br />ACCEPT&nbsp; &nbsp; &nbsp;all&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; state RELATED,ESTABLISHED</p><p>Chain RH-Firewall-1-INPUT (2 references)<br />target&nbsp; &nbsp; &nbsp;prot opt source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destination<br />ACCEPT&nbsp; &nbsp; &nbsp;all&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere<br />ACCEPT&nbsp; &nbsp; &nbsp;icmp --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; icmp any<br />ACCEPT&nbsp; &nbsp; &nbsp;esp&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere<br />ACCEPT&nbsp; &nbsp; &nbsp;ah&nbsp; &nbsp;--&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere<br />ACCEPT&nbsp; &nbsp; &nbsp;udp&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;224.0.0.251&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;udp dpt:mdns<br />ACCEPT&nbsp; &nbsp; &nbsp;udp&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; udp dpt:ipp<br />ACCEPT&nbsp; &nbsp; &nbsp;tcp&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp dpt:ipp<br />ACCEPT&nbsp; &nbsp; &nbsp;all&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; state RELATED,ESTABLISHED<br />ACCEPT&nbsp; &nbsp; &nbsp;tcp&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; state NEW tcp dpt:ssh<br />REJECT&nbsp; &nbsp; &nbsp;all&nbsp; --&nbsp; anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;anywhere&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reject-with icmp-host-prohibited<br />[root@localhost ~]# vzctl enter 101<br />entered into CT 101<br />[root@server101 /]# ping ya.ru<br />ping: unknown host ya.ru<br /></div></p><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">[root@localhost ~]# iptables --flush<br />[root@localhost ~]# vzctl enter 101<br />entered into CT 101<br />[root@server101 /]# ping ya.ru<br />PING ya.ru (77.88.21.3) 56(84) bytes of data.<br />64 bytes from <a href="http://www.yandex.ru">www.yandex.ru</a> (77.88.21.3): icmp_seq=1 ttl=53 time=13.4 ms<br />64 bytes from <a href="http://www.yandex.ru">www.yandex.ru</a> (77.88.21.3): icmp_seq=2 ttl=53 time=14.1 ms</p><p>--- ya.ru ping statistics ---<br />2 packets transmitted, 2 received, 0% packet loss, time 1000ms<br />rtt min/avg/max/mdev = 13.496/13.805/14.114/0.309 ms<br /></div></p>]]></description>
			<author><![CDATA[null@example.com (TrUnK)]]></author>
			<pubDate>Thu, 07 Jul 2011 09:38:59 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=193357#p193357</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS + OpenVZ. Проблема с DNS на виртуалке.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=193348#p193348</link>
			<description><![CDATA[<p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br />/sbin/iptables -A INPUT -i eth0 -p udp -m multiport --dport 53,67,68 -j ACCEPT<br />/sbin/iptables -A INPUT -i eth0 -p tcp -m multiport --dport 53,67,68 -j ACCEPT</div><br />67 и 68 это DHCP, если не используется то можно убрать<br />этих двух строчек достаточно при<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br />/sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT<br />/sbin/iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT<br /></div></p>]]></description>
			<author><![CDATA[null@example.com (Vadimsky)]]></author>
			<pubDate>Thu, 07 Jul 2011 09:22:39 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=193348#p193348</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS + OpenVZ. Проблема с DNS на виртуалке.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=193313#p193313</link>
			<description><![CDATA[<div class="quotebox"><cite>Ka3aH6ac пишет:</cite><blockquote><p>Может фаервол блокирует ДНС запросы.</p></blockquote></div><p>Спасибо. на родительской машине блокировало. <br />Помогло - iptables --flush.</p><p>Подскажите какое нужно правилов чтобы без --flush все работало.</p>]]></description>
			<author><![CDATA[null@example.com (TrUnK)]]></author>
			<pubDate>Thu, 07 Jul 2011 08:07:14 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=193313#p193313</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS + OpenVZ. Проблема с DNS на виртуалке.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=193282#p193282</link>
			<description><![CDATA[<div class="quotebox"><cite>Ka3aH6ac пишет:</cite><blockquote><p>Может фаервол блокирует ДНС запросы.</p></blockquote></div><p>Извините, но я не знаю как это проверить.</p>]]></description>
			<author><![CDATA[null@example.com (TrUnK)]]></author>
			<pubDate>Thu, 07 Jul 2011 07:10:05 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=193282#p193282</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS + OpenVZ. Проблема с DNS на виртуалке.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=193280#p193280</link>
			<description><![CDATA[<p>[root@server101 /]# ping ya.ru<br />ping: unknown host ya.ru<br />[root@server101 /]# cat /etc/resolv.conf<br />nameserver 8.8.8.8</p>]]></description>
			<author><![CDATA[null@example.com (TrUnK)]]></author>
			<pubDate>Thu, 07 Jul 2011 07:08:19 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=193280#p193280</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS + OpenVZ. Проблема с DNS на виртуалке.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=193277#p193277</link>
			<description><![CDATA[<p>Может фаервол блокирует ДНС запросы.</p>]]></description>
			<author><![CDATA[null@example.com (AlfaStriker)]]></author>
			<pubDate>Thu, 07 Jul 2011 07:04:49 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=193277#p193277</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS + OpenVZ. Проблема с DNS на виртуалке.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=193276#p193276</link>
			<description><![CDATA[<p>8.8.8.8 прописывал?</p>]]></description>
			<author><![CDATA[null@example.com (Vascom)]]></author>
			<pubDate>Thu, 07 Jul 2011 07:01:22 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=193276#p193276</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS + OpenVZ. Проблема с DNS на виртуалке.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=193275#p193275</link>
			<description><![CDATA[<p>Да. пробовал прописывать разные ДНС.</p>]]></description>
			<author><![CDATA[null@example.com (TrUnK)]]></author>
			<pubDate>Thu, 07 Jul 2011 06:59:54 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=193275#p193275</guid>
		</item>
		<item>
			<title><![CDATA[Re: CentOS + OpenVZ. Проблема с DNS на виртуалке.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=193229#p193229</link>
			<description><![CDATA[<p>А на 192.168.3.1 поднят DNS?</p>]]></description>
			<author><![CDATA[null@example.com (Vascom)]]></author>
			<pubDate>Thu, 07 Jul 2011 05:53:10 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=193229#p193229</guid>
		</item>
		<item>
			<title><![CDATA[CentOS + OpenVZ. Проблема с DNS на виртуалке.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=193195#p193195</link>
			<description><![CDATA[<p>Здравствуйте! Прошу помощи.<br />Установил CentOS + OpenVZ. В ней с интернетом все впорядке.<br />1. Создал виртуалку:<br />vzctl create 101 --ostemplate centos-5-x86_64 --config basic<br />vzctl set 101 --hostname server101 --save <br />vzctl set 101 --ipadd 192.168.3.101 --save<br />vzctl set 101 --numothersock 120 --save <br />vzctl set 101 --nameserver 192.168.3.1 --save</p><p>И когда захожу в нее (vzctl enter 101) у меня не работает интернет.<br />Если быть точнее - не разрешается IP адрес по доменному имени.<br />По IP все пингуется.<br />в resolv.conf лежит &quot;nameserver 192.168.3.1&quot;<br />dig тоже ничего не выдает.</p><p>Не знаю с чем может быть проблема.</p><p>2. Мне потребуется много одинаковых виртуалок, можно ли их каким-то образом копировать?</p>]]></description>
			<author><![CDATA[null@example.com (TrUnK)]]></author>
			<pubDate>Wed, 06 Jul 2011 22:13:35 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=193195#p193195</guid>
		</item>
	</channel>
</rss>
