HighSpeaker/.history/app/controller/DnsController_20221219174901.php
2022-12-19 19:49:52 +08:00

21 lines
433 B
PHP

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