Testing setup before changing domains

  Last updated September 08, 2017

After you deploy your service, but before you change your DNS entries to send your domain to our servers, you can check to see how your service is pulled through our network. Testing your domain can help you identify DNS issues or problems with your Fastly configuration.

Using the web interface

To use the web interface to test your domain on Fastly before you make a final CNAME change, follow the steps below:

  1. Log in to the Fastly web interface and click the Configure link.
  2. From the service menu, select the appropriate service.
  3. Click the Configuration button and then select Clone active. The Domains page appears.

    the Domains page

  4. Click the Test domain link next to the domain you want to test.
  5. Verify that your website appears in a new tab in your web browser.

Using command line utilities

To use command line utilities to test your domain on Fastly before you make a final CNAME change, you would:

Determining the IP address of a Fastly POP

Use the nslookup or dig command to determine the IP address of a Fastly POP.

For example, running nslookup for nonssl.global.fastly.net returns:

$ nslookup nonssl.global.fastly.net

Non-authoritative answer:
Name:	nonssl.global.fastly.net

Find the IP address at the bottom of the nslookup response. In this example, it's

Alternatively, running dig for nonssl.global.fastly.net returns:

$ dig nonssl.global.fastly.net

; <<>> DiG 9.8.3-P1 <<>> nonssl.global.fastly.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35146
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;nonssl.global.fastly.net.	IN	A

nonssl.global.fastly.net. 30	IN	A

The IP address (A record) is in the ANSWER SECTION of the dig results:

Modifying your hosts file

You can temporarily add a static IP address and domain host entry to the hosts file on your computer. For example, if the domain you are testing is www.example.com and one of the IP addresses returned by nslookup or a dig command is, you would add this entry to the file: www.example.com

and save the changes.

Testing your domain

Test your domain to see how Fastly pulls it through our network by restarting your browser if it's already running, and then typing your domain in the address field. You should now see the updated domain in the address field indicating requests are being sent to the Fastly POP.

Alternatively, you can test the domain using a ping command to verify that your domain is being served by a Fastly POP address. In this case, ping www.example.com would display the Fastly POP address

Be sure to remove the host entry from your hosts file after you make CNAME changes to point your domain to Fastly.

Back to Top