Android DNS - doesn't use nameserver on LAN?
FIXED- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Re: Android DNS - doesn't use nameserver on LAN?
05-12-2017 6:43 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi all,
I've got my DHCP server working in order to hand out the IP of my nameserver which hosts several domains internally on our network. This works fine on windows machines, they do as they're told and use my nameserver and everything is ticketyboo.
On our android devices name resolution drops dead. On the GUI for my nameserver I can see that a request comes in, and that one is issued, wireshark confirms it was replied to and that the packet conforms but android keeps saying that it cannot resolve the domain.
When i set the nameserver ip back to the router (or an external IP) all is good again. It seems that it is only a lan problem where android deliberately refuses to act on information being returned from a nameserver that is on a different IP to the router / gateway. I've even tried the spare wifi AP in case it was getting upset about the nameserver being a hop further away than the router but it still didn't like it.
So my question.. is this a known android thing? - I've found a few references to it online but all the symptoms seem to vary slightly (though pi-hole users have been complaining). I'm just wondering if there is any sort of workaround other than using an external nameserver with internal A records which isn't ideal..
Fixed! Go to the fix.
Re: Android DNS - doesn't use nameserver on LAN?
05-12-2017 6:49 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Android DNS - doesn't use nameserver on LAN?
05-12-2017 6:52 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Could you set the router's DNS to point at your internal nameserver.
Therefore your Android will request from router, that will in turn ask your nameserver, which will get it's info from your WAN bypassing the router.
If your nameserver is caching, then that will still be faster than Android using the router alone.
It may or may not work with your router, but it would work with mine.
Re: Android DNS - doesn't use nameserver on LAN?
05-12-2017 7:25 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
We use the hub one which means i can't do that - plusnet lock the thing so you can't change dns.
Re: Android DNS - doesn't use nameserver on LAN?
07-12-2017 8:36 PM - edited 07-12-2017 8:37 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Just to be clear, if you manually configure your Android device to use your local nameserver (not the router) for DNS resolution then that also doesn't work? Or is it only when forcing the configuration via DHCP that you are having problems?
Re: Android DNS - doesn't use nameserver on LAN?
08-12-2017 10:01 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Android DNS - doesn't use nameserver on LAN?
08-12-2017 10:06 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I had assumed that's how it was configured, otherwise having two DHCP servers on the LAN is going to cause issues.
Re: Android DNS - doesn't use nameserver on LAN?
08-12-2017 10:09 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Android DNS - doesn't use nameserver on LAN?
08-12-2017 2:40 PM - edited 08-12-2017 9:37 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
@MJN wrote:
Just to be clear, if you manually configure your Android device to use your local nameserver (not the router) for DNS resolution then that also doesn't work? Or is it only when forcing the configuration via DHCP that you are having problems?
Manual configuration never worked either.
Yes hubone DHCP was turned off during trials.
Will give pi-hole trial a go at some point, be interesting to see if android can see it!
EDIT: Guys you're confusing me lol. Android can see the nameservers, it's just refusing to act on the returned results for whatever reason as i previously stated. I'm going to try the app HMcB has recommended and see if that makes any difference but i have a hunch this is an android glitch or security 'feature'.
17-12-2017 3:23 AM - edited 17-12-2017 3:35 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Ok I've got this fixed!!!
My dns server wasn't setting the RClass in the returned resource records. I've updated that and now it sets the results to 1 for IN and everything works on android devices as it should. Android DOES use local nameservers it's just a bit pickier than windows which apparently doesn't worry about the RClass.
Good old wireshark..
Sorry that doesn't help you @HairyMcbiker, no idea whats up with pi-hole
Re: Android DNS - doesn't use nameserver on LAN?
17-12-2017 10:22 AM - edited 17-12-2017 10:23 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Android DNS - doesn't use nameserver on LAN?
17-12-2017 11:04 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I had always assumed that this topic was about a self written DNS / DHCP project
Re: Android DNS - doesn't use nameserver on LAN?
17-12-2017 11:07 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Android DNS - doesn't use nameserver on LAN?
17-12-2017 11:19 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
That may be so, but this is @7up , and he does have a history of doing such things - which is fine !
Re: Android DNS - doesn't use nameserver on LAN?
17-12-2017 11:23 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Re: Android DNS - doesn't use nameserver on LAN?