1

Temat: dnsmasq i dystrybucja dns

Koledzy, mam problem z prawidłowym skonfigurowaniem działania DNS.
Mianowicie w /etc/dnsmasq.conf dodałem: "address=/bm.pl/10.240.1.1" aby przechodząc pod adres bm.pl odpowiadał router główny (10.240.1.1) ze stronką www.
W momencie kiedy podłącze komputer bezpośrednio pod router wszystko śmiga. Podając w przeglądarce bm.pl dostaję się na stronę www routera.
Ale jeśli podłącze kolejny router na zasadzie, że lan routera głównego (10.240.1.1) podłączam pod wan drugiego routera (drugi router pobiera adres automatycznie a w swoim lanie rozgłasza podsieć 10.240.2.1) to podłączając się pod ten drugi router niestety otrzymuje informację że brak adresu (dns_probe_finished_mxdomain) Wszystko inne śmiga prawidłowo. I teraz pytanie ... jak to rozwiązać żeby ten drugi router również wiedział że wpisując bm.pl ma mnie przekierować do 10.240.1.1 czyli na stronkę tego pierwszego routera?
Dodam że jedynym możliwym rozwiązaniem jest zrobienie czegokolwiek wyłącznie na tym głównym routerze. Ten drugi router jest jednym z wielu routerów i nie mogę zmieniać ich konfiguracji ... Jeśli potrzebne jakieś logi/konfigi dajcie znać dodam ...

2

Odp: dnsmasq i dystrybucja dns

W /etc/hosts lub sprawdź jakie dnsy ma ten drugi  - ma miec wskazanie na ten pierwszy.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: dnsmasq i dystrybucja dns

-> /etc/hosts na pierwszym routerze

127.0.0.1 localhost
10.240.1.1 bm.pl

-> /etc/dnsmasq.conf na pierwszym routerze

address=/bm.pl/10.240.1.1

-> /etc/config/dhcp na pierwszym routerze
dodałem dodatkowo

config domain
    option name 'bm.pl'
    option ip '10.240.1.1'

-> /tmp/resolv.conf.auto na drugim routerze

# Interface wan
nameserver 10.240.1.1
search lan

wyłączenie całkowite firewalla i zmiana domyślnych ustawień firewalla na accept nic nie daje (myślałem że firewall blokuje ale najwyraźniej nie tędy droga)

4

Odp: dnsmasq i dystrybucja dns

Jeżeli pierwszy rozwiązuje nazwę bm.pl na 10.240.1.1 to drugi też musi przecież.

Przestaw na pierwszym routerze localservice na 0

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: dnsmasq i dystrybucja dns

Też mi się tak wydawało ... ustawienie localservice nic nie zmieniło. Spróbowałem jeszcze na kliencie za drugim routerem wpisać na sztywno adres DNS (bez pobierania z DHCP) i wtedy zaczęło śmigać. Tylko nie wiem gdzie wymusić żeby z DHCPem wysyłał inne adresy DNS ?

6

Odp: dnsmasq i dystrybucja dns

W openwrt: http://eko.one.pl/?p=openwrt-konfigurac … lientwdhcp

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: dnsmasq i dystrybucja dns

Teraz w /tmp/resolv.conf.auto drugiego routera mam prawidlowy wpis tj 10.240.1.1 ale nadal bm.pl nawet nie daje sie pingnac bo jest jako bad address hmm. W przegladarce jest to samo co wczesniej. Juz kompletnie nie kumam co jes grane

8

Odp: dnsmasq i dystrybucja dns

Patrzyłeś w logi? A może masz coś takiego: "possible DNS-rebind attack detected: bm.pl" ?  Wtedy dodajesz list rebind_domain 'bm.pl' do konfiga dhcp. Sprawdzałem, u mnie działa (tm).

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: dnsmasq i dystrybucja dns

logread czysty - brak wpisów

-> /tmp/dnsmasq.log

