Back

[SOLVED]"Error: Couldn't resolve host name" on function domain

  • 0
  • Self Hosted
  • Functions
kamal.panara
19 Jan, 2024, 19:11

try creating wild-card sub-domain in your DNS settings for functions

TL;DR
Issue: "Error: Couldn't resolve host name" when accessing function domain Possible Solution: 1. Check if the SSL certificate for the function domain has been assigned automatically by Appwrite. If not, manually assign it by running the command `docker compose exec appwrite ssl domain="<your-function-domain>"` in your Appwrite VPS via SSH. 2. Make sure the A record for the function domain is set correctly. Create a wildcard sub-domain in your DNS settings for functions, such as `*.appwrite.xyz.com`, and point it to your Appwrite VPS's IP Address. 3. If the problem persists,
Philipp
19 Jan, 2024, 19:15

how do i do that?

kamal.panara
19 Jan, 2024, 19:15

like this *.appwrite.xyz.com and point it to your Appwrite VPS's IP Address, just like you did with appwrite.xyz.com.

Philipp
19 Jan, 2024, 19:15

A record?

kamal.panara
19 Jan, 2024, 19:16

yes

Philipp
19 Jan, 2024, 19:18

like this right?

kamal.panara
19 Jan, 2024, 19:18

yes

kamal.panara
19 Jan, 2024, 19:19

what is your domain name for appwrite ?

Philipp
19 Jan, 2024, 19:20

why?

kamal.panara
19 Jan, 2024, 19:20

*.<whatever-is-your-domain-name>

Philipp
19 Jan, 2024, 19:21

yes, thats the value i put for the a record

kamal.panara
19 Jan, 2024, 19:21

okay perfect

Philipp
19 Jan, 2024, 19:21

but with an appwrite in between like here

Philipp
19 Jan, 2024, 19:22

so now i got an A record with *.appwrite and one with appwrite

kamal.panara
19 Jan, 2024, 19:22

okay, what TTL did you set

Philipp
19 Jan, 2024, 19:23

300

Philipp
19 Jan, 2024, 19:23

the function url now works

Philipp
19 Jan, 2024, 19:23

thanks

kamal.panara
19 Jan, 2024, 19:23

perfect!

Philipp
19 Jan, 2024, 19:23

but the ssl certificate has a exclamation mark

Philipp
19 Jan, 2024, 19:24

the ssl cert for the base domain is fine though

kamal.panara
19 Jan, 2024, 19:24

wait for some time, appwrite will assign it automatically, if it's doesn't then you can manually assign it yourself using appwrite by running this command in your appwrite VPS via SSH : docker compose exec appwrite ssl domain="<your-function-domain>"

kamal.panara
19 Jan, 2024, 19:27
kamal.panara
19 Jan, 2024, 19:32

If your issue has been solved, you can mark this post as closed by adding "[SOLVED]" to the beginning of the title.

Philipp
19 Jan, 2024, 19:36

[SOLVED]"Error: Couldn't resolve host name" on function domain

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more