Darien Raymond 7 years ago
parent
commit
fb7dd1a577
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/dns/server.go

+ 1 - 1
app/dns/server.go

@@ -128,7 +128,7 @@ func (s *Server) LookupIP(domain string) ([]net.IP, error) {
 	if s.domainMatcher != nil {
 		idx := s.domainMatcher.Match(domain)
 		if idx > 0 {
-			ns := s.servers[idx]
+			ns := s.servers[s.domainIndexMap[idx]]
 			ips, err := s.queryIPTimeout(ns, domain)
 			if len(ips) > 0 {
 				return ips, nil