Sample Header Ad - 728x90

Ubuntu 20.04 hotspot connection not resolving DNS for iPhone device

1 vote
1 answer
2590 views
I have a wired connection on Ubuntu 20.04. I create a Hotspot connection. I believe NetworkManager automatically creates the following for my wireless interface:
inet 10.42.0.1  netmask 255.255.255.0  broadcast 10.42.0.255
I want to connect to the Hotspot connection with my iPhone. This is what i set up on my iPhone manually:
IP Address: 192.168.0.11
Subnet Mask: 255.255.0.0
Router: 10.42.0.1
I assume that I have to set the IP of the wireless interface as the router, because the Hotspot connction will be acting as the router in a sense. Is this correct? Where I have Router: 10.42.0.1 I am able to connect to the Hotspot, however upon examination of the traffic in Wireshark, it seems that the DNS is not resolving. The DNS settings on my iPhone are pointed to Google resolvers 8.8.8.8 and 8.8.4.4. I am seeing DNS queries to Google resolvers, however no response is coming back. It also seems like when i created the Hotspot connection NetworkManager magically started dnsmasq as the local-resolver on the wireless interface. This is what netstat -tupln looks like:
tcp        0      0 10.42.0.1:53            0.0.0.0:*               LISTEN      148021/dnsmasq      
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      147835/systemd-reso 
udp        0      0 10.42.0.1:53            0.0.0.0:*                           148021/dnsmasq      
udp        0      0 127.0.0.53:53           0.0.0.0:*                           147835/systemd-reso 
udp        0      0 0.0.0.0:67              0.0.0.0:*                           148021/dnsmasq
I am not really sure what to do, I have tried disabling ufw as well in case it was a firewall issue. Still no luck. I have also tried setting the ipv4.addresses and ipv4.dns manually in nmcli instead of shared. Still nothing. Please let me know what I'm missing here. Been at this all day.
Asked by JohnSnow (111 rep)
Mar 16, 2021, 05:43 PM
Last activity: May 5, 2025, 09:01 AM