DNS Resolver with link/url
-
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. -
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?
-
@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
-
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 -
@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 )