A
A
Alexander2018-03-03 19:03:34
linux
Alexander, 2018-03-03 19:03:34

How to use multiple DNS in dnsmasq?

I have a home server on Ubuntu 13.10 running dnsmasq as a DHCP/DNS server.
It is necessary to use 2 different DNS servers, one provider (for access to local domains) and DNS OpenNIC (for access to .lib domains, etc.).
I register in dnsmasq:

server= [provider dns]
server= [OpenNIC dns]
all-servers
strict-order

As a result, only local domains work, I change the entries in places - only OpenNIC domains.
How can I configure it to have access to both local domains and OpenNIC domains?
I tried different options, and all-servers removed both strict-order , and changed both places (you never know), but did not achieve the desired result.
PS I entered the same DNS in the router (Asus RT-N66U) and there the story is the same, only one DNS works.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mikes, 2018-03-03
@Adler_lug

change the config to
server=/domain1.com/172.16.20.30
server=/domain2.com/172.16.20.100
server=/domain3.com/91.198.39.34
...
...
...
server=77.88.8.88
server= 77.88.8.2
specific addresses can be specified like this
....
address=/vithos.de/127.0.0.1
....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question