Skip to content

Commit

Permalink
pasta: switch dns ip to 169.254.1.1
Browse files Browse the repository at this point in the history
Per feedback[1] the 169.254.0.0/24 range is reserved for future use in
RFC 3927. As such we should not use it here as it might break in the
future if the range gets assigned a new meaning. Switch to 169.254.1.1.

[1] containers/podman#23791 (comment)

Signed-off-by: Paul Holzinger <[email protected]>
  • Loading branch information
Luap99 committed Sep 2, 2024
1 parent 46d7cf9 commit c555424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libnetwork/pasta/pasta_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const (

// dnsForwardIpv4 static ip used as nameserver address inside the netns,
// given this is a "link local" ip it should be very unlikely that it causes conflicts
dnsForwardIpv4 = "169.254.0.1"
dnsForwardIpv4 = "169.254.1.1"
)

type SetupOptions struct {
Expand Down

0 comments on commit c555424

Please sign in to comment.