Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    DNS Resolver with link/url

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    5 Posts 3 Posters 662 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rgbinfinity
      last edited by

      Good morning, it has a DNS Resolver (example sic.rgb), access puts this sic.rgb/loading in the browser to access a system.

      How do I use that same DNS for a website?
      For example, accessing www.google.com using my DNS.

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Hmm, I'm not sure I understand the question.

        You have your own domain, like example.com?

        You want to host a web server at that domain using an FQDN like www.example.com?

        R 1 Reply Last reply Reply Quote 0
        • R
          rgbinfinity @stephenw10
          last edited by

          @stephenw10 said in DNS Resolver with link/url:

          Hmm, I'm not sure I understand the question.

          You have your own domain, like example.com?

          You want to host a web server at that domain using an FQDN like www.example.com?

          Good morning, thanks for help,

          I have a server which I access by an IP, I put a DNS on top of it, so I no longer access by IP, access via link or url in the browser, as if I were accessing a website. But I wanted this DNS, instead of redirecting to this IP, I would like it to redirect to a website.

          In short, I want that when I write a specific url, PfSense redirects to another, a website.

          Example: In the browser, I will access www.bing.com.br, instead of going to this site, pfSense will redirect to www.google.com

          S 1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            You can easily add a host override to the DNS resolver to redirect an FQDN to a different IP.
            https://docs.netgate.com/pfsense/en/latest/services/dns/resolver-host-overrides.html

            1 Reply Last reply Reply Quote 0
            • S
              SteveITS Galactic Empire @rgbinfinity
              last edited by

              @rgbinfinity said in DNS Resolver with link/url:

              In the browser, I will access www.bing.com.br, instead of going to this site, pfSense will redirect to www.google.com

              Only a web server can do that sort of redirection. A DNS override will override the IP used but if you want the browser to change to "www.google.com" that cannot be done via DNS.

              https://docs.netgate.com/pfsense/en/latest/packages/haproxy.html or similar proxy package might be able to do that, I've never used one as we just set up redirects on our web servers. (found https://stackoverflow.com/questions/28530087/how-to-redirect-url-with-haproxy )

              Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
              When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
              Upvote 👍 helpful posts!

              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.