Skip to content

Commit

Permalink
doc: 增加打印
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmini committed Apr 11, 2023
1 parent 7a04b25 commit bdc3a52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ func getDnsForPodIP(svc []*Service) (ipMaps map[string][]string, err error) {
for _, value := range svc {
dnsForK8sSvc := fmt.Sprintf("%s.%s.svc.cluster.local", value.SvcName, value.Namespace)
ipRecords, err := net.LookupIP(dnsForK8sSvc)
fmt.Println(ipRecords)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit bdc3a52

Please sign in to comment.