DNS over WiFi Hotspot App

, ,

My YunoHost server

Hardware: Raspberry Pi at home
YunoHost version: 4.3.6.2 (stable)
I have access to my server : Through SSH | through the webadmin |
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

TL;DR: Name Resolution does not work

Description

  • ISP router
  • YNH raspi Ethernet connected to router
  • Installed Hotspot App in YNH to create a Wi-Fi hotspot that other devices at home could connect and access internet
  • Hotspot successfully installed, other devices can connect to it via WiFi
  • Default config for Hotspot App (subnetwork 10.0.242 created AND 10.0.242.1 DNS RESOLVER)

Problem

Devices get an IP on 10.0.242.x but have no access to internet

but can ping IPs on internet. This is from one computer connected to Hotspot

[user@pc ~]$ ping google.com
ping: google.com: Temporary error in name resolution
[user@pc ~]$ ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=59 time=16.7 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=59 time=20.2 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=59 time=17.8 ms
64 bytes from 1.1.1.1: icmp_seq=4 ttl=59 time=20.9 ms
^Z
[1]+  Stopped                  ping 1.1.1.1

I’ve changed DNS Resolvers value in webinterface admin panel for Hotspot App to

1.1.1.1 and 8.8.4.4

but had no name resolution neither.

Question

so I guess dnsmasq is doing its thing, so hostapd, but something is messing with name resolution.

I’ve tested with two devices on the network, both have no name resolution.

Edit

I’ve tried to enable ipv4 forwarding in /etc/sysctl.conf (it is disabled by default), but made no difference.

this is ifconfig value when connected to hotspot

 wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.242.8  netmask 255.255.255.0  broadcast 10.0.242.255

I suggest you to run this command after adding an usb antenna (you can try to do it anyway)

yunohost tools regen-conf dnsmasq --force

And retry to connect

Could i suggest you to not use 1.1.1.1 and 8.8.4.4 and prefer one of this list ?
https://raw.githubusercontent.com/YunoHost/yunohost/dev/conf/dnsmasq/plain/resolv.dnsmasq.conf

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.