@luisblop
thanks very much and the last way your provide can get the obtain dns well. so I use the command
cat /tmp/resolv.conf.auto | grep ‘nameserver’ | cut -d’ ’ -f2
replace the code your write before , now it work well