mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-21 02:08:40 +02:00
[client] Support CNAME in local resolver (#3646)
This commit is contained in:
parent
14913cfa7a
commit
d6b0673580
@ -71,6 +71,12 @@ func (d *localResolver) lookupRecords(r *dns.Msg) []dns.RR {
|
|||||||
|
|
||||||
value, found := d.records.Load(key)
|
value, found := d.records.Load(key)
|
||||||
if !found {
|
if !found {
|
||||||
|
// alternatively check if we have a cname
|
||||||
|
if question.Qtype != dns.TypeCNAME {
|
||||||
|
r.Question[0].Qtype = dns.TypeCNAME
|
||||||
|
return d.lookupRecords(r)
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user