How to use multiple DNS in dnsmasq?

There is a home server on Ubuntu 13.10 with working on it dnsmasq as DHCP/DNS server.
You must use 2 different DNS servers, one service provider (to access the local domains) and OpenNIC DNS (for domain access .lib, etc.).
Prescribed in dnsmasq:
server=[dns provider]
server=[OpenNIC dns]
all-servers
strict-order

In the end, works only local domains, change the record sometimes only OpenNIC domains.
How to configure to have access to the local domains and to domains OpenNIC?
I tried different versions, and all servers were removed and strict-orderand both places changed (you never know), but did not achieve the desired result.


PS Put the same DNS in the router (Asus RT-N66U) and there the story is the same, only one DNS.
June 7th 19 at 14:22
2 answers
June 7th 19 at 14:24
Solution
bring the config to the view

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 you can specify so
....
address=/vithos.de/127.0.0.1
....
And what does this have to do with the question?
Might look like the config I already know, I have server and registered. - benjamin commented on June 7th 19 at 14:27
you need to resolvit domains? I pointed out how it is possible to attach a separate domain dns

Take into account that the negative response from the server is also considered a response and need to request another dns no. - Jonatan_Rodriguez69 commented on June 7th 19 at 14:30
well , so I prescribed two DNS.
It turns out that first comes the NXDOMAIN response and the second server is not queried. - benjamin commented on June 7th 19 at 14:33
because it is better to prescribe the necessary dns for a specific zone. - Jonatan_Rodriguez69 commented on June 7th 19 at 14:36
So how do I register dns for the zone .lib or .lan , that I do not quite understand?
Thanks for the tip. Understood. - benjamin commented on June 7th 19 at 14:39
June 7th 19 at 14:26
Here is written why do you have nothing is not working:
Why Windows 7 does not use the secondary DNS server?
Well, it is not about Windows.
If you are in
If the client receives the first DNS answer NXDOMAIN (Non-existent Domain Name), that's still considered the answer and the reason for switching to the second DNS no.

How is it treated? - benjamin commented on June 7th 19 at 14:29

Find more questions by tags LinuxNetwork administrationDomain name system