洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected] · Reply to 洪 民憙 (Hong Minhee)'s post

Okay, it seems to work when I configured Node.js's default DNS resolution order to "ipv6first"… 🤔

Welcome to Node.js v23.5.0.
Type ".help" for more information.
> const dns = await import("node:dns");
undefined
> dns.setDefaultResultOrder("ipv6first");
undefined
> await fetch("https://social.zarchbox.fr/notes/a2dn3k8kt5hm3gci");
Response {
  status: 200,
  statusText: 'OK',
  headers: Headers {
    'alt-svc': 'h3=":443"; ma=2592000',
    'cache-control': 'public, max-age=15',
    'content-length': '10828',
    'content-security-policy': "default-src 'self' 'unsafe-inline'; img-src *; media-src *; frame-ancestors *",
    'content-type': 'text/html; charset=utf-8',
    date: 'Mon, 30 Dec 2024 16:32:22 GMT',
    server: 'Caddy',
    'strict-transport-security': 'max-age=15552000; preload',
    vary: 'Origin, Accept',
    'x-frame-options': 'DENY'
  },
  body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
  bodyUsed: false,
  ok: true,
  redirected: false,
  type: 'basic',
  url: 'https://social.zarchbox.fr/notes/a2dn3k8kt5hm3gci'
}
>
Welcome to Node.js v23.5.0. Type ".help" for more information. > const dns = await import("node:dns"); undefined > dns.setDefaultResultOrder("ipv6first"); undefined > await fetch("https://social.zarchbox.fr/notes/a2dn3k8kt5hm3gci"); Response { status: 200, statusText: 'OK', headers: Headers { 'alt-svc': 'h3=":443"; ma=2592000', 'cache-control': 'public, max-age=15', 'content-length': '10828', 'content-security-policy': "default-src 'self' 'unsafe-inline'; img-src *; media-src *; frame-ancestors *", 'content-type': 'text/html; charset=utf-8', date: 'Mon, 30 Dec 2024 16:32:22 GMT', server: 'Caddy', 'strict-transport-security': 'max-age=15552000; preload', vary: 'Origin, Accept', 'x-frame-options': 'DENY' }, body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true }, bodyUsed: false, ok: true, redirected: false, type: 'basic', url: 'https://social.zarchbox.fr/notes/a2dn3k8kt5hm3gci' } >