netstat -an | grep 42000 查看连接数,其中42000是端口。
1 查看DNS
cat /etc/resolv.conf
root@ubuntu:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 11.2.2.2 此11.2.2.2为DNS
2