Apr 17 12:02:55 dnsmasq[12714]: started, version 2.78 cachesize 150
Apr 17 12:02:55 dnsmasq[12714]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC no-ID loop-detect inotify
Apr 17 12:02:55 dnsmasq-dhcp[12714]: DHCP, IP range 10.240.1.100 -- 10.240.1.249, lease time 12h
Apr 17 12:02:55 dnsmasq[12714]: using local addresses only for domain lan
Apr 17 12:02:55 dnsmasq[12714]: reading /tmp/resolv.conf.auto
Apr 17 12:02:55 dnsmasq[12714]: using local addresses only for domain lan
Apr 17 12:02:55 dnsmasq[12714]: using nameserver 84.200.69.80#53
Apr 17 12:02:55 dnsmasq[12714]: using nameserver 84.200.70.40#53
Apr 17 12:02:55 dnsmasq[12714]: read /etc/hosts - 2 addresses
Apr 17 12:02:55 dnsmasq[12714]: read /tmp/hosts/dhcp.cfg02411c - 59 addresses
Apr 17 12:02:55 dnsmasq-dhcp[12714]: read /etc/ethers - 0 addresses
Apr 17 12:02:59 dnsmasq[12714]: 1 10.240.1.3/65379 query[A] bm.pl from 10.240.1.3
Apr 17 12:02:59 dnsmasq[12714]: 1 10.240.1.3/65379 /etc/hosts bm.pl is 10.240.1.1
Apr 17 12:02:59 dnsmasq[12714]: 2 10.240.1.3/7406 query[A] google.com from 10.240.1.3
Apr 17 12:02:59 dnsmasq[12714]: 2 10.240.1.3/7406 forwarded google.com to 84.200.69.80
Apr 17 12:02:59 dnsmasq[12714]: 2 10.240.1.3/7406 forwarded google.com to 84.200.70.40
Apr 17 12:02:59 dnsmasq[12714]: 2 10.240.1.3/7406 reply google.com is 172.217.168.206
Apr 17 12:02:59 dnsmasq[12714]: 3 10.240.1.3/30865 query[A] bm.pl from 10.240.1.3
Apr 17 12:02:59 dnsmasq[12714]: 3 10.240.1.3/30865 /etc/hosts bm.pl is 10.240.1.1
Apr 17 12:03:00 dnsmasq[12714]: 4 10.240.1.3/36236 query[A] bm.pl from 10.240.1.3
Apr 17 12:03:00 dnsmasq[12714]: 4 10.240.1.3/36236 /etc/hosts bm.pl is 10.240.1.1
Apr 17 12:03:00 dnsmasq[12714]: 5 10.240.1.3/36788 query[A] android.googleapis.com from 10.240.1.3
Apr 17 12:03:00 dnsmasq[12714]: 5 10.240.1.3/36788 forwarded android.googleapis.com to 84.200.70.40
Apr 17 12:03:00 dnsmasq[12714]: 5 10.240.1.3/36788 reply android.googleapis.com is <CNAME>
Apr 17 12:03:00 dnsmasq[12714]: 5 10.240.1.3/36788 reply googleapis.l.google.com is 172.217.17.106
Apr 17 12:03:00 dnsmasq[12714]: 5 10.240.1.3/36788 reply googleapis.l.google.com is 172.217.20.74
Apr 17 12:03:00 dnsmasq[12714]: 5 10.240.1.3/36788 reply googleapis.l.google.com is 172.217.168.234
Apr 17 12:03:00 dnsmasq[12714]: 5 10.240.1.3/36788 reply googleapis.l.google.com is 216.58.212.234
Apr 17 12:03:00 dnsmasq[12714]: 5 10.240.1.3/36788 reply googleapis.l.google.com is 172.217.17.42
Apr 17 12:03:00 dnsmasq[12714]: 5 10.240.1.3/36788 reply googleapis.l.google.com is 172.217.168.202
Apr 17 12:03:00 dnsmasq[12714]: 5 10.240.1.3/36788 reply googleapis.l.google.com is 172.217.20.106
Apr 17 12:03:02 dnsmasq[12714]: 6 10.240.1.3/9685 query[A] bm.pl from 10.240.1.3
Apr 17 12:03:02 dnsmasq[12714]: 6 10.240.1.3/9685 /etc/hosts bm.pl is 10.240.1.1
Apr 17 12:03:04 dnsmasq[12714]: 7 10.240.1.3/7428 query[A] collector-hpn.ghostery.net from 10.240.1.3
Apr 17 12:03:04 dnsmasq[12714]: 7 10.240.1.3/7428 forwarded collector-hpn.ghostery.net to 84.200.70.40
Apr 17 12:03:04 dnsmasq[12714]: 7 10.240.1.3/7428 reply collector-hpn.ghostery.net is <CNAME>
Apr 17 12:03:04 dnsmasq[12714]: 7 10.240.1.3/7428 reply collector-hpn.privacy.ghostery.net is 3.93.142.211
Apr 17 12:03:04 dnsmasq[12714]: 7 10.240.1.3/7428 reply collector-hpn.privacy.ghostery.net is 34.206.244.91
Apr 17 12:03:04 dnsmasq[12714]: 7 10.240.1.3/7428 reply collector-hpn.privacy.ghostery.net is 34.235.27.138
Apr 17 12:03:05 dnsmasq[12714]: 8 10.240.1.3/19348 query[A] bm.pl from 10.240.1.3
Apr 17 12:03:05 dnsmasq[12714]: 8 10.240.1.3/19348 /etc/hosts bm.pl is 10.240.1.1
Apr 17 12:03:06 dnsmasq[12714]: 9 10.240.1.3/28577 query[A] android.clients.google.com from 10.240.1.3
Apr 17 12:03:06 dnsmasq[12714]: 9 10.240.1.3/28577 forwarded android.clients.google.com to 84.200.70.40
Apr 17 12:03:06 dnsmasq[12714]: 9 10.240.1.3/28577 reply android.clients.google.com is <CNAME>
Apr 17 12:03:06 dnsmasq[12714]: 9 10.240.1.3/28577 reply android.l.google.com is 172.217.17.78
Apr 17 12:03:06 dnsmasq[12714]: 9 10.240.1.3/28577 reply android.l.google.com is 172.217.19.206
Apr 17 12:03:06 dnsmasq[12714]: 9 10.240.1.3/28577 reply android.l.google.com is 172.217.168.206
Apr 17 12:03:06 dnsmasq[12714]: 9 10.240.1.3/28577 reply android.l.google.com is 216.58.212.142
Apr 17 12:03:06 dnsmasq[12714]: 9 10.240.1.3/28577 reply android.l.google.com is 216.58.211.110
Apr 17 12:03:06 dnsmasq[12714]: 9 10.240.1.3/28577 reply android.l.google.com is 172.217.20.78
Apr 17 12:03:06 dnsmasq[12714]: 9 10.240.1.3/28577 reply android.l.google.com is 172.217.168.238
Apr 17 12:03:07 dnsmasq[12714]: 10 10.240.1.3/41323 query[A] connectivitycheck.gstatic.com from 10.240.1.3
Apr 17 12:03:07 dnsmasq[12714]: 10 10.240.1.3/41323 forwarded connectivitycheck.gstatic.com to 84.200.70.40
Apr 17 12:03:07 dnsmasq[12714]: 10 10.240.1.3/41323 reply connectivitycheck.gstatic.com is 172.217.168.195
Apr 17 12:03:07 dnsmasq[12714]: 11 10.240.1.3/29277 query[A] play.googleapis.com from 10.240.1.3
Apr 17 12:03:07 dnsmasq[12714]: 11 10.240.1.3/29277 forwarded play.googleapis.com to 84.200.70.40
Apr 17 12:03:07 dnsmasq[12714]: 11 10.240.1.3/29277 reply play.googleapis.com is <CNAME>
Apr 17 12:03:07 dnsmasq[12714]: 11 10.240.1.3/29277 reply googleapis.l.google.com is 172.217.17.106
Apr 17 12:03:07 dnsmasq[12714]: 11 10.240.1.3/29277 reply googleapis.l.google.com is 172.217.20.74
Apr 17 12:03:07 dnsmasq[12714]: 11 10.240.1.3/29277 reply googleapis.l.google.com is 172.217.168.234
Apr 17 12:03:07 dnsmasq[12714]: 11 10.240.1.3/29277 reply googleapis.l.google.com is 216.58.212.234
Apr 17 12:03:07 dnsmasq[12714]: 11 10.240.1.3/29277 reply googleapis.l.google.com is 172.217.17.42
Apr 17 12:03:07 dnsmasq[12714]: 11 10.240.1.3/29277 reply googleapis.l.google.com is 172.217.168.202
Apr 17 12:03:07 dnsmasq[12714]: 11 10.240.1.3/29277 reply googleapis.l.google.com is 172.217.20.106
Apr 17 12:03:08 dnsmasq[12714]: 12 10.240.1.3/42165 query[A] www.wp.pl from 10.240.1.3
Apr 17 12:03:08 dnsmasq[12714]: 12 10.240.1.3/42165 forwarded www.wp.pl to 84.200.70.40
Apr 17 12:03:08 dnsmasq[12714]: 13 10.240.1.3/23657 query[A] wp.hit.gemius.pl from 10.240.1.3
Apr 17 12:03:08 dnsmasq[12714]: 13 10.240.1.3/23657 forwarded wp.hit.gemius.pl to 84.200.70.40
Apr 17 12:03:08 dnsmasq[12714]: 14 10.240.1.3/42463 query[A] static.criteo.net from 10.240.1.3
Apr 17 12:03:08 dnsmasq[12714]: 14 10.240.1.3/42463 forwarded static.criteo.net to 84.200.70.40
Apr 17 12:03:08 dnsmasq[12714]: 12 10.240.1.3/42165 reply www.wp.pl is 212.77.98.9
Apr 17 12:03:08 dnsmasq[12714]: 13 10.240.1.3/23657 reply wp.hit.gemius.pl is 212.77.101.100
Apr 17 12:03:08 dnsmasq[12714]: 14 10.240.1.3/42463 reply static.criteo.net is 178.250.2.130
Apr 17 12:03:08 dnsmasq[12714]: 15 10.240.1.3/55577 query[A] fonts.wpcdn.pl from 10.240.1.3
Apr 17 12:03:08 dnsmasq[12714]: 15 10.240.1.3/55577 forwarded fonts.wpcdn.pl to 84.200.70.40
Apr 17 12:03:08 dnsmasq[12714]: 16 10.240.1.3/38475 query[A] www.googletagservices.com from 10.240.1.3
Apr 17 12:03:08 dnsmasq[12714]: 16 10.240.1.3/38475 forwarded www.googletagservices.com to 84.200.70.40
Apr 17 12:03:08 dnsmasq[12714]: 17 10.240.1.3/26975 query[A] s-eu-1.pushpushgo.com from 10.240.1.3
Apr 17 12:03:08 dnsmasq[12714]: 17 10.240.1.3/26975 forwarded s-eu-1.pushpushgo.com to 84.200.70.40
Apr 17 12:03:08 dnsmasq[12714]: 15 10.240.1.3/55577 reply fonts.wpcdn.pl is <CNAME>
Apr 17 12:03:08 dnsmasq[12714]: 15 10.240.1.3/55577 reply wpcdn.pl is 212.77.98.32
Apr 17 12:03:08 dnsmasq[12714]: 16 10.240.1.3/38475 reply www.googletagservices.com is <CNAME>
Apr 17 12:03:08 dnsmasq[12714]: 16 10.240.1.3/38475 reply pagead46.l.doubleclick.net is 216.58.211.98
Apr 17 12:03:08 dnsmasq[12714]: 17 10.240.1.3/26975 reply s-eu-1.pushpushgo.com is 167.114.246.134
Apr 17 12:03:08 dnsmasq[12714]: 17 10.240.1.3/26975 reply s-eu-1.pushpushgo.com is 51.68.95.239
Apr 17 12:03:08 dnsmasq[12714]: 18 10.240.1.3/25137 query[A] v.wpimg.pl from 10.240.1.3
Apr 17 12:03:08 dnsmasq[12714]: 18 10.240.1.3/25137 forwarded v.wpimg.pl to 84.200.70.40
Apr 17 12:03:08 dnsmasq[12714]: 19 10.240.1.3/58051 query[A] pagead2.googlesyndication.com from 10.240.1.3
Apr 17 12:03:08 dnsmasq[12714]: 19 10.240.1.3/58051 forwarded pagead2.googlesyndication.com to 84.200.70.40
Apr 17 12:03:08 dnsmasq[12714]: 20 10.240.1.3/32071 query[A] d.wpimg.pl from 10.240.1.3
Apr 17 12:03:08 dnsmasq[12714]: 20 10.240.1.3/32071 forwarded d.wpimg.pl to 84.200.70.40
Apr 17 12:03:08 dnsmasq[12714]: 19 10.240.1.3/58051 reply pagead2.googlesyndication.com is <CNAME>
Apr 17 12:03:08 dnsmasq[12714]: 19 10.240.1.3/58051 reply pagead46.l.doubleclick.net is 216.58.211.98
Apr 17 12:03:08 dnsmasq[12714]: 20 10.240.1.3/32071 reply d.wpimg.pl is 212.77.98.6
Apr 17 12:03:08 dnsmasq[12714]: 18 10.240.1.3/25137 reply v.wpimg.pl is 212.77.99.26
Apr 17 12:03:08 dnsmasq[12714]: 21 10.240.1.3/4794 query[A] c.amazon-adsystem.com from 10.240.1.3
Apr 17 12:03:08 dnsmasq[12714]: 21 10.240.1.3/4794 forwarded c.amazon-adsystem.com to 84.200.70.40
Apr 17 12:03:08 dnsmasq[12714]: 22 10.240.1.3/6566 query[A] ad.doubleclick.net from 10.240.1.3
Apr 17 12:03:08 dnsmasq[12714]: 22 10.240.1.3/6566 forwarded ad.doubleclick.net to 84.200.70.40
Apr 17 12:03:08 dnsmasq[12714]: 21 10.240.1.3/4794 reply c.amazon-adsystem.com is <CNAME>
Apr 17 12:03:08 dnsmasq[12714]: 21 10.240.1.3/4794 reply d1ykf07e75w7ss.cloudfront.net is 13.35.243.47
Apr 17 12:03:08 dnsmasq[12714]: 22 10.240.1.3/6566 reply ad.doubleclick.net is <CNAME>
Apr 17 12:03:08 dnsmasq[12714]: 22 10.240.1.3/6566 reply dart.l.doubleclick.net is 172.217.20.70
Apr 17 12:03:09 dnsmasq[12714]: 23 10.240.1.3/51968 query[A] playatoms-pa.googleapis.com from 10.240.1.3
Apr 17 12:03:09 dnsmasq[12714]: 23 10.240.1.3/51968 forwarded playatoms-pa.googleapis.com to 84.200.70.40
Apr 17 12:03:09 dnsmasq[12714]: 23 10.240.1.3/51968 reply playatoms-pa.googleapis.com is <CNAME>
Apr 17 12:03:09 dnsmasq[12714]: 23 10.240.1.3/51968 reply googleapis.l.google.com is 172.217.17.106
Apr 17 12:03:09 dnsmasq[12714]: 23 10.240.1.3/51968 reply googleapis.l.google.com is 172.217.20.74
Apr 17 12:03:09 dnsmasq[12714]: 23 10.240.1.3/51968 reply googleapis.l.google.com is 172.217.168.234
Apr 17 12:03:09 dnsmasq[12714]: 23 10.240.1.3/51968 reply googleapis.l.google.com is 216.58.212.234
Apr 17 12:03:09 dnsmasq[12714]: 23 10.240.1.3/51968 reply googleapis.l.google.com is 172.217.17.42
Apr 17 12:03:09 dnsmasq[12714]: 23 10.240.1.3/51968 reply googleapis.l.google.com is 172.217.168.202
Apr 17 12:03:09 dnsmasq[12714]: 23 10.240.1.3/51968 reply googleapis.l.google.com is 172.217.20.106
Apr 17 12:03:10 dnsmasq[12714]: 24 10.240.1.3/1253 query[A] clients4.google.com from 10.240.1.3
Apr 17 12:03:10 dnsmasq[12714]: 24 10.240.1.3/1253 forwarded clients4.google.com to 84.200.70.40
Apr 17 12:03:10 dnsmasq[12714]: 24 10.240.1.3/1253 reply clients4.google.com is <CNAME>
Apr 17 12:03:10 dnsmasq[12714]: 24 10.240.1.3/1253 reply clients.l.google.com is 172.217.168.238
Apr 17 12:03:12 dnsmasq[12714]: 25 10.240.1.3/26085 query[A] gwiazdy.wp.pl from 10.240.1.3
Apr 17 12:03:12 dnsmasq[12714]: 25 10.240.1.3/26085 forwarded gwiazdy.wp.pl to 84.200.70.40
Apr 17 12:03:12 dnsmasq[12714]: 26 10.240.1.3/59510 query[A] kobieta.wp.pl from 10.240.1.3
Apr 17 12:03:12 dnsmasq[12714]: 26 10.240.1.3/59510 forwarded kobieta.wp.pl to 84.200.70.40
Apr 17 12:03:12 dnsmasq[12714]: 27 10.240.1.3/25539 query[A] o2.pl from 10.240.1.3
Apr 17 12:03:12 dnsmasq[12714]: 27 10.240.1.3/25539 forwarded o2.pl to 84.200.70.40
Apr 17 12:03:12 dnsmasq[12714]: 27 10.240.1.3/25539 reply o2.pl is 212.77.100.61
Apr 17 12:03:12 dnsmasq[12714]: 25 10.240.1.3/26085 reply gwiazdy.wp.pl is 212.77.100.7
Apr 17 12:03:12 dnsmasq[12714]: 26 10.240.1.3/59510 reply kobieta.wp.pl is 212.77.100.75
Apr 17 12:03:12 dnsmasq[12714]: 28 10.240.1.3/52952 query[A] parenting.pl from 10.240.1.3
Apr 17 12:03:12 dnsmasq[12714]: 28 10.240.1.3/52952 forwarded parenting.pl to 84.200.70.40

