DNS Resolution Within Worker


I’m attempting to forward specific HTTP requests received at an edge server to my primary server. Looks like this can be done rather simply using an HTTP router worker. My question is how will my domain name resolve within the edge node? Will it resolve to the primary server? Another edge server?

I am aware that in my HTTP router worker I can forward the request to my server’s IP address directly (rather than using its domain name). However, this is undesirable as the common name in my server’s SSL cert is the domain name, not the IP address, and requests made directly to the IP address fail because of an invalid cert.


Your worker will preform a DNS look up to get the IP address of your server.