diff options
| author | Handingkang <[email protected]> | 2023-11-14 21:23:27 +0800 |
|---|---|---|
| committer | Handingkang <[email protected]> | 2023-11-14 21:23:27 +0800 |
| commit | 5a15ec5f52d82ba796583f452dce60f47cc1bdf7 (patch) | |
| tree | 2ad11ccfdd27fb12dbbb7e007d9436a3a43fa180 | |
| parent | 7c69e7894ead3f1f9051d6d0000bc90dc0ef0ebb (diff) | |
SOA记录完善
| -rw-r--r-- | plugin/atk/atk.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/atk/atk.go b/plugin/atk/atk.go index 190778f..1ebd613 100644 --- a/plugin/atk/atk.go +++ b/plugin/atk/atk.go @@ -151,13 +151,14 @@ func (a Atk) Response(msg *dns.Msg, state request.Request) *dns.Msg { return msg } else { // 返回正常包 - //构建响应包 + // 返回SOA记录 msg = new(dns.Msg) msg.SetReply(state.Req) msg.Authoritative = true rep := new(dns.SOA) rep.Hdr = dns.RR_Header{Class: dns.ClassINET, Ttl: 10, Rrtype: dns.TypeAAAA, Name: state.QName()} rep.Ns = "ns6atk.n64.top." + rep.Mbox = "n64admin.163.com" rep.Serial = 1699833053 rep.Refresh = 3600 rep.Retry = 180 |
