V
V
Vitaly2015-11-04 02:43:24
Domain Name System
Vitaly, 2015-11-04 02:43:24

How to set up dnsmasq (local + world)?

Comrades, help me get to the truth, I feel it is somewhere nearby :)
Given:
Home LAN 192.168.8.0/24 (PVE with virtual machines + iron clients)
On one virtual machine, a debian7 gateway is running, which acts as DHCP, DNS, NTP, etc. .d. - 192.168.8.1
On the other virtulka, a dev-lab is running on Vesta CP (respectively, its own bind9 is running there) - 192.168.8.3
Task
Configure dnsmasq on the gateway in such a way that domains are resolved from LAN both from Vesta and from the world.
Almost everything works, but there is a nuance.
resolv.conf
127.0.0.1
resolv.dnsmasq

nameserver 192.168.8.3
nameserver 8.8.8.8
nameserver 8.8.4.4

With this option, domains from the world and local area either resolve or not. Usually problems with local domains. (the reason, as far as I understand, is that dns are polled randomly, it hit the first one - everything is ok with local domains, it got to Google domains - everything is ok with the world but troubles with the local zone).
I put strict-order in dnsmasq.conf, everything is ok with local domains, but the world does not work.
How to make it so that if a negative response is received (from the internal DNS with Vesta CP), a request goes to Google DNS? Or, what other options are there? But only without registration in the hosts on the gateway or on the working machine :)
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alegzz, 2015-11-04
@alegzz

server=/mydomain.ru/192.168.8.3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question