[Dnsmasq-discuss] trouble with host resolution
Bernd Prager
bernd at prager.ws
Thu Nov 21 01:18:49 UTC 2024
Never mind, I found the mistake:
I forgot to put the "search" in resolv.conf:
search prager.homeip.net
On 11/20/24 2:08 PM, Bernd Prager wrote:
> I am running dnsmasq version 2.90 with following configuration:"""
> domain-needed
> bogus-priv
> no-resolv
> no-poll
> server=8.8.8.8
> server=8.8.4.4
> server=1.1.1.1
> bind-dynamic
> domain=prager.homeip.net
> expand-hosts
> dhcp-range=192.168.1.120,192.168.1.200,12h
> dhcp-option=option:router,192.168.1.1
> dhcp-option=option:ntp-server,129.6.15.28,128.138.141.172
> dhcp-leasefile=/var/lib/dhcp/dnsmasq.leases
> dhcp-authoritative
> cache-size=2048
> listen-address=192.168.1.2
> dhcp-host=40:F0:2F:23:8F:A1,fenrir,192.168.1.2,12h
> dhcp-host=ec:d6:8a:16:8c:bc,fenrir,192.168.1.106,12h
> dhcp-host=24:5E:BE:4C:A1:9F,saga,192.168.1.6,12h
> ... (more hosts) ...
> """
> "fenrir" (192.168.1.3) is the host where dnsmasq is running.
> I am having trouble resolving the hosts:"""
> ❯ host saga.prager.homeip.net
> saga.prager.homeip.net has address 192.168.1.6
> saga.prager.homeip.net is an alias for prager.homeip.net.
> saga.prager.homeip.net is an alias for prager.homeip.net.
> ❯ resolvectl query saga.prager.homeip.net
>
> saga.prager.homeip.net: 76.175.52.6 -- link: enp2s0
> (prager.homeip.net)
>
> -- Information acquired via protocol DNS in 6.8ms.
> -- Data is authenticated: no; Data was acquired via local or encrypted
> transport: no
> -- Data from: cache network
> ❯ ping saga
> ping: saga: Name or service not known
> """
> The 'host' command is resolving "saga" correctly, but 'resolvectl'
> gets me the external IP address of my network.
>
> Could somebody please tell me what I am missing?
> My '/etc/resolve.conf' is just """
> # Home
> nameserver 192.168.1.2
> # Cloudflare
> nameserver 1.1.1.1
> # Google
> nameserver 8.8.8.8
> """
>
> Thank you for any help.
> -- Bernd
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
More information about the Dnsmasq-discuss
mailing list