-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forward intranet requests to router? #643
Comments
Then we'll begin..! This SHOULD be an easy fix actually, but i might be wrong. You can try adding the host names to
followed by a |
If your router is still searching & resolving hostnames on your domain/network (1) then you may be able to forward the entire subdomain (2) onto your router from your pihole. Saving you the step of having to add each DNS entry manually for new PCs or DHCP IP changes. (1)
(2)
note: $ are commands issued, # are comments, no prefix = return value |
Of course! I was just looking up the |
Adding `server=/myhome.myname.com/192.168.1.1.` to `/etc/dnsmasq.d/forward_internal_domain_to_router.conf` did it!
It’d be nice to have a GUI or command line way to do that easily. I’m surprised that this problem hasn’t come up previously.
|
That's normal behavior. We can only tell if a domain is blocked if the resolved ip is the Pi-hole's. We could manually exclude that domain from the blocked ones. |
What's interesting is that |
Command line and browser on the same computer? If so, check out how to clear browser cache. Chrome has it at chrome://net-internals/#dns |
Is this issue fixed now? |
Yeah, but I think maybe a feature request has come out of it: the ability to add that forwarding line through the command line or the web interface. That, and it documented, would have prevented this thread from occurring, for the most part. |
Ok. You can make an issue on the admin repo, flag as feature request, and link to this issue. |
Also, maybe I'll flag this one as a feature request too, since I have a feeling that the command line should be the one to actually contain the functionality. The web interface could be just a front for the command line, like whitelisting and blacklisting. |
Not sure if this is the right place, maybe we it should also be possible to forward local requests to the local router? this should make sure that all requests for my local domain and reverse (ip to dns) lookups in my subnet are send to the local router. |
Set your router as an upstream DNS server, if it is smart enough to support that. Otherwise, try using Pi-hole's DHCP instead of the router's. Then hostnames are automatically available to Pi-hole (and set new ones in |
Hey, I think the "bogos-priv" prevents requests from private IPs to be sent to upstream DNS Servers. |
Well ... You may have to apply this bug fix to have it actually passed to |
Fully implemented in admin interface v2.3 |
I have an internal naming scheme, like
mylaptop.myhome.myname.com
andmynas.myhome.myname.com
.myname.com
resolves publicly, but only my router resolvesmyhome.myname.com
and only internally.Expected Behaviour:
When I visit
mynas.myhome.myname.com
, I expect it to resolve and load.Actual Behaviour:
My internal domain no longer resolves. The pihole seems to do the external lookup.
Steps to reproduce this issue:
Fresh, ootb configuration, with my router sending the pihole and the router as DNS servers in that order.
The central question
Can I do one of:
I'm using an ASUS RT-N66U running a recent build of Merlin firmware, if that matters. I'm not afraid to tinker!
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: