DNS autoconf: Fix games that do their own DNS queries by querying sceUtility for the DNS IP - #19869
Conversation
0f07b4c to
d267c82
Compare
d267c82 to
28d8fae
Compare
| if (httpObjects[templateID - 1LL]->className() != name_HTTPTemplate) | ||
| return hleLogError(Log::sceNet, SCE_HTTP_ERROR_INVALID_ID, "invalid id"); | ||
|
|
||
| // TODO: Look up hostString in DNS here. |
There was a problem hiding this comment.
As i remembered the hostString contains a full path used in request header, thus resolving here instead of the resolver at HTTPClient.cpp might not works properly on shared webhosting that use subdomain, since each subdomains might be pointed to the same IP and the server might be routing it to the correct server based on the subdomain string in the request header.
Because the IP is shared by all the hosts (domains and subdomains), the visitors will not be able to reach a specific website by simply typing the IP address of the server in their browser's address bar. Instead, the visitors should type the domain name of your website. When the web browser requests an address from a web server from our network, it includes the requested hostname (domain or subdomain) as a part of the request. The server then uses this information to determine which website is being requested.
Then again i could be wrong :)
Followup to #19865
Now Wipeout Pulse is correctly autoconfigured and "just works".