I want to use a script which will add 3 DNS server to my RB with RouterOS 5.17.
This is working:
Code: Select all
ip dns set servers=4.2.2.1,"4.2.2.2"
Code: Select all
:local DNS1
:local DNS2
:local DNS3
:set DNS1 "208.67.222.222"
:set DNS2 "4.2.2.1"
:set DNS3 "208.67.220.220"
/ip dns set servers=$DNS1,$DNS2,$DNS3
What's wrong?