HSNM v10 disables DNS server on Mikrotik gateway
General questions and topics about hsnm

Rate this topic
   Post Reply
6 posts   •   Page 1 of 1
Gerard
Posts: 72
Joined: 30 Jun 2017, 10:02

HSNM v10 disables DNS server on Mikrotik gateway

by Gerard » 28 Jun 2023, 09:35

Hi,
Currently sitting on 10.0.339 coming from 9.3.130.
After the upgrade and re applying the scripts and scheduler (viewtopic.php?f=3&t=4861) the file "radiusip.rsc" contains a config line that disables the Mikrotik ability to answer DNS queries (/ip dns set allow-remote-request=no)
This is not good, we normally use the Mikrotik as the DNS server of the hotspot network and this line breaks things, every X time this configuration is reapplied.
Maybe this has something to do with the "Family DNS" feature, anyway we should have the ability to enable (or disable) this on the gateway config.

For now I have implemented a "fix", an script executed every 10 seconds that checks if the setting has been disabled and in this case it enables it again.
For anyone that might need it here it is:

Code: Select all

/system script add dont-require-permissions=no name=enableDNS owner=admin policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\ ":if ([/ip dns get allow-remote-request] != \"yes\") do={/ip dns set allow-remote-request=yes}" /system scheduler add interval=10s name=DNS-Check on-event=enableDNS policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-time=\ startup
Any ETA when this will be solved?

Thanks

HSNMSupport
Posts: 1532
Joined: 26 Jul 2016, 09:16

Re: HSNM v10 disables DNS server on Mikrotik gateway

by HSNMSupport » 28 Jun 2023, 09:39

Hi,
you can enable this option in your gw in the hsnm backend so the script will leave it enabled.
S.T.

Gerard
Posts: 72
Joined: 30 Jun 2017, 10:02

Re: HSNM v10 disables DNS server on Mikrotik gateway

by Gerard » 28 Jun 2023, 09:47

Hi,
you can enable this option in your gw in the hsnm backend so the script will leave it enabled.
S.T.
Where?

HSNMSupport
Posts: 1532
Joined: 26 Jul 2016, 09:16

Re: HSNM v10 disables DNS server on Mikrotik gateway

by HSNMSupport » 28 Jun 2023, 09:56

Here:
You do not have the required permissions to view the files attached to this post.

Gerard
Posts: 72
Joined: 30 Jun 2017, 10:02

Re: HSNM v10 disables DNS server on Mikrotik gateway

by Gerard » 28 Jun 2023, 10:25

Hi,
Thanks for answering this quickly

I kindly suggest to move this check to the "guest network" settings because all of our hotspots are set to "Manual configuration"
We use more complex configurations on our WAN side than HSNM allows to configure (multiple WAN, BGP...), also and looking at those settings if I select anything but "Static IP / DHCP" the option disappears.

HSNMSupport
Posts: 1532
Joined: 26 Jul 2016, 09:16

Re: HSNM v10 disables DNS server on Mikrotik gateway

by HSNMSupport » 28 Jun 2023, 14:50

We added a workaround in V10.1 (upcoming release).
If the config of the WAN is manual, RRD script will not edit DNS.
G.

Rate this topic

Who is online

Users browsing this forum: No registered users and 16 guests

It is currently 27 Apr 2024, 16:52