a przeglądarka nadal :

This site can’t be reached bm.pl’s server IP address could not be found.
DNS_PROBE_FINISHED_NXDOMAIN

a ping

ping: bm.pl: Name or service not known

10

Odp: dnsmasq i dystrybucja dns

Zobacz że 10.240.1.3 pyta się o 10.240.1.3 i dostaje odpowiedź że jest to 10.240.1.1

Co to za system na tym 10.240.1.3?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: dnsmasq i dystrybucja dns

wygląda na to że problem jest na routerach z OpenWRT problem występuje np na
10.240.1.3 to CHAOS CALMER (15.05.1, r48532) Linux OpenWrt 3.18.23
oraz
OpenWrt 18.06-SNAPSHOT, r7714-4918fe0291 Linux PilotHome 4.14.105 (Twój build)
natomiast jak podłączyłem router d-link dir-620 z oryginalnym oprogramowaniem wszystko śmiga jak powinno.

12

Odp: dnsmasq i dystrybucja dns

Nie. Też używam moich buildów smile i normalnie działa. Napisałem Ci to rano.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

13

Odp: dnsmasq i dystrybucja dns

Zrobie reset do ustawień fabrycznych jednego z urządzeń i zobacze jeszcze raz.

14

Odp: dnsmasq i dystrybucja dns

Przywrócenie ustawień fabrycznych nic nie dało. Nadal jest to samo.
This site can’t be reached bm.pl’s server IP address could not be found.
DNS_PROBE_FINISHED_NXDOMAIN

15

Odp: dnsmasq i dystrybucja dns

A tak z ciekawości, wklej tutaj wynik poleceń 'nslookup bm.pl' oraz 'nslookup wp.pl', wydawanych na końcówkach podpiętych do routerów z openwrt.

rt-ac56u tomato, 2x wdr3600@16MB/u-boot pepe2k/lede, 2x wt3020f@16MB/e3372s/gargoyle/lede, 3x wr841n@16MB/64MB/u-boot pepe2k/lede, rt-n18u tomato, 2x rb750gr2 ROS, 3x rb750gr3 ROS, Unifi ap ac lr

16

Odp: dnsmasq i dystrybucja dns

pilot@pilot-work:~$ nslookup bm.pl
Server:        127.0.0.53
Address:    127.0.0.53#53

Non-authoritative answer:
*** Can't find bm.pl: No answer

pilot@pilot-work:~$ nslookup wp.pl
Server:        127.0.0.53
Address:    127.0.0.53#53

Non-authoritative answer:
Name:    wp.pl
Address: 212.77.98.9

jeśli podam z wyszukiwaniem na konkretnym dns tj 10.240.1.1 to znajduje

