<?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; Два вопроса по dnsmasq]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=21806</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=21806&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Два вопроса по dnsmasq».]]></description>
		<lastBuildDate>Mon, 23 Apr 2012 04:00:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Два вопроса по dnsmasq]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=270253#p270253</link>
			<description><![CDATA[<p>Привет всем. <br />Существует вот такая вот проблема. </p><p>Есть 1 компьютер шлюз. <br />Имеет два интерфейса на первый приходит инет eth0: 10.4.1.25; <br />Второй раздает локальную сеть по dncp(10.5.1.2-10.5.1.254) на машины eth1 : 10.5.1.1;<br />Так же данный шлюз является dns сервером.&nbsp; установлен dnsmasq. <br />DNSMASQ берет значения ip - имя из файла /etc/hosts&nbsp; (пример см. ниже)</p><p>Все локальные машины пингуют , по ip и dns(коротким или полным именам) как сам шлюз так и другие машины в сети (10.5.1.0/24, и 10.4.1.0/24)</p><p>Но вот какая проблема из сети 10.4.1.0/24 по ip можно достучаться до всех машины из сети 10.5.1.0/24, но по dns не как. не получается.На Шлюзе сети 10.4.1.0/24 в dns&#039;ы сервера добавлен&nbsp; 10.5.1.1; но не фига не работает. Кто нибудь сталкивался с такой проблемой?</p><br /><p>А да чуть не забыл у получается в dns выглядят так&nbsp; test.org(пример)<br />на машине 10.5.1.1&nbsp; &nbsp;test2.test.ru. Машины в этой сети&nbsp; gateway.test2.test.ru comp1.test2.test.ru comp2.test2.test.ru</p><p>/etc/hosts <br />127.0.0.1&nbsp; &nbsp; &nbsp; localhost<br />10.5.1.1&nbsp; &nbsp; &nbsp; &nbsp; gateway <br />10.5.1.2&nbsp; &nbsp; &nbsp; &nbsp; comp1<br />10.5.1.3&nbsp; &nbsp; &nbsp; &nbsp; comp2</p><br /><p>/etc/dnsmasq.conf<br />log-facility=/var/log/dnsmasq.log<br />bogus-priv<br />strict-order<br />bind-interfaces<br />all-servers<br />stop-dns-rebind</p><p>expand-hosts<br />domain=test2.test.ru</p>]]></description>
			<author><![CDATA[null@example.com (mons)]]></author>
			<pubDate>Mon, 23 Apr 2012 04:00:04 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=270253#p270253</guid>
		</item>
	</channel>
</rss>
