I have a piHole set up on my network with address 192.168.2.10
My router is 192.168.2.1
and the DNS settings on the router point to 192.168.2.10
meaning all traffic that goes via the router (which is everything) uses the local pihole for DNS (see screenshot below)
The router's firmware is DD-WRT v3.0-r33413 mini (09/27/17)
This is working great and ads are being blocked as expected, however, I want to add some local network DNS entries.
As an example, I want to be able to type http://router
in a web browser and have that resolve to http://192.168.2.1
I have followed this tutorial as well as the advice in the comments of this post and now my etc/pihole/lan.list
looks like this
192.168.2.1 router.lan router
I had to also made some DnsMasq changes on my DD-WRT router as follows
and now I am able to ping and nslookup router.lan
from devices on my network. However, I am not able to ping or nslookup router
as I get ping request could not find host router. Please check the name and try again.
What am I missing?
/etc/pihole/lan.list
does that work? (Also note that there were warnings in the comments about editing/etc/hosts
when using this set-up.)nslookup router.local
,nslookup router.local 192.168.2.10
, as in the answer by kcrk would help. Alsonslookup
in both formats for a public site, like, say,nslookup www.google.com
andnslookup www.google.com 192.168.2.10
.nslookup stackexchange.com
on your Windows machine? (It looks like WIndows knew the address when you specified your local DNS as an explicit argument tonslookup
but not when you let is use its default.)