pilot@pilot-work:~$ nslookup bm.pl 10.240.1.1
Server:        10.240.1.1
Address:    10.240.1.1#53

Name:    bm.pl
Address: 10.240.1.1

tyle że powinien to szukać bez podania serwera dns w nslookup hmm

17

Odp: dnsmasq i dystrybucja dns

Ten system ma networkmanagera i przez niego się łączysz? Jeżeli tak to pokaż

nmcli device show | grep DNS

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

18 (edytowany przez pawkon 2019-04-18 17:55:37)

Odp: dnsmasq i dystrybucja dns

pilot@pilot-work:~$ nmcli device show | grep DNS
IP4.DNS[1]:                             172.17.100.1
IP6.DNS[1]:                             fd4b:161a:2000::1

172.17.100.1 jest prawidłowym adresem routera z openwrt który stoi za routerem głównym tak jak to wcześniej opisywałem

19

Odp: dnsmasq i dystrybucja dns

I już wiesz co masz źle? A tu ma być właśnie 10.240.1.1 bo do niego jesteś właśnie przypięty do lanu.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

20 (edytowany przez pawkon 2019-04-18 18:07:44)

Odp: dnsmasq i dystrybucja dns

Nie. Jestem przypięty do 172.17.100.1. PC w adresacji pobranej z dhcp 172.17.100.1 otrzymuje dns 172.17.100.1. Wysyłając zapytanie do otrzymanego dns router 2 powinien przekazać zapytanie dalej ponieważ sam nie zna tego adresu, a na WANie z ghcp otrzymał dns 10.240.1.1. Przekazuje więc przez swój WAN do routera 1 tj 10.240.1.1 i tam dostaje odpowiedź którą zwraca. I dalsza komunikacja się odbywa bezpośrednio z 10.240.1.1.
Gdyby PC za drugim routerem miał wpisany dns 10.240.1.1 to jasne że będzie wszystko działalo tylko że nie na tym to ma polegać ponieważ router 2 nie rozsyła adresacji w podanym zakresie.
Reasumując PC 172.17.100.108 odpytuje dns w swojej podsieci 172.17.100.1. Ten nie zna adresu więc odpytuje WAN o adres. Odpytuje więc 10.240.1.1. Ten odpowiada że zna ten adres i podaje dn spowrotem do 172.17.100.1 a ten dalej do 172.17.100.108.

