xnstool 一条curl 获取ip地址和dns配置
来源:互联网 发布:国际版淘宝怎么样 编辑:程序博客网 时间:2024/06/03 23:46
[root@sigapore2 ~]# curl "http://1074357303-888321920-fastweb.pbt.cloudxns.net/fast_tools/display_ldns_diag_client.php?l=zh-cn"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>客户端dns检测 </title></head><body><style>.dns{font-size:14px;line-height: 30px; margin: 0 0 30px 0;color: #666;}.dns th{color: #0090f4;text-align: right;font-weight: 400;white-space: nowrap;}.dns td{padding: 0 0 0 20px;white-space: nowrap;}.result{font-size:14px;line-height: 30px;color: #0090f4; }.advice{font-size:14px; line-height: 30px; margin: 0 0 30px 0; color: #666;}.advice td{ padding: 0 30px 0 0; white-space: nowrap;}.tips h4{color: #0090f4;font-size:14px; line-height: 30px;font-weight: 400;}.tips p{color: #666;font-size:14px; line-height: 24px;}</style> <pre> <table border="0" cellpadding="0" cellspacing="0" class="dns"> <tr> <th>您的IP:</th> <td width="128" >116.251.211.183</td> <td>境外_新加坡</td> </tr> <tr> <th>您的DNS:</th> <td width="128" >116.251.208.254</td> <td>境外_新加坡</td> </tr> </table> </pre> <p class="result">您的DNS配置正确! </p></body></html>
ip地址好得到,不过不知道dns它是怎么搞到的,而且上面的还搞错了
[root@sigapore2 ~]# cat /etc/resolv.conf nameserver 116.251.208.201nameserver 116.251.208.202
阅读全文
0 0
- xnstool 一条curl 获取ip地址和dns配置
- Linux 下配置IP地址和DNS(centOS)
- Linux下配置静态IP地址,设置DNS和主机名
- CentOS6.2 配置IP地址、网关和DNS
- 如何为SUSE配置IP地址,网关和DNS
- ubuntu下配置静态IP地址,设置DNS和主机名
- Linux下配置静态IP地址,设置DNS和主机名
- 配置IP和DNS
- IP地址或DNS没有获取正确
- 【方法】lwip-2.0.2配置DHCP自动从路由器获取IP地址和DNS服务器地址, 并设置NetBIOS计算机名
- Ubuntu 下 IP 地址与DNS配置
- linux_下IP、网关、DNS地址配置
- DOS命令配置IP地址、DNS
- linux_下IP、网关、DNS地址配置
- linux_下IP、网关、DNS地址配置
- linux_下IP、网关、DNS地址配置
- debain 配置IP和DNS
- linux 配置IP和DNS
- hanoi问题
- 【NOJ】[1001] 纸牌游戏
- HDU 1869 六度分离
- 数据结构实验之栈与队列四:括号匹配 sdut-oj
- ACM动态规划总结 dp
- xnstool 一条curl 获取ip地址和dns配置
- [暴力]#514. 「LibreOJ β Round #2」模拟只会猜题意
- DOM常用方法之 插入,删除,添加等。
- 进制转换
- Restful Api写法心得之二《参数接收篇》
- java建立顺序表及增删改查功能实现
- 序列化二叉树
- java打印菱形
- 机器数的原码、反码、补码、移码表示以及浮点数的二进制表示