Skip to content

Commit

Permalink
change all domains lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurHlt committed Sep 8, 2023
1 parent 9698e3e commit e60b4c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resolvers/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

const (
defaultTtl = 60
allMemberHost = "*."
allMemberHost = "_all."
)

type entryRef struct {
Expand Down Expand Up @@ -185,7 +185,7 @@ func (h *GSLBHandler) seeAll(entry *entries.Entry, queryType uint16) []dns.RR {
rrs := make([]dns.RR, 0)
for _, member := range members {
rr, err := dns.NewRR(
fmt.Sprintf("%s %d IN %s %s", entry.GetFqdn(), entry.GetTtl(), dns.TypeToString[queryType], member.GetIp()),
fmt.Sprintf("%s%s %d IN %s %s", allMemberHost, entry.GetFqdn(), entry.GetTtl(), dns.TypeToString[queryType], member.GetIp()),
)
if err != nil {
log.Errorf("error creating dns RR: %s", err.Error())
Expand Down

0 comments on commit e60b4c3

Please sign in to comment.