OpenNIC to configure the mikrotik router?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
98 views
Help with setting up OpenNic on Mikrotik.
In simpler firmware from Padavan enough to register in dnsmasq.servers for the access area lib
spoiler
dnsmasq.servers Padawan of:
server=/lib/*.*.*.*
server=/bit/*.*.*.*
server=/free/*.*.*.*
server=/emc/*.*.*.*
server=/coin/*.*.*.*
server=/bazar/*.*.*.*
by | 98 views

2 Answers

0 like 0 dislike
As far as I understand the question, it is sufficient to disable getting DNS via DHCP from the ISP and install OpenNIC servers in /ip dns
by
0 like 0 dislike
Did
/ip firewall layer7-protocol add comment="OpenNIC - dns relay" name=OpenNIC regexp="^.+(.bbs|.chan|.cyb|.dyn|.geek|.gopher|.indy|.libre|.neo|.null|.o|.oss|.oz|.parody|.pirate|.opennic.glue|.dns.opennic.glue).*\\$" /ip firewall nat add action=dst-nat chain=dstnat comment="OpenNIC - dns relay" connection-mark=OpenNIC-forward to-addresses=185.121.177.177 /ip firewall nat add action=masquerade chain=srcnat comment="OpenNIC - dns relay" connection-mark=OpenNIC-forward /ip firewall mangle add action=mark-connection chain=PREROUTING policy comment="OpenNIC dns relay" dst-address=192.168.254.1 dst-port=53 layer7-protocol=OpenNIC new-connection-mark=OpenNIC-forward passthrough=yes protocol=tcp /ip firewall mangle add action=mark-connection chain=PREROUTING policy comment="OpenNIC dns relay" dst-address=192.168.254.1 dst-port=53 layer7-protocol=OpenNIC new-connection-mark=OpenNIC-forward passthrough=yes protocol=udp


192.168.254.1 address of your router listed as the DNS on the client.
185.121.177.177 address of the resolver ( https://wiki.opennic.org/doku.php#anycast_tier_2_d... )

PS
Maybe the RegExp is written incorrectly, because it was done at random.
by

Related questions

110,608 questions
257,186 answers
0 comments
35,392 users