Linux view the DNS IP

A, Linux system
1, see IP
ifconfig
2, see Gateway
netstat -rn
3, see the dns
CAT /etc/resolv.conf

Two, window system
1, window view the IP
the ipconfig
2, see Gateway
the ipconfig
. 3, see the local DNS
the ipconfig / All

DNS
nslookup domain
dig domain
dig + trace domain name

Guess you like

Origin www.cnblogs.com/2018-05-9-ygk/p/11939241.html