Temat: Problem z DNS
Na urządzeniu, które działa w trybie AP mam zainstalowane OpenWrt 18.06.2 r7676-cddd7b4c77
Na samym routerze nie działa DNS (napisałem na samym routerze bo aktualnie nie jestem w stanie sprawdzić czy urządzenia podłączone po WiFi w 100% mają internet (żona twierdzi, że jest (a nie wiem czy po prostu w telefonie nie korzysta po sieci komórkowej)). (ping wp.pl nie działa, ping 8.8.8.8 działa)
Urządzenie główne robi również za serwer DNS i tutaj nie ma problemu:
nslookup wp.pl
Server: 127.0.0.1
Address: 127.0.0.1#53Non-authoritative answer:
Name: wp.pl
Address: 212.77.98.9
Konfiguracja OpenWRT
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option localservice '1'
option nonwildcard '0'
option serversfile '/tmp/adb_list.overall'config dhcp 'lan'
option interface 'lan'
option ignore '1'config dhcp 'wan'
option interface 'wan'
option ignore '1'
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'config globals 'globals'
option ula_prefix 'fd5e:2af9:46b2::/48'config interface 'lan'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '10.0.2.1'
option gateway '10.0.2.2'
option delegate '0'
option _orig_ifname 'eth1 radio0.network1 radio1.network1'
option _orig_bridge 'true'
option ifname 'eth0 eth1 tap0'
option broadcast '10.0.2.255'
option dns 10.0.2.2
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'config switch_vlan
option device 'switch0'
option vlan '1'
option ports '2 3 4 5 0'config switch_vlan
option device 'switch0'
option vlan '2'
option ports '1 6'config interface 'vpn0'
option ifname 'tap0'
option proto 'none'
option auto '1'
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 br-lan
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan