YoungxjTools/dnstest/index.php

79 lines
3.6 KiB
PHP
Raw Normal View History

2018-05-01 08:36:53 +00:00
<?php
$id="23";
include '../header.php';?>
<div class="container clearfix">
<div class="row row-xs">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-10 col-xs-offset-1 col-sm-offset-3 col-md-offset-3 col-lg-offset-3">
<div class="page-header">
<h3 class="text-center h3-xs"><?php echo $title;?><small class="text-capitalize"><?php echo $subtitle;?></small></h3>
</div>
<h5 class="text-right"><small><?php echo $explains;?></small></h5>
<div class="form-group" id="input-wrap">
<label class="control-label control-msg" for="inputContent" copy="Youngxj|杨小杰admin@youngxj.com"></label>
</div><!-- /.col-lg-6 -->
<div class="table-responsive position text-center">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th width="80px"></th>
<th class="text-center">本机IP</th>
<th class="text-center">本机DNS</th>
</tr>
</thead>
<tbody>
<tr>
<th>IP 信息</th>
<td id="ip"></td>
<td id="dns"></td>
</tr>
<tr>
<th>地址信息</th>
<td id="ip_add"></td>
<td id="dns_add"></td>
</tr>
<tr>
<th>网络信息</th>
<td id="ip_isp"></td>
<td id="dns_isp"></td>
</tr>
<tr>
<th>检查结果</th>
<td colspan="2" id="res"></td>
</tr>
</tbody>
</table>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">工具简介</h3>
</div>
<div class="panel-body">
<p>利用本工具能检测您本地的上网IP以及DNS相关信息可用于判断DNS设置是否正确及是否遭到DNS劫持。</p>
<p class="text-info">附常用DNS</p>
<p>114DNS
<br>114.114.114.114 114.114.115.115</p>
<p>阿里 DNS (
<a href="http://www.alidns.com/" target="_blank">http://www.alidns.com/</a>)
<br>223.5.5.5 223.6.6.6</p>
<p>百度 DNS (
<a href="http://dudns.baidu.com/intro/publicdns/" target="_blank">http://dudns.baidu.com/intro/publicdns/</a>)
<br>180.76.76.76</p>
<p>DNS (
<a href="http://www.dnspai.com/public.html" target="_blank">http://www.dnspai.com/public.html</a>)
<br>电信首选101.226.4.6 联通首选123.125.81.6 移动首选101.226.4.6 铁通首选101.226.4.6</p>
<p>OneDNS (
<a href="http://www.onedns.net/" target="_blank">http://www.onedns.net/</a>)
<br>南方112.124.47.27 北方114.215.126.16 共用42.236.82.22</p>
<p>Google DNS
<br>8.8.8.8 8.8.4.4</p>
<p>OpenDNS (
<a href="https://www.opendns.com/" target="_blank">https://www.opendns.com/</a>)
<br>208.67.222.222 208.67.220.220</p>
<p>360 DNS
<br>101.226.4.6 123.125.81.6</p></div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="dnstest.php?rand=<?php echo md5(md5((int)(time()/10)).encryption(1));?>&_=<?php echo randomFloat(1, 99999999);?>"></script>
<?php include '../footer.php';?>