WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: W3 Total Cache] Unable to resolve hostname (in origin pull) (6 posts)

  1. Parneix
    Member
    Posted 1 year ago #

    Hi,

    So I was successfully using a origin push method with Amazon CloudFront (using a S3 bucket) but was told that it was preferable to use an origin pull.

    1) I deleted the distribution I used for the "push" method

    2) I created a new distribution. I kept the same CNAME but went to my host provider and corrected the value so it now reflects the name of the new distribution (which one can get of course on the CloudFront panel)

    I have checked that the CNAME is now correctly pointing to the name of the new distribution by using http://www.mxtoolbox.com/

    3) In WordPress, through the dashboard, in the W3 Total Cache tab for the CDN, I left the access key ID and secret key fields as they were (i.e. populated with the correct information) even though they are not used (I believe) in an origin pull configuration.

    4) In the “Replace site's hostname with:” I entered the name of the new distribution and, under it, i the CNAME field, I entered the CNAME that is now correctly pointing to the name of the new distribution I just created.

    However, when I try to test this configuration (using W3 Total Cache test, just below those fields) I keep getting the same error: “Unable to resolve hostname:” followed by the CNAME I’m using.

    Surely, I must be doing something wrong. Any tips to troubleshoot this issue?

    Thanks,

    P.

  2. Parneix
    Member
    Posted 1 year ago #

    Solved! Apparently even though the CNAME checked with mxtoolbox it needed some time to propagate. Twelve hours latter, it passes W3 Total Cache test. My “origin pull” configuration is now working properly.

    P.

  3. Frederick Townes
    Member
    Posted 1 year ago #

    Glad you figured it out.

  4. skytower1
    Member
    Posted 1 year ago #

    Which CDN method do you recommend?
    The Cloudfront pull, or push?

  5. Parneix
    Member
    Posted 1 year ago #

    @ skytower1 Frederick Townes recommends the “origin pull” method. See here.

    P.

  6. Demlaip
    Member
    Posted 1 year ago #

    Even I faced this issue, but with some tutorials on setting up cloud front for your site, I come to know that , it takes max 10minutes to get your cloudfront deployed, till then you receive this error message mentione above.

    And another error thread related to cdn I found here, which was resulting in broken UI after activating CDN in W3TC:
    http://wordpress.org/support/topic/plugin-w3-total-cache-amazon-s3-images-not-being-served

Topic Closed

This topic has been closed to new replies.

About this Topic