|
|
@@ -89,7 +89,7 @@ func (v *UDPNameServer) AssignUnusedID(response chan<- *ARecord) uint16 {
|
|
|
if _, found := v.requests[id]; found {
|
|
|
continue
|
|
|
}
|
|
|
- log.Trace(errors.New("DNS: Add pending request id ", id).AtDebug())
|
|
|
+ log.Trace(errors.New("add pending request id ", id).AtDebug().Path("App", "DNS", "UDPNameServer"))
|
|
|
v.requests[id] = &PendingRequest{
|
|
|
expire: time.Now().Add(time.Second * 8),
|
|
|
response: response,
|
|
|
@@ -105,7 +105,7 @@ func (v *UDPNameServer) HandleResponse(payload *buf.Buffer) {
|
|
|
msg := new(dns.Msg)
|
|
|
err := msg.Unpack(payload.Bytes())
|
|
|
if err != nil {
|
|
|
- log.Trace(errors.New("DNS: Failed to parse DNS response: ", err).AtWarning())
|
|
|
+ log.Trace(errors.New("failed to parse DNS response").Base(err).AtWarning().Path("App", "DNS", "UDPNameServer"))
|
|
|
return
|
|
|
}
|
|
|
record := &ARecord{
|
|
|
@@ -113,7 +113,7 @@ func (v *UDPNameServer) HandleResponse(payload *buf.Buffer) {
|
|
|
}
|
|
|
id := msg.Id
|
|
|
ttl := DefaultTTL
|
|
|
- log.Trace(errors.New("DNS: Handling response for id ", id, " content: ", msg.String()).AtDebug())
|
|
|
+ log.Trace(errors.New("handling response for id ", id, " content: ", msg.String()).AtDebug().Path("App", "DNS", "UDPNameServer"))
|
|
|
|
|
|
v.Lock()
|
|
|
request, found := v.requests[id]
|
|
|
@@ -201,7 +201,7 @@ func (v *LocalNameServer) QueryA(domain string) <-chan *ARecord {
|
|
|
|
|
|
ips, err := net.LookupIP(domain)
|
|
|
if err != nil {
|
|
|
- log.Trace(errors.New("failed to lookup IPs for domain ", domain).Path("App", "DNS").Base(err))
|
|
|
+ log.Trace(errors.New("failed to lookup IPs for domain ", domain).Path("App", "DNS", "LocalNameServer").Base(err))
|
|
|
return
|
|
|
}
|
|
|
|