[opensuse] OT: Pihole Local resolution
Hi all. Is anyone using pihole? I am having trouble resolving local host names. I did the following to my pihole to allow local host resolution: nano /etc/dnsmasq.d/02-lan.conf Add this line: addn-hosts=/etc/pihole/lan.list nano /etc/pihole/lan.list add this line: 192.168.0.11 server.local server I can resolve it like this: pign 192.168.0.11 And this: ping server.local but not like this: ping server This happens for all local hostnames. I have found many posts relating to this but cannot find and actual solution to get this to work. Anyone got a suggestion? thanks Paul -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Paul Groves <paul.groves.787@gmail.com> [03-08-19 15:48]:
Hi all.
Is anyone using pihole? I am having trouble resolving local host names.
I did the following to my pihole to allow local host resolution: nano /etc/dnsmasq.d/02-lan.conf Add this line: addn-hosts=/etc/pihole/lan.list
nano /etc/pihole/lan.list add this line: 192.168.0.11 server.local server
I can resolve it like this: pign 192.168.0.11
And this: ping server.local
but not like this: ping server
This happens for all local hostnames.
I have found many posts relating to this but cannot find and actual solution to get this to work.
Anyone got a suggestion?
I use https://pgl.yoyo.org/adservers just add the list to /etc/hosts -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 3/8/19 3:00 PM, Patrick Shanahan wrote:
* Paul Groves <paul.groves.787@gmail.com> [03-08-19 15:48]:
Hi all.
Is anyone using pihole? I
I use mine every day. So much so that I am really overweight. ;-) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/03/2019 21.46, Paul Groves wrote:
Hi all.
Is anyone using pihole? I am having trouble resolving local host names.
I did the following to my pihole to allow local host resolution: nano /etc/dnsmasq.d/02-lan.conf Add this line: addn-hosts=/etc/pihole/lan.list
nano /etc/pihole/lan.list add this line: 192.168.0.11 server.local server
I can resolve it like this: pign 192.168.0.11
And this: ping server.local
but not like this: ping server
This happens for all local hostnames.
Maybe you need in /etc/resolv.conf search local Notice, however, that the domain .local should be avoided. In particular, there is a conflict between Avahi and Windows Active Directory. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
On 08/03/2019 21:49, Carlos E. R. wrote:
Maybe you need in /etc/resolv.conf
search local
this pointed me in the right direction. I think this must be a pihole bug. When I set up the DHCP on pihole I specified the domain name, which is sent to DHCP clients fine, but the PiHole server did not set it's own search domain(s). I have to sudo nano /etc/NetworkManager/system-connections/Wired connection 1 and discovered that the dns-search option was empty dns-search= Will see if I can work out where report this to them. anyway thanks Carlos :)
Notice, however, that the domain .local should be avoided. In particular, there is a conflict between Avahi and Windows Active Directory.
I know. My domain is not .local, that was just an example. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
OK so only one client on the network is not working now. (Raspberry pi acting as a scanner server). It uses dhcpcd, my conf is as follows (I have blanked numbers with *): # static IP configuration: interface eth0 static ip_address=192.168.0.*/** static routers=192.168.0.* static domain_name_servers=192.168.0.* 192.168.0.* As you can see the search domain option is missing. how can I set the search domain here? I cannot find an example of this. I have had a DuckDuckGo (still doesn't sound right somehow) and found this article on arch linux: https://wiki.archlinux.org/index.php/Dhcpcd#Static_profile But this does not show how to set the search domain either. Is there any documentation for dhcpcd to show how to configure the search domain? Paul -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 13/03/2019 23.22, Paul Groves wrote:
OK so only one client on the network is not working now. (Raspberry pi acting as a scanner server).
It uses dhcpcd, my conf is as follows (I have blanked numbers with *):
# static IP configuration: interface eth0 static ip_address=192.168.0.*/** static routers=192.168.0.* static domain_name_servers=192.168.0.* 192.168.0.*
As you can see the search domain option is missing. how can I set the search domain here? I cannot find an example of this.
If the configuration is static, you simply edit etc/resolv.conf, or in YaST in the network setup page, or in network manager corresponding place. If it is dynamic, you edit the dhcpd *server* configuration. The dynamic setings will override the existing local configuration if it exists, or leave the local one if it doesn't. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
participants (4)
-
Carlos E. R.
-
Patrick Shanahan
-
Paul Groves
-
Stevens