[Dnsmasq-discuss] is dnsmasq shared by all ports

Petr Mensik pemensik at redhat.com
Mon Aug 26 10:58:41 BST 2019


Hi Gordon,

depends on your configuration, which you forgot to provide.
What is in /etc/resolv.conf for example? What flags/configuration are
both instances using?

I would quess 127.0.0.1 might be in resolv.conf. That would mean hosts.2
instance would query hosts.1 instance. That might or might not be
desired. Please share more details how you configuration looks like.

Cheers,
Petr

On 8/25/19 2:55 AM, Gordon Shawn wrote:
> I'm running two dnsmasqs daemons one on port 53 another one on port 5333,
> both set cache-size=8192, are these two dnsmasq processes sharing the same
> cache or they're totally independent as far as cache goes?
> 
> each dnsmasq also calls different host files, i.e. /etc/hosts.1(for port
> 53) and /etc/hosts.2(for port 5333), they do share a /etc/hosts though. I
> noticed clients using 5333 port sometimes get IP from /etc/hosts.1.
> 
> so the question is, can I run two dnsmasq processes on different ports
> totally independently?
> 
> Thanks,
> 
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 

-- 
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: pemensik at redhat.com  PGP: 65C6C973



More information about the Dnsmasq-discuss mailing list