@tangxiusi
Have you tried the following commands to retrieve your currently used DNS?
cat /etc/config/dhcp | grep 'list server' | cut -d\' -f2
or
cat /tmp/resolv.conf.auto | grep 'nameserver' | cut -d' ' -f2
This should work for custom DNS. Otherwise if you want to retrieve the DNS from your ISP that’s another question. In my case, I’m looking precisely for the right commands and their order to set and apply custom DNS address.