Can't access the site on android using the hostname

Unfortunately I was not able to find an online manual for that router model as I was interested to see how to set the domain name and where to check the domain name in your router.
Alternatively I checked if it is possible to get the domain name and to see what domain name is set by DHCP on an android.
Using the command:

adb shell dumpsys wifi 

via a USB debug session it is possible to get this information. But I do not know if spending the effort at the end really will help.

this is the dns relevant part (I think…)

mLinkProperties {InterfaceName: wlan0 LinkAddresses: [ fe80::3a98:eb49:d82d:b5f1/64,192.168.1.22/24,2a00:a040:18a:f211:17dd:9c0b:cfe0:ceff/64,2a00:a040:18a:f211:5d67:7d0b:500:ed18/64 ] DnsAddresses: [ /213.57.2.5,/192.168.1.1 ] Domains: null MTU: 0 TcpBufferSizes: 524288,1048576,8808040,262144,524288,6710886 Routes: [ fe80::/64 -> :: wlan0 mtu 0,::/0 -> fe80::e2ca:94ff:feb0:7205 wlan0 mtu 0,2a00:a040:18a:f211::/64 -> fe80::e2ca:94ff:feb0:7205 wlan0 mtu 0,2a00:a040:18a:f211::/64 -> :: wlan0 mtu 0,192.168.1.0/24 -> 0.0.0.0 wlan0 mtu 0,0.0.0.0/0 -> 192.168.1.1 wlan0 mtu 0 ]}
mWifiInfo SSID: moshe, BSSID: e0:ca:94:b0:72:07, MAC: 7c:2a:db:8c:22:9d, Supplicant state: COMPLETED, HE Eight Max VHT Spatial Streams Supported AP: false, Eight Max VHT Spatial streams support: false, Wi-Fi standard: 4, RSSI: -56, Link speed: 144Mbps, Tx Link speed: 144Mbps, Max Supported Tx Link speed: 144Mbps, Rx Link speed: 144Mbps, Max Supported Rx Link speed: 144Mbps, Frequency: 2412MHz, Net ID: 167, Metered hint: false, score: 60
mDhcpResultsParcelable baseConfiguration IP address 192.168.1.22/24 Gateway 192.168.1.1  DNS servers: [ 213.57.2.5 192.168.1.1 ] Domains leaseDuration 0mtu 0serverAddress nullserverHostName nullvendorInfo null

This entry shows “Domains: null” and the IP address range 192.168.1.0/24 seems not to match with the IP addresses that are shown in the wireshark screenshot: 192.168.1.22 vs. 192.168.137.146

The ip is probably due to hotspot i did from my pc in order to get the traffic from my phone. Without it the ip is 192.168.1.22

1 Like

As far as I understand several internet articles the hotspot sharing ( ICS: internet connection sharing ) could be the reason for the domain mshome.net. It would be interesting to see a wireshark network trace without using the PC as hotspot for your phone.

What do the following commands return if execute them in a command window on your PC:

nslookup openhabian
ping openhabian
ping IP-address-of-openhabian-here

Can you try to set a domain in your router so that you can resolve the IP by entering openhabian.<yourlocaldomain.tld>?

Looks like when you run nslookup the request goes out to dns.google (not the local DNS). However when you PING the name the request gets resolved.

Have you tried disabling IPV6? (Looks like nslookup is using the IPV6 details to access dns.google)?

Can you post the output of ipconfig /all for the interface you are using? Would like to know what the DNS Servers are configured to?

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Realtek PCIe GbE Family Controller
   Physical Address. . . . . . . . . : C4-65-16-BF-12-BD
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 10.163.199.247(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : 22 June 2021 21:50:15
   Lease Expires . . . . . . . . . . : 24 June 2021 18:50:16
   Default Gateway . . . . . . . . . : 10.163.199.254
   DHCP Server . . . . . . . . . . . : 10.163.199.254
   DNS Servers . . . . . . . . . . . : 8.8.8.8
                                       8.8.4.4
   NetBIOS over Tcpip. . . . . . . . : Enabled

Also notice this:

DnsAddresses: [ /213.57.2.5,/192.168.1.1 ]
DNS servers: [ 213.57.2.5 192.168.1.1 ] 

Does that not send the request to the internet first - which would fail as the openhabian name is local only?


Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) Wireless-AC 9560 160MHz
   Physical Address. . . . . . . . . : D4-D2-52-5F-98-08
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2a00:a040:18a:f211:682e:b55c:8b40:bca(Preferred)
   Temporary IPv6 Address. . . . . . : 2a00:a040:18a:f211:fd52:52b3:bb03:8896(Preferred)
   Link-local IPv6 Address . . . . . : fe80::682e:b55c:8b40:bca%7(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.54(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Thursday, 24 June 2021 19:33:20
   Lease Expires . . . . . . . . . . : Thursday, 24 June 2021 21:50:12
   Default Gateway . . . . . . . . . : fe80::e2ca:94ff:feb0:7205%7
                                       192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 97833554
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-A0-F0-F3-04-D4-C4-7A-95-9B
   DNS Servers . . . . . . . . . . . : 2001:4860:4860::8888
                                       2001:4860:4860::8844
                                       213.57.2.5
                                       213.57.22.5
   NetBIOS over Tcpip. . . . . . . . : Enabled

btw, this is from my pc which openhabian:8080 works in, that’s what u wanted right?
disable ipv6 on my android? can u tell me how?

This is what I get when going to openhabian:8080 in my pc:

can u explain to me a little more? I’m not very familiar with this
in the router’s site I didnt see an option to do something similar to what u wrote but maybe I dont know enough

From what I can see this looks like a DNS issue.

when you access openhabian from your PC, the DNS request is for openhabian.local which gets resolved to the correct address.

If you NSlookup openhabian you are being directed to dns.google:

   DNS Servers . . . . . . . . . . . : 2001:4860:4860::8888
                                       2001:4860:4860::8844

The request fails (which is to be expected). What happens if you turn off IPV6? This should stop the request going to dns.google.

Does your android device get the same DHCP reply? So DNS etc same as on PC?

The windows system seems not to be configured to use a local DNS server and the wireshark snippet shows that mDNS service is used to resolve the name to it’s related IP address.

what are the main menu entries that are available in your router settings ?

Status
-general
-lan discrover
-langauge
-connection
-password
-event log
-init scan
-brdige mode

basic
-setup
-dhcp
-ddns
-backup

advanced
-options
-remote mangement
-ip filtering-
-mac filtering
-port filtering
-forwarding
-port triggers
-dmz host

wireless
-wifi setup
-access control

mta
-status

usb
-usb basic
-available devices

logout

here is what I get on android (my pc was used as hotspot to get its traffic)

Using the PC as hotspot has influence on the domain name that is being used. As long as you do not intend to always use your PC as hotspot for your android device the results are not comparable.

What you could try is to use tpacketcapture to caputure the network traffic of your phone. Save it and analyse the capture packets with wireshark on a PC.

I first would have a look into the options that are available under

Do you know if there is any manual available online ? So far I haven’t been able to find one which explains the menu.

that app didnt work really well for me. ill try some others, anyway I wont be nea a PC in the next couple of days unfortunately. Thanks for all the help!

1 Like