Where to specify DNS/nameserver for Strapi's internal Fetch?

System Information
  • Strapi Version: 3.6.2
  • Operating System: Fedora
  • Database: Sqlite3
  • Node Version: v14.17.0
  • NPM Version: 6.14.13
  • Yarn Version: v1.22.10

Hello,

I’m just getting Strapi installed for the 1st time.

After yarn build when I start it with systemctl start strapi

May 20 11:59:52 thad.loc strapi[49094]:  Project information
May 20 11:59:52 thad.loc strapi[49094]: ┌────────────────────┬──────────────────────────────────────────────────┐
May 20 11:59:52 thad.loc strapi[49094]: │ Time               │ Thu May 20 2021 11:59:52 GMT-0400 (Eastern Dayl… │
May 20 11:59:52 thad.loc strapi[49094]: │ Launched in        │ 1357 ms                                          │
May 20 11:59:52 thad.loc strapi[49094]: │ Environment        │ development                                      │
May 20 11:59:52 thad.loc strapi[49094]: │ Process PID        │ 49094                                            │
May 20 11:59:52 thad.loc strapi[49094]: │ Version            │ 3.6.2 (node v14.17.0)                            │
May 20 11:59:52 thad.loc strapi[49094]: │ Edition            │ Community                                        │
May 20 11:59:52 thad.loc strapi[49094]: └────────────────────┴──────────────────────────────────────────────────┘
May 20 11:59:52 thad.loc strapi[49094]:  Actions available
May 20 11:59:52 thad.loc strapi[49094]: One more thing...
May 20 11:59:52 thad.loc strapi[49094]: Create your first administrator 💻 by going to the administration panel at:
May 20 11:59:52 thad.loc strapi[49094]: ┌────────────────────────────────────────────────┐
May 20 11:59:52 thad.loc strapi[49094]: │ https://strapi.thad.loc/api/admin              │
May 20 11:59:52 thad.loc strapi[49094]: └────────────────────────────────────────────────┘
May 20 11:59:52 thad.loc strapi[49094]: FetchError: request to https://strapi.thad.loc/api/admin failed, reason: getaddrinfo ENOTFOUND strapi.thad.loc
May 20 11:59:52 thad.loc strapi[49094]:     at ClientRequest.<anonymous> (/home/thad/strapi/node_modules/node-fetch/lib/index.js:1461:11)
May 20 11:59:52 thad.loc strapi[49094]:     at ClientRequest.emit (events.js:376:20)
May 20 11:59:52 thad.loc strapi[49094]:     at TLSSocket.socketErrorListener (_http_client.js:475:9)
May 20 11:59:52 thad.loc strapi[49094]:     at TLSSocket.emit (events.js:376:20)
May 20 11:59:52 thad.loc strapi[49094]:     at emitErrorNT (internal/streams/destroy.js:106:8)
May 20 11:59:52 thad.loc strapi[49094]:     at emitErrorCloseNT (internal/streams/destroy.js:74:3)
May 20 11:59:52 thad.loc strapi[49094]:     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
May 20 11:59:52 thad.loc strapi[49094]:   type: 'system',
May 20 11:59:52 thad.loc strapi[49094]:   errno: 'ENOTFOUND',
May 20 11:59:52 thad.loc strapi[49094]:   code: 'ENOTFOUND'
May 20 11:59:52 thad.loc strapi[49094]: }

I’m guessing that FetchError is becuase it’s not using my lan’s internal DNS server, where the strapi.thad.loc address is configured.

How do you set the resolver that Strapi should be using for the Fetch?

I’d expect in probably in “config/server.js” but I can’t find any mention of dns setting in the docs.

Or is this something else entirely?

Thanks,

Thad

Hello Any update about it because i have the same error during deployment on digitalOcean??