• Resolved wadetregaskis

    (@wadetregaskis)


    BLC seems to ignore /etc/hosts for the purposes of domain name resolution.

    I’m trying to redirect requests for my own domain to the local host, as the domain name normally resolves to Cloudflare and I’d like to avoid hitting Cloudflare just to query localhost.

    I have the relevant entry in /etc/hosts and everything else on the system uses it correctly (including PHP when I do e.g. plesk php -r "echo gethostbyname('mydomain.com');"), but BLC does not – I can clearly see its traffic going through Cloudflare still, using e.g. tcpdump.

    Can this be fixed, or worked around? I searched through the BLC source but couldn’t find any suitable filter hooks or similar.

    As far as I can tell it’s not using curl (I see no curl processes spawn when I force a link recheck), so I guess it’s using WordPress’s built-in wp_safe_remote_get?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @wadetregaskis,

    Hope this message finds you well.

    To provide accurate information about your request I notify about this to our devs, once we get feedback we will back to you. Still, note that this does not mean that they will be able to provide a fix, but, we will update once we get a reply from them.

    Best regards,
    Laura

    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @wadetregaskis

    BLC does use?wp_safe_remote_get(). There a few hooks available using wp_safe_remote_get(), eg?pre_http_request?.

    IF you’re using CF tunnel (similar to ngrok) perhaps switching to BLC Cloud version might help.

    Kind Regards,
    Kris

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @wadetregaskis,

    Since we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to open a new thread if you have new queries.

    Best Regards
    Nithin

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘BLC ignores /etc/hosts’ is closed to new replies.