I'm trying to fix an issue where Android fails to ping computers on the local network using the hostname instead of the IP. After research, the crux of the issue is that Android does not use DNS from the router and instead uses its own DNS servers.
What is not working / I am failing to understand is that force setting the DNS server as the router/gateway IP does not work on Android or Windows. This answer makes me think it should be possible to specify the DNS as the router (192.168.1.1).
So my thought was that setting the DNS to 192.168.1.1 in the Ipv4 options of my WiFi adapter should work, as so:
Windows IPv4 DNS Settings:
Instead, local and external hostnames cannot be resolved at all.
My assumption has been that routers can act as DNS servers; they will try to resolve local hostnames and failing that query the DNS servers configured in the router themselves - thus it should be possible for connected devices to use them as a DNS.
Personally I thought if "Obtain DNS Server address autonomatically" is left ticked, then the router itself is used as the DNS because if not, how are local hostnames ever resolved if a different DNS server is used?
Simply put: can a router be used as a DNS server directly without setting up a separate DNS server on the network?