mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #19338 from swordqiu/hotfix/qj-resolve-local-domain
fix: not resolve local domain with dns records
This commit is contained in:
+5
-3
@@ -447,9 +447,11 @@ func (r *SRegionDNS) isMyDomain(req *recordRequest) bool {
|
||||
|
||||
func (r *SRegionDNS) findRecords(req *recordRequest) ([]msg.Service, error) {
|
||||
// 1. try local dns records table
|
||||
rrs := r.queryLocalDnsRecords(req)
|
||||
if len(rrs) > 0 {
|
||||
return rrs, nil
|
||||
if !r.isMyDomain(req) {
|
||||
rrs := r.queryLocalDnsRecords(req)
|
||||
if len(rrs) > 0 {
|
||||
return rrs, nil
|
||||
}
|
||||
}
|
||||
|
||||
isPlainName := req.IsPlainName()
|
||||
|
||||
Reference in New Issue
Block a user