<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
					xmlns:content="http://purl.org/rss/1.0/modules/content/"
					xmlns:wfw="http://wellformedweb.org/CommentAPI/"
					xmlns:atom="http://www.w3.org/2005/Atom"
				  >
<channel>
<atom:link rel="self"  type="application/rss+xml"  href="http://rulinux.net/rss_from_sect_4_subsect_3_thread_43031"  />
<title>rulinux.net - Форум - Admin - lede + dnsmasq - чот не соображу почему не резолвится имя вышестоящего роутыря</title>
<link>http://rulinux.net/</link>
<description><![CDATA[Портал о GNU/Linux и не только]]></description>
<image><title>rulinux.net - Форум - Admin - lede + dnsmasq - чот не соображу почему не резолвится имя вышестоящего роутыря</title>
<link>http://rulinux.net/</link>
<url>http://rulinux.net/rss_icon.png</url>
</image>
<item>
<title>Re:lede + dnsmasq - чот не соображу почему не резолвится имя вышестоящего роутыря</title>
<link>https://rulinux.net/message.php?newsid=43031&amp;page=1#221654</link>
<guid>https://rulinux.net/message.php?newsid=43031&amp;page=1#221654</guid>
<pubDate>Mon, 13 Nov 2017 21:29:09 +0300</pubDate>
<description><![CDATA[<p>Роутер Tp-Link прошитый на lede, так же известную как openwrt. Стремно как-то провайдерский модем прямо к локалке подключать - вот стоит опенсорсное решение между моей сеткой и провайдерской.</p>]]></description>
</item>
<item>
<title>Re:lede + dnsmasq - чот не соображу почему не резолвится имя вышестоящего роутыря</title>
<link>https://rulinux.net/message.php?newsid=43031&amp;page=1#221653</link>
<guid>https://rulinux.net/message.php?newsid=43031&amp;page=1#221653</guid>
<pubDate>Mon, 13 Nov 2017 15:45:51 +0300</pubDate>
<description><![CDATA[<p><i>> Lede-based коробочка,</i><br> wtf?</p>]]></description>
</item>
<item>
<title>Re:lede + dnsmasq - чот не соображу почему не резолвится имя вышестоящего роутыря</title>
<link>https://rulinux.net/message.php?newsid=43031&amp;page=1#221648</link>
<guid>https://rulinux.net/message.php?newsid=43031&amp;page=1#221648</guid>
<pubDate>Sun, 12 Nov 2017 19:11:45 +0300</pubDate>
<description><![CDATA[<p>Так, ещё интереснее, запросы на фрица от внутреннего роутера приходят и он ему отвечает такое:

<fieldset><legend>bash</legend><div class="highlight bash"><br />
Frame 1543: 115 bytes on wire <span class="br0">&#40;</span>920 bits<span class="br0">&#41;</span>, 115 bytes captured <span class="br0">&#40;</span>920 bits<span class="br0">&#41;</span><br />
&nbsp; &nbsp; Encapsulation <span class="kw3">type</span>: Ethernet <span class="br0">&#40;</span>1<span class="br0">&#41;</span><br />
&nbsp; &nbsp; Arrival Time: Nov 12, 2017 18:42:39.537536000 GMT<br />
&nbsp; &nbsp; <span class="br0">&#91;</span>Time <span class="kw3">shift</span> <span class="kw1">for</span> this packet: 0.000000000 seconds<span class="br0">&#93;</span><br />
&nbsp; &nbsp; Epoch Time: 1510512159.537536000 seconds<br />
&nbsp; &nbsp; <span class="br0">&#91;</span>Time delta from previous captured frame: 0.000493000 seconds<span class="br0">&#93;</span><br />
&nbsp; &nbsp; <span class="br0">&#91;</span>Time delta from previous displayed frame: 0.000493000 seconds<span class="br0">&#93;</span><br />
&nbsp; &nbsp; <span class="br0">&#91;</span>Time since reference or first frame: 23.432340000 seconds<span class="br0">&#93;</span><br />
&nbsp; &nbsp; Frame Number: 1543<br />
&nbsp; &nbsp; Frame Length: 115 bytes <span class="br0">&#40;</span>920 bits<span class="br0">&#41;</span><br />
&nbsp; &nbsp; Capture Length: 115 bytes <span class="br0">&#40;</span>920 bits<span class="br0">&#41;</span><br />
&nbsp; &nbsp; <span class="br0">&#91;</span>Frame is marked: False<span class="br0">&#93;</span><br />
&nbsp; &nbsp; <span class="br0">&#91;</span>Frame is ignored: False<span class="br0">&#93;</span><br />
&nbsp; &nbsp; <span class="br0">&#91;</span>Protocols <span class="kw1">in</span> frame: eth:ethertype:ip:udp:dns<span class="br0">&#93;</span><br />
&nbsp; &nbsp; <span class="br0">&#91;</span>Coloring Rule Name: UDP<span class="br0">&#93;</span><br />
&nbsp; &nbsp; <span class="br0">&#91;</span>Coloring Rule String: udp<span class="br0">&#93;</span><br />
Ethernet II, Src: AvmAudio_33:82:<span class="kw3">cd</span> <span class="br0">&#40;</span>e8:<span class="kw2">df</span>:70:33:82:<span class="kw3">cd</span><span class="br0">&#41;</span>, Dst: Tp-LinkT_16:bd:e7 <span class="br0">&#40;</span>00:23:<span class="kw3">cd</span>:16:bd:e7<span class="br0">&#41;</span><br />
&nbsp; &nbsp; Destination: Tp-LinkT_16:bd:e7 <span class="br0">&#40;</span>00:23:<span class="kw3">cd</span>:16:bd:e7<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; Address: Tp-LinkT_16:bd:e7 <span class="br0">&#40;</span>00:23:<span class="kw3">cd</span>:16:bd:e7<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; .... ..0. .... .... .... .... = LG bit: Globally unique address <span class="br0">&#40;</span>factory default<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; .... ...0 .... .... .... .... = IG bit: Individual address <span class="br0">&#40;</span>unicast<span class="br0">&#41;</span><br />
&nbsp; &nbsp; Source: AvmAudio_33:82:<span class="kw3">cd</span> <span class="br0">&#40;</span>e8:<span class="kw2">df</span>:70:33:82:<span class="kw3">cd</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; Address: AvmAudio_33:82:<span class="kw3">cd</span> <span class="br0">&#40;</span>e8:<span class="kw2">df</span>:70:33:82:<span class="kw3">cd</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; .... ..0. .... .... .... .... = LG bit: Globally unique address <span class="br0">&#40;</span>factory default<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; .... ...0 .... .... .... .... = IG bit: Individual address <span class="br0">&#40;</span>unicast<span class="br0">&#41;</span><br />
&nbsp; &nbsp; Type: IPv4 <span class="br0">&#40;</span>0x0800<span class="br0">&#41;</span><br />
Internet Protocol Version 4, Src: 192.168.178.1, Dst: 192.168.178.2<br />
&nbsp; &nbsp; 0100 .... = Version: 4<br />
&nbsp; &nbsp; .... 0101 = Header Length: 20 bytes <span class="br0">&#40;</span>5<span class="br0">&#41;</span><br />
&nbsp; &nbsp; Differentiated Services Field: 0x00 <span class="br0">&#40;</span>DSCP: CS0, ECN: Not-ECT<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; 0000 00.. = Differentiated Services Codepoint: Default <span class="br0">&#40;</span>0<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; .... ..00 = Explicit Congestion Notification: Not ECN-Capable Transport <span class="br0">&#40;</span>0<span class="br0">&#41;</span><br />
&nbsp; &nbsp; Total Length: 101<br />
&nbsp; &nbsp; Identification: 0x21e2 <span class="br0">&#40;</span>8674<span class="br0">&#41;</span><br />
&nbsp; &nbsp; Flags: 0x00<br />
&nbsp; &nbsp; &nbsp; &nbsp; 0... .... = Reserved bit: Not <span class="kw1">set</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; .0.. .... = Don<span class="st_h">'t fragment: Not set<br />
&nbsp; &nbsp; &nbsp; &nbsp; ..0. .... = More fragments: Not set<br />
&nbsp; &nbsp; Fragment offset: 0<br />
&nbsp; &nbsp; Time to live: 64<br />
&nbsp; &nbsp; Protocol: UDP (17)<br />
&nbsp; &nbsp; Header checksum: 0x7351 [validation disabled]<br />
&nbsp; &nbsp; [Header checksum status: Unverified]<br />
&nbsp; &nbsp; Source: 192.168.178.1<br />
&nbsp; &nbsp; Destination: 192.168.178.2<br />
&nbsp; &nbsp; [Source GeoIP: Unknown]<br />
&nbsp; &nbsp; [Destination GeoIP: Unknown]<br />
User Datagram Protocol, Src Port: 53, Dst Port: 56002<br />
&nbsp; &nbsp; Source Port: 53<br />
&nbsp; &nbsp; Destination Port: 56002<br />
&nbsp; &nbsp; Length: 81<br />
&nbsp; &nbsp; Checksum: 0xe5b7 [unverified]<br />
&nbsp; &nbsp; [Checksum Status: Unverified]<br />
&nbsp; &nbsp; [Stream index: 134]<br />
Domain Name System (response)<br />
&nbsp; &nbsp; [Request In: 1542]<br />
&nbsp; &nbsp; [Time: 0.000493000 seconds]<br />
&nbsp; &nbsp; Transaction ID: 0x52b0<br />
&nbsp; &nbsp; Flags: 0x8580 Standard query response, No error<br />
&nbsp; &nbsp; &nbsp; &nbsp; 1... .... .... .... = Response: Message is a response<br />
&nbsp; &nbsp; &nbsp; &nbsp; .000 0... .... .... = Opcode: Standard query (0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; .... .1.. .... .... = Authoritative: Server is an authority for domain<br />
&nbsp; &nbsp; &nbsp; &nbsp; .... ..0. .... .... = Truncated: Message is not truncated<br />
&nbsp; &nbsp; &nbsp; &nbsp; .... ...1 .... .... = Recursion desired: Do query recursively<br />
&nbsp; &nbsp; &nbsp; &nbsp; .... .... 1... .... = Recursion available: Server can do recursive queries<br />
&nbsp; &nbsp; &nbsp; &nbsp; .... .... .0.. .... = Z: reserved (0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; .... .... ..0. .... = Answer authenticated: Answer/authority portion was not authenticated by the server<br />
&nbsp; &nbsp; &nbsp; &nbsp; .... .... ...0 .... = Non-authenticated data: Unacceptable<br />
&nbsp; &nbsp; &nbsp; &nbsp; .... .... .... 0000 = Reply code: No error (0)<br />
&nbsp; &nbsp; Questions: 1<br />
&nbsp; &nbsp; Answer RRs: 1<br />
&nbsp; &nbsp; Authority RRs: 1<br />
&nbsp; &nbsp; Additional RRs: 1<br />
&nbsp; &nbsp; Queries<br />
&nbsp; &nbsp; &nbsp; &nbsp; fritz.box: type A, class IN<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Name: fritz.box<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [Name Length: 9]<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [Label Count: 2]<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Type: A (Host Address) (1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Class: IN (0x0001)<br />
&nbsp; &nbsp; Answers<br />
&nbsp; &nbsp; &nbsp; &nbsp; fritz.box: type A, class IN, addr 192.168.178.1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Name: fritz.box<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Type: A (Host Address) (1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Class: IN (0x0001)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Time to live: 9<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Data length: 4<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Address: 192.168.178.1<br />
&nbsp; &nbsp; Authoritative nameservers<br />
&nbsp; &nbsp; &nbsp; &nbsp; fritz.box: type NS, class IN, ns fritz.box<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Name: fritz.box<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Type: NS (authoritative Name Server) (2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Class: IN (0x0001)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Time to live: 9<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Data length: 2<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Name Server: fritz.box<br />
&nbsp; &nbsp; Additional records<br />
&nbsp; &nbsp; &nbsp; &nbsp; fritz.box: type A, class IN, addr 192.168.178.1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Name: fritz.box<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Type: A (Host Address) (1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Class: IN (0x0001)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Time to live: 9<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Data length: 4<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Address: 192.168.178.1<br />
</span></div></fieldset>

... но нифига не резолвится.</p>]]></description>
</item>
<item>
<title>lede + dnsmasq - чот не соображу почему не резолвится имя вышестоящего роутыря</title>
<link>https://rulinux.net/message.php?newsid=43031&amp;page=1#221630</link>
<guid>https://rulinux.net/message.php?newsid=43031&amp;page=1#221630</guid>
<pubDate>Fri, 10 Nov 2017 18:21:14 +0300</pubDate>
<description><![CDATA[<p>Дано:
<br>
1. Интернет раздаёт провайдерский роутер, откликающийся на сетевое имя fritz.box. В сторону локалки он торчит адресом 192.168.178.1
<br>
2. Между собственно локалкой и вышепомянутым роутером стоит Lede-based коробочка, которая динамически получает адрес от fritz.box на wan интерфейсе, а в локалке 192.168.1.1
<br>
<br>
Раньше DHCP клиенты подключались прямо к fritz.box и этот хост вполне себе резолвился. Добавил lede-роутырь - и fritz.box не резолвится уже на нём самом (ну и на его клиентах, конечно):

<fieldset><legend>bash</legend><div class="highlight bash"><br />
<span class="co0"># nslookup fritz.box</span><br />
Server: &nbsp; &nbsp; &nbsp; &nbsp; 127.0.0.1<br />
Address: &nbsp; &nbsp; &nbsp; &nbsp;127.0.0.1<span class="co0">#53</span><br />
<br />
<span class="sy0">***</span> Can<span class="st_h">'t find fritz.box: No answer<br />
*** Can'</span>t <span class="kw2">find</span> fritz.box: No answer<br />
&nbsp;</div></fieldset>

<br>
При этом с DNS-сервера самого фрица адрес вполне себе резолвится:

<fieldset><legend>bash</legend><div class="highlight bash"><br />
<span class="co0"># nslookup fritz.box 192.168.178.1</span><br />
Server: &nbsp; &nbsp; &nbsp; &nbsp; 192.168.178.1<br />
Address: &nbsp; &nbsp; &nbsp; &nbsp;192.168.178.1<span class="co0">#53</span><br />
<br />
Name: &nbsp; &nbsp; &nbsp;fritz.box<br />
Address <span class="nu0">1</span>: 192.168.178.1<br />
<span class="sy0">***</span> Can<span class="st_h">'t find fritz.box: No answer<br />
</span></div></fieldset>

<br>
Спрашивается - откуда dnsmasq резолвит все эти адреса??
<br>
Конфиг выглядит как-то так:

<fieldset><legend>bash</legend><div class="highlight bash"><br />
<span class="co0"># cat /tmp/resolv.conf</span><br />
search homenet<br />
nameserver 127.0.0.1<br />
<br />
<span class="co0"># cat /tmp/resolv.conf.auto</span><br />
<span class="co0"># Interface wan</span><br />
nameserver 192.168.178.1<br />
search fritz.box<br />
&nbsp;</div></fieldset>


<fieldset><legend>bash</legend><div class="highlight bash"><br />
<span class="co0"># cat /etc/config/dhcp</span><br />
<br />
config dnsmasq<br />
&nbsp; &nbsp; &nbsp; &nbsp; option domainneeded <span class="st_h">'1'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option boguspriv <span class="st_h">'1'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option localise_queries <span class="st_h">'1'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option rebind_protection <span class="st_h">'1'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option rebind_localhost <span class="st_h">'1'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option <span class="kw3">local</span> <span class="st_h">'/lan/'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option expandhosts <span class="st_h">'1'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option authoritative <span class="st_h">'1'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option readethers <span class="st_h">'1'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option leasefile <span class="st_h">'/tmp/dhcp.leases'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option resolvfile <span class="st_h">'/tmp/resolv.conf.auto'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option localservice <span class="st_h">'1'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option nonwildcard <span class="st_h">'0'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option domain <span class="st_h">'homenet'</span><br />
<br />
config dhcp <span class="st_h">'lan'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option interface <span class="st_h">'lan'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option start <span class="st_h">'100'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option limit <span class="st_h">'150'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option leasetime <span class="st_h">'12h'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option dhcpv6 <span class="st_h">'server'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option ra <span class="st_h">'server'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option ra_management <span class="st_h">'1'</span><br />
<br />
config dhcp <span class="st_h">'wan'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option interface <span class="st_h">'wan'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option ignore <span class="st_h">'1'</span><br />
<br />
config odhcpd <span class="st_h">'odhcpd'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option maindhcp <span class="st_h">'0'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option leasefile <span class="st_h">'/tmp/hosts/odhcpd'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option leasetrigger <span class="st_h">'/usr/sbin/odhcpd-update'</span><br />
<br />
config host<br />
&nbsp; &nbsp; &nbsp; &nbsp; option name <span class="st_h">'terminator'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option dns <span class="st_h">'1'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option mac <span class="st_h">'23:21:78:e1:2a:00'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option ip <span class="st_h">'192.168.1.17'</span><br />
<br />
config domain<br />
&nbsp; &nbsp; &nbsp; &nbsp; option name <span class="st_h">'xyz'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; option ip <span class="st_h">'192.168.1.38'</span><br />
<br />
&nbsp;</div></fieldset>


</p>]]></description>
</item>
</channel>
</rss>