30 lines
553 B
PHP
30 lines
553 B
PHP
<?php
|
|
|
|
namespace app\controller;
|
|
|
|
class DnsController
|
|
{
|
|
public function PTR($name,$rip,$id,$query)
|
|
{
|
|
$send['type']='PTR';
|
|
$send['detail']='dns.laysense.com';
|
|
$send['ttl']=30;
|
|
|
|
$send['id']=$id;
|
|
$send['query']=$query;
|
|
|
|
$return=json_encode($send);
|
|
return $return;
|
|
}
|
|
|
|
public function view(Request $request)
|
|
{
|
|
return view('index/view', ['name' => 'webman']);
|
|
}
|
|
|
|
public function json(Request $request)
|
|
{
|
|
return json(['code' => 0, 'msg' => 'ok']);
|
|
}
|
|
|
|
} |