• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 533 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 May 26, 2023, 2:12 PM

    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
    • S
      stephenw10 Netgate Administrator
      last edited by May 31, 2023, 9:31 PM

      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 Jun 2, 2023, 6:49 PM Reply Quote 0
      • R
        rgbinfinity @stephenw10
        last edited by Jun 2, 2023, 6:49 PM

        @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 Jun 2, 2023, 9:39 PM Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Jun 2, 2023, 9:05 PM

          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 Jun 2, 2023, 9:39 PM

            @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
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received