Test a website on a new server before the DNS change
test website before dns propagation | curl resolve to specific ip | check site on new server without hosts file | curl | migration | dnscurl -sSI --resolve example.com:443:203.0.113.10 https://example.com/With --resolve, curl connects directly to the given IP for this domain and port but still sends the correct hostname and SNI. This lets you check the website and SSL certificate on the new server before switching DNS. Without -I, the full page content is loaded.
Note: For redirects to another domain, for example with www, normal DNS is used again. In that case, specify both names with one --resolve each.
Also searched as
- test website before dns propagation
- curl resolve to specific ip
- check site on new server without hosts file