mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
dns: set ttl to minttl config for custom dns recordings
This commit is contained in:
1 parent
3c50c46eb9
commit
c89d6018cf
9 files changed
+89
-83
No files matched your search
+1
-1
@@ -277,7 +277,7 @@ func (c *Client) GenResponse(domain string, ip string) (*Message, error) {
|
||||
m := NewMessage(0, Response)
|
||||
m.SetQuestion(NewQuestion(qtype, domain))
|
||||
rr := &RR{NAME: domain, TYPE: qtype, CLASS: ClassINET,
|
||||
RDLENGTH: rdlen, RDATA: rdata}
|
||||
TTL: uint32(c.config.MinTTL), RDLENGTH: rdlen, RDATA: rdata}
|
||||
m.AddAnswer(rr)
|
||||
|
||||
return m, nil
|
||||
|
||||
Reference in new issue
Block a user