On 18.03.24 14:21, Elias LA via Dnsmasq-discuss wrote:
Thanks. I see. So the rule `server=/firebaseio.com/#` is sent to local server 127.0.0.1 which then blocks it because it has the rule `address=/*.firebaseio.com/`

I don't think the request is sent anywhere, why would dnsmasq send it to itself? Since you used no-resolv, I guess the request is handled locally according to docs:


Also permitted is a -S flag which gives a domain but no IP ad‐ dress; this tells dnsmasq that a domain is local and it may an‐ swer queries from /etc/hosts or DHCP but should never forward queries on that domain to any upstream servers. --local is a synonym for --server to make configuration files clearer in this case.


perhaps guys can correct me.


A rephrase of my question is:

How can I route `firebaseio.com` to resolve using default address (the standard server defined by `server=8.8.8.8`) without having to write `server=/firebaseio.com/8.8.8.8` (with keeping the second following rule `address=/*.firebaseio.com/`).

I have said it already: since you send everything to 8.8.8.8
why do you need explicitly configure any domain to query 8.8.8.8 ?

Why did you specify that domain at all?
Why did you set server= and address= with firebaseio.com?

> > On 18.03.24 09:41, Elias LA via Dnsmasq-discuss wrote:
> >
> > > In mydnsmasq.conffile, I have either one of two sets of rules:
> > >
> > > # Set 1:
> > >
> > > no-resolv
> > > server=8.8.8.8
> > >
> > > server=/firebaseio.com/#
> > > address=/*.firebaseio.com/
> > >
> > > # Set 2:
> > >
> > > no-resolv
> > > server=8.8.8.8
> > >
> > > server=/firebaseio.com/8.8.8.8
> > > address=/*.firebaseio.com/
> > >
> > > Running `dig firebaseio.com` using Set 1 gives local address, but using
> > > `Set 2` give a valid server IP address. Why does not the first set give a
> > > valid IP? Is not the rule `server=/firebaseio.com/#`supposed to fetch the
> > > IP address from the "the standard servers" defined by `server=8.8.8.8`?
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I intend to live forever - so far so good.

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

Reply via email to