@luisblop
there are some problem in my test, maybe our network environment are different. my device is under a main router and use dhcp.
so there is a error when retrieve the currently used DNS address, like this:
root@GL-AR300M:/# uci get dhcp.@dnsmasq[0].server
uci: Entry not found
so I think is there a better way to get DNS?