First of all i want to change a server address to an another one, but i don't know how to start it. This is my first time to use script in any mikrotik devices, so probably I'm a newbie :D .
I have addresses in dnsServer like 8.8.8.8 and 4.4.4.4, just for the example, and i want to put the 10.10.10.10 to next to them, but maybe i did something wrong , becouse it isn't working
Code: Select all
system script set test source={
:local dnsServer [/ip dns get servers];
:local append 10.10.10.10;
:local newdns [:put ("$dnsServer" , "$append ")];
/ip dns set servers=$newdns ;}
8.8.8.8;4.4.4.4;10.10.10.10
invalid value for argument server:
invalid value for argument ip
invalid value for argument ipv6
Sorry for my English!!!