I know that a lot of VPN users have it as a homepage to their browser, that is why I wanted to publish this warning.

You can replace it with:

    • MaskedNybbles@piefed.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 day ago

      I saw it used in another comment, and am already aware of the use of curl for such a task, but choose to query DNS services instead—especially in scripts.

      • Danitos@reddthat.com
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        but choose to query DNS services instead—especially in scripts.

        Why? What advantages do you get?

        • friend_of_satan@lemmy.world
          link
          fedilink
          English
          arrow-up
          7
          ·
          edit-2
          1 day ago

          In order to connect to a site like wtfismyip.com you have to do a dns query for the IP address of the server, then query the http port on that IP address, but what if instead, that first dns query gave the answer to your question?

        • MaskedNybbles@piefed.social
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          1 day ago

          I worry less about the service breaking, changing, or otherwise disappearing, over a random website.

          EDIT: Also what was said in a sibling comment.