Skip to content

Subdomain gateway DNS lookup failure #133

@Dwiib

Description

@Dwiib

Describe the bug

Loading a static site such as http://ipfs.dappnode:8080/ipfs/bafybeiawq7pbt4krnopfmcvymvp2uz4ohibd5p7ugskkybvdmwa2v7evpy (vitalik.eth's content hash) redirects to cid.ipfs/ipns.ipfs.dappnode:8080 which is correct for IPFS subdomain support, but results in a DNS lookup failure.

Replacing ipfs.dappnode with the container IP works as expected

To Reproduce

Expected behavior

*.ipfs.dappnode should resolve to the container IP, and ipfs.ipfs.dappnode/ipns.ipfs.dappnode should function correctly as subdomain gateways. Note: IPFS redirects do not work with the more common gw.tld/ipfs/cid format, so subdomain gateways should be preferred. https://docs.ipfs.tech/how-to/websites-on-ipfs/redirects-and-custom-404s/

DAppNode version:

Core DAppNode Packages versions

    bind.dnp.dappnode.eth: 0.2.11
    core.dnp.dappnode.eth: 0.2.92
    dappmanager.dnp.dappnode.eth: 0.2.86, commit: ad99085d
    https.dnp.dappnode.eth: 0.2.1
    ipfs.dnp.dappnode.eth: 0.2.22
    wifi.dnp.dappnode.eth: 0.2.9
    wireguard.dnp.dappnode.eth: 0.1.3

System info

    dockerComposeVersion: 2.24.7
    dockerServerVersion: 25.0.4
    dockerCliVersion: 25.0.4
    os: debian
    versionCodename: bookworm
    architecture: amd64
    kernel: 6.1.0-18-amd64
    Disk usage: 29%
  • OS: Debian via unattended installer
  • Browser: Firefox

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions