Skip to content

Commit

Permalink
feat: add query type to dns query debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
bschaatsbergen committed Feb 11, 2024
1 parent 1a959c8 commit b843e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func SendDNSQuery(client *dns.Client, msg dns.Msg, dnsServerIP, dnsServerPort st

addr := net.JoinHostPort(dnsServerIP, dnsServerPort)

logrus.Debugf("Sending DNS query to %s", addr)
logrus.Debugf("Sending DNS query to %s with query type: %s", dnsServerIP, dns.TypeToString[msg.Question[0].Qtype])
response, timeDuration, err := client.Exchange(&msg, addr)

if err != nil {
Expand Down

0 comments on commit b843e6c

Please sign in to comment.