FuelLabs / fuel-core

Rust full node implementation of the Fuel v2 protocol.
Other
57.95k stars 2.79k forks source link

fix(dnsaddr_resolution): use fqdn separator to prevent suffixing by dns resolvers #2222

Closed rymnc closed 1 month ago

rymnc commented 1 month ago

Linked Issues/PRs

Description

Some dns resolvers nslookup etc, suffix dns lookups with the local domain if they are not fully-qualified. This PR makes the dns lookup FQDN, with a dot at the end.

Checklist

Before requesting review

After merging, notify other teams

[Add or remove entries as needed]

Voxelot commented 1 month ago

is there a way we could make this test more self contained / work in an offline mode? It seems like depending on an external URL host could be fragile.

xgreenx commented 1 month ago

Test will fail in offline mode, but it is a small price to pay to verify that feature works properly=)