Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
[SOLVED IN 17.1.8] Number of DNS servers (4) in System --> General --> Settings
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED IN 17.1.8] Number of DNS servers (4) in System --> General --> Settings (Read 3896 times)
intrepid2007
Newbie
Posts: 14
Karma: 1
[SOLVED IN 17.1.8] Number of DNS servers (4) in System --> General --> Settings
«
on:
May 21, 2017, 11:09:13 am »
Hi there,
First my question (it is more a request for a new feature):
The number of DNS servers in System --> General --> Settings is _limited_ to 4 DNS servers.
Are there plans to make this dynamic, so more DNS servers can be specified?
pfSense has this feature and it is quite useful.
Why am I asking this?
In my setup I assign an IP address + DNS servers to each LAN client via the DHCP server.
These DNS servers are also configured in System --> General --> Settings:
Here I assign each DNS server to a specific gateway. I want to ensure that the query goes through that gateway only. DNS forwarding/resolver is disabled.
In general, VPN providers provide 2 DNS servers.
So when you have 3 VPN client connections in your system, you would need to configure 3x2 = 6 DNS servers in System-->General-->Settings... But that is impossible at the moment. So now I 'only' configure 1 DNS server per VPN provider..
(I also have a set of firewall rules configured, each rule specify an IP-range and a specific gateway. This way I can route LAN clients in the 192.168.0.1x range to VPN provider A, LAN clients in the 192.168.0.2x range to VPN provider B etcetera... This works fine, no leaks...)
Thanks!
«
Last Edit: May 23, 2017, 09:25:49 am by franco
»
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: [feature request] Number of DNS servers (4) in System --> General --> Settings
«
Reply #1 on:
May 22, 2017, 07:29:08 am »
Hi there,
This was added recently, bumping the number to 8 as a first step:
https://github.com/opnsense/core/commit/7e34c30
This is already the backport for version 17.1.8, you can install it directly on top of 17.1.7 with:
# opnsense-patch 7e34c30
There will be another commit lifting the arbitrary limit, but it may come with a rewrite of the gateway setting handling, which isn't modelled flexibly alongside the DNS servers.
Cheers,
Franco
Logged
intrepid2007
Newbie
Posts: 14
Karma: 1
Re: [feature request] Number of DNS servers (4) in System --> General --> Settings
«
Reply #2 on:
May 22, 2017, 02:03:30 pm »
Hi Franco,
Thank you for your reply!
Yes, I can see that code changes have been committed last week!
Later today I will give it a try !!
Thanks!
Update: I just applied the patch, everything went fine!
«
Last Edit: May 22, 2017, 08:51:56 pm by intrepid2007
»
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: [feature request] Number of DNS servers (4) in System --> General --> Settings
«
Reply #3 on:
May 23, 2017, 09:25:33 am »
Thanks for looking at this, I'll try to break this up into a flexible array for 17.7 and then we're good on this front.
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
[SOLVED IN 17.1.8] Number of DNS servers (4) in System --> General --> Settings