Skip to content

Commit

Permalink
Closer replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Jan 25, 2024
1 parent 6eea02f commit 2b70234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/shared/fqdn.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func fqdn(ctx context.Context, hostname string) (string, error) {
return strings.ToLower(strings.TrimSuffix(cname, ".")), nil
}

ips, err := net.DefaultResolver.LookupIPAddr(ctx, hostname)
ips, err := net.DefaultResolver.LookupIP(ctx, "ip", hostname)
if err != nil {
errs = fmt.Errorf("%s: failed looking up IP: %w", errs, err)
}
Expand Down

0 comments on commit 2b70234

Please sign in to comment.