dnsmasq set local dns server - only for specific networks

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
CoNtAcT2000
DD-WRT Novice


Joined: 03 Feb 2008
Posts: 16

PostPosted: Thu Nov 22, 2018 12:44    Post subject: dnsmasq set local dns server - only for specific networks Reply with quote
Hi guys,

my dhcp clients get my local dns server with the following commands in the DNSMasq options box:

Code:

dhcp-option= option:dns-server, 192.168.100.200

server = 8.8.8.8
server = 8.8.4.4


I have 4 Networks.
local LAN 19.168.100.0/24
local WLAN/wifi 192.168.24.0/24
guest WLAN/wifi 192.168.50.0/24
vlan4 192.168.10.0/24

All Networks have their own dhcp scopes.
But with these commands in the DNSMasq options box all Networks get my local DNS-Server 192.168.100.200.

I want deploy the local dns server for local lan+ local wlan/wifi only, not for the guest wlan/wifi and not for vlan4. They should use the google dns Server for internet access only.

Any help is appreciated

Thank you!
Sponsor
grc
DD-WRT User


Joined: 11 Jul 2018
Posts: 122

PostPosted: Thu Nov 22, 2018 15:04    Post subject: Reply with quote
you can define DNS Server for each interface, e.g.:

dhcp-option=br0,6,x.x.x.x.,y.y.y.y
dhcp-option=vlan4,6,x.x.x.x.,y.y.y.y
dhcp-option=wl0,6,x.x.x.x.,y.y.y.y
dhcp-option=wl0.1,6,x.x.x.x.,y.y.y.y
CoNtAcT2000
DD-WRT Novice


Joined: 03 Feb 2008
Posts: 16

PostPosted: Mon Nov 26, 2018 8:30    Post subject: Reply with quote
That works.
Thanky you!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum