[Dnsmasq-discuss] local domain (dyndns) not resolved

Geert Stappers stappers at stappers.nl
Sun Aug 22 19:19:49 UTC 2021


On Thu, Aug 19, 2021 at 08:56:10AM -0700, Bernd Prager via Dnsmasq-discuss wrote:
> Hi,

Hi,

 
> I have some troubles in resolving my local domain.
> 
> (I don't know if it is important, but I use DynDNS as DDNS service which is
> synchronized by my router.)
> 
> I can successfully resolve local boxes in my own network as well as global
> domains:
> 
>  $ dig loki +short
> 192.168.1.104
> 
> $ dig google.com +short
> 142.250.72.142
> 
> But my domain does not resolve:
> 
>  $ dig prager.homeip.net
> 
> ; <<>> DiG 9.16.1-Ubuntu <<>> prager.homeip.net
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7890
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
> 
> ;; OPT PSEUDOSECTION:
> ; EDNS: version: 0, flags:; udp: 4096
> ;; QUESTION SECTION:
> ;prager.homeip.net.             IN      A
> 
> ;; Query time: 0 msec
> ;; SERVER: 192.168.1.2#53(192.168.1.2)

192.168.1.2


> ;; WHEN: Thu Aug 19 08:50:03 PDT 2021
> ;; MSG SIZE  rcvd: 46
> 
> When I try this from a system outside my own network (e.g. AWS) it does
> resolve:
> 
> $ dig prager.homeip.net
> 
> ; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.amzn2.5.2 <<>> prager.homeip.net
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18135
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
> 
> ;; OPT PSEUDOSECTION:
> ; EDNS: version: 0, flags:; udp: 4096
> ;; QUESTION SECTION:
> ;prager.homeip.net.             IN      A
> 
> ;; ANSWER SECTION:
> prager.homeip.net.      60      IN      A       76.175.52.6
> 
> ;; Query time: 53 msec
> ;; SERVER: 172.31.0.2#53(172.31.0.2)

172.31.0.2


> ;; WHEN: Thu Aug 19 15:51:55 UTC 2021
> ;; MSG SIZE  rcvd: 62
> 
> Here is my dnsmasq.conf:
> 
> domain-needed
> bogus-priv
> 
> no-resolv
> no-poll
> server=8.8.8.8
> server=8.8.4.4
> server=1.1.1.1
> 
> resolv-file=/etc/dnsmasq.resolv
> 
> bind-interfaces
> 
> domain=prager.homeip.net
> expand-hosts
> local=/prager.homeip.net/
> domain-needed
> 
> dhcp-range=192.168.1.100,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
> 
> log-queries
> 
> log-dhcp
> 
> listen-address=192.168.1.2
> listen-address=127.0.0.1
> 
> # my boxes
> dhcp-host=3c:15:c2:d4:45:72,loki,192.168.1.104,12h

And that configuration is for which dnsmasq server?


Consider that a question from someone who would like
to better understand the setup.

192.168.1.2 and the "outside" 172.31.0.2 feels odd to me.

 
> Can someone assist me please on what I am missing?
> 
> Thank you for your help,
> 
> -- Bernd
> 


Groeten
Geert Stappers
-- 
Silence is hard to parse



More information about the Dnsmasq-discuss mailing list