21

Odp: dnsmasq i dystrybucja dns

Post 8 w takim razie. Na routerze2 (172.17.100.1) nie masz wpisanego list rebind_domain 'bm.pl'

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

22

Odp: dnsmasq i dystrybucja dns

Bingo Cezary! tylko pozostaje otwarte pytanie z samego początku. Jak zrobić żeby nie trzeba było nic zmieniać na routerze 2? Moje założenie jest takie że mam dostęp wyłącznie do Routera 1 (głównego) a wszystkie za nim tj router 2, 3, 5, 10, n są poza moim zasięgiem i potrzebuję zrobić tak żeby nie trzeba było nic zmieniać. Nie mam wiedzy jaki soft będą miały te routery ale np na sofcie oryginalnym lata to dobrze ... ale może być równie dobrze Openwrt, gorgoyle, dd-wrt itp i muszę wymuszać zmianę o której tu piszę. Da rade ?

23

Odp: dnsmasq i dystrybucja dns

Nie zrobisz tego. Openwrt domyślnie zabrania rebinda właśnie (czy przypisania domen do adresów z klasy prywatnej) i po prostu musisz to wyłączyć żeby działało.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

24

Odp: dnsmasq i dystrybucja dns

Rozumiem. To podpowiedz mi proszę jeszcze co zrobić żeby uhhtpd/php7 obsługiwał symultanicznie zapytania od tego samego klienta. Wcześniej bynajmniej tak to działało że np jedna strona wywoływała kolejną albo otwierało się jedną stronkę w jednej zakładce a drugą w tej samej i obie otwierały się jednocześnie a teraz jest tak że jak wywołam pierwszą to ta druga czeka na zakończenie wywołania tej pierwszej i dopiero się otwiera. Mam oczywiście na myśli 2 stronki czy też 2 pliki php z routera. Mam nadzieję że wiesz o czym piszę.

25

Odp: dnsmasq i dystrybucja dns

option max_requests '1'

w /etc/config/uhttpd. Specjalnie to jest tak ustawione żeby routera nie przeciążać.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.