21 lines
425 B
PHP
21 lines
425 B
PHP
|
<?php
|
||
|
|
||
|
namespace app\controller;
|
||
|
include_once base_path().'/vendor/laysense/dns/src/resource/ipv6.php';
|
||
|
use dnstools\ipv6; #用于IPv6相关
|
||
|
$ipv6=new IPv6;
|
||
|
$ipv6->ip2bin($ip);
|
||
|
|
||
|
class DnsController
|
||
|
{
|
||
|
public function DNS($type,$name,$rip,$id,$query)
|
||
|
{
|
||
|
|
||
|
|
||
|
#此处无需修改
|
||
|
$send['id']=$id;
|
||
|
$send['query']=$query;
|
||
|
$return=json_encode($send);
|
||
|
return $return;
|
||
|
}
|
||
|
}
|