EC20CE拨号成功,还是无法上网,能ping 通 DNS 服务器的 IP,但 DNS 查询(UDP/TCP 53 端口)全部失败

hcsci@ipms01:~$ ping www.baidu.com
ping: www.baidu.com: Temporary failure in name resolution
hcsci@ipms01:~$ sudo ping -I usb0 114.114.114.114
PING 114.114.114.114 (114.114.114.114) from 10.203.0.3 usb0: 56(84) bytes of data.
^C
— 114.114.114.114 ping statistics —
109 packets transmitted, 0 received, 100% packet loss, time 110580ms

hcsci@ipms01:~$ ^C
hcsci@ipms01:~$ sudo ping -I usb0 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 10.203.0.3 usb0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=109 time=401 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=109 time=513 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=109 time=472 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=109 time=431 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=109 time=390 ms
^C
— 8.8.8.8 ping statistics —
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 389.970/441.163/512.743/45.682 ms
hcsci@ipms01:~$ sudo ping -I usb0 223.5.5.5
PING 223.5.5.5 (223.5.5.5) from 10.203.0.3 usb0: 56(84) bytes of data.
64 bytes from 223.5.5.5: icmp_seq=1 ttl=53 time=133 ms
64 bytes from 223.5.5.5: icmp_seq=2 ttl=53 time=57.2 ms
64 bytes from 223.5.5.5: icmp_seq=3 ttl=53 time=41.4 ms
64 bytes from 223.5.5.5: icmp_seq=4 ttl=53 time=37.8 ms
64 bytes from 223.5.5.5: icmp_seq=5 ttl=53 time=43.9 ms
^C
— 223.5.5.5 ping statistics —
5 packets transmitted, 5 received, 0% packet loss, time 4007ms
rtt min/avg/max/mdev = 37.758/62.735/133.345/35.911 ms
hcsci@ipms01:~$ sudo ping -I usb0 114.114.114.114
PING 114.114.114.114 (114.114.114.114) from 10.203.0.3 usb0: 56(84) bytes of data.
^C
— 114.114.114.114 ping statistics —
4 packets transmitted, 0 received, 100% packet loss, time 3085ms

hcsci@ipms01:~$ sudo ping -I usb0 119.29.29.29
PING 119.29.29.29 (119.29.29.29) from 10.203.0.3 usb0: 56(84) bytes of data.
64 bytes from 119.29.29.29: icmp_seq=2 ttl=52 time=163 ms
64 bytes from 119.29.29.29: icmp_seq=3 ttl=52 time=76.3 ms
64 bytes from 119.29.29.29: icmp_seq=4 ttl=52 time=62.2 ms
^C
— 119.29.29.29 ping statistics —
4 packets transmitted, 3 received, 25% packet loss, time 3040ms
rtt min/avg/max/mdev = 62.192/100.627/163.435/44.781 ms
hcsci@ipms01:~$ dig @223.5.5.5 www.baidu.com

; <<>> DiG 9.18.1-1ubuntu1-Ubuntu <<>> @223.5.5.5 www.baidu.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached

hcsci@ipms01:~$ dig @119.29.29.29 www.baidu.com

; <<>> DiG 9.18.1-1ubuntu1-Ubuntu <<>> @119.29.29.29 www.baidu.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached

hcsci@ipms01:~$ dig @8.8.8.8 www.baidu.com

; <<>> DiG 9.18.1-1ubuntu1-Ubuntu <<>> @8.8.8.8 www.baidu.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached

AT+CREG?
+CREG: 0,1

OK

那就是DNS解析服务器没有配置,对应的确认一下你的系统是如何配置DNS解析服务器地址。通常linux的配置文件是/etc/resolv.conf

移远技术支持提供的default.script放到/etc/udhcpc/下后问题解决