You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
We have a program that will get the pod's dns via dns reverse query, it works in aks 1.31 but on 1.32 it failed with the following error:
2025-03-03T06:54:39.433868+00:00 af80d705-9259-4940-84a6-f30f750da0af directdns debug looking up PTR for 10.240.10.253 using server 10.0.0.10
2025-03-03T06:54:39.438568+00:00 af80d705-9259-4940-84a6-f30f750da0af directdns error invalid response for 10.240.10.253: NXDOMAIN
Optional: Set the appropriate GitHub label(s) to indicate the AKS feature or area you believe your bug relates to.
To Reproduce
Steps to reproduce the behavior:
dig a pod ip's dns.
Also can use this function:
func doServerReverseLookup(ctx context.Context, addr string, server string, logger *log.Entry) ([]string, error) {
logger.Debugf("looking up PTR for %s using server %s", addr, server)
c := dns.Client{}
m := dns.Msg{}
reverseAddr, err := dns.ReverseAddr(addr)
if err != nil {
return nil, fmt.Errorf("could not reverse %s: %v", addr, err)
}
m.SetQuestion(reverseAddr, dns.TypePTR)
r, t, err := c.ExchangeContext(ctx, &m, server+":53")
if err != nil {
return nil, fmt.Errorf("failed to perform PTR lookup for %s: %v", addr, err)
}
logger.Tracef("PTR lookup for %s took %v", addr, t)
if r.Rcode != dns.RcodeSuccess {
return nil, fmt.Errorf("invalid response for %s: %v", addr, dns.RcodeToString[r.Rcode])
}
hosts := make([]string, 0)
for _, ans := range r.Answer {
host := ans.(*dns.PTR).Ptr
if strings.HasSuffix(host, ".") {
host = host[0 : len(host)-1]
}
hosts = append(hosts, host)
}
return hosts, nil
}
Run command '...'
See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem. Make sure not to include sensitive or personal information.
Environment (please complete the following information):
CLI Version 1.31
Kubernetes version 1.32
CLI Extension version [e.g. 1.7.5] if applicable
Browser [e.g. chrome, safari] is applicable
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
We have a program that will get the pod's dns via dns reverse query, it works in aks 1.31 but on 1.32 it failed with the following error:
2025-03-03T06:54:39.433868+00:00 af80d705-9259-4940-84a6-f30f750da0af directdns debug looking up PTR for 10.240.10.253 using server 10.0.0.10
2025-03-03T06:54:39.438568+00:00 af80d705-9259-4940-84a6-f30f750da0af directdns error invalid response for 10.240.10.253: NXDOMAIN
Optional: Set the appropriate GitHub label(s) to indicate the AKS feature or area you believe your bug relates to.
To Reproduce
Steps to reproduce the behavior:
dig a pod ip's dns.
Also can use this function:
func doServerReverseLookup(ctx context.Context, addr string, server string, logger *log.Entry) ([]string, error) {
logger.Debugf("looking up PTR for %s using server %s", addr, server)
c := dns.Client{}
m := dns.Msg{}
reverseAddr, err := dns.ReverseAddr(addr)
if err != nil {
return nil, fmt.Errorf("could not reverse %s: %v", addr, err)
}
m.SetQuestion(reverseAddr, dns.TypePTR)
r, t, err := c.ExchangeContext(ctx, &m, server+":53")
if err != nil {
return nil, fmt.Errorf("failed to perform PTR lookup for %s: %v", addr, err)
}
logger.Tracef("PTR lookup for %s took %v", addr, t)
if r.Rcode != dns.RcodeSuccess {
return nil, fmt.Errorf("invalid response for %s: %v", addr, dns.RcodeToString[r.Rcode])
}
hosts := make([]string, 0)
for _, ans := range r.Answer {
host := ans.(*dns.PTR).Ptr
if strings.HasSuffix(host, ".") {
host = host[0 : len(host)-1]
}
hosts = append(hosts, host)
}
}
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem. Make sure not to include sensitive or personal information.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: