5

How do I set dnsmasq to use one specific DNS server without changing which DNS server the host system uses for its own DNS requests?

I should clarify I am not using dnsmasq as a DHCP server but only to forward the DNS requests on.

1 Answer 1

4

To send specific dns addresses to the clients set

server=8.8.8.8
server=8.8.4.4

in /etc/dnsmasq.conf.

In this example 8.8.8.8 and 8.8.4.4 are google public dns.

1
  • can it be redirected server with port other than 53
    – Chang Zhao
    Commented Dec 5, 2021 at 20:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .