pfSense DNS Resolver / Host Overrides / CERTBOT SSL
-
I have a DNS Resolved / Host Overrides / CERTBOT question... I assume this is the right subforum to post but I am not completely sure.
Here's an overview of my system.
I have a domain name which points to my external IP. Ports 80 and 443 are opened on pfSense. Web traffic to my IP on these ports should be forwarded to 2 or more servers.
I do this using
pfSense / DNS Resolver / General Settings / Host Overrideswhich I assume is the correct settings within pfSense to change. Here's a list of settings. (Which I've faked for security reasons.)

Currently
apple.mydomain.co.ukappears to be working fineorange.mydomain.co.ukredirects to the same webhost asapplecauliflour.mydomain.co.ukredirects to the correct webhost, with IP10.0.0.200,orangeshould direct to this IP as well, but it doesn't.orangeandcauliflourshould direct to the same machine with the same IP, but should be served by a different virtual host in nginx.Finally,
cheese.mydomain.co.ukdirects to another machine, and this works.I don't know how to debug the issue of
cauliflourbeing directed to the wrong machine.Further to this, I want to be able to redirect
www.orange.mydomain.co.ukto the same IP asorange.mydomain.co.uk. Howeverwww.orange...redirects to the same machine asapple.mydomain.co.uk.I thought I should be able to add
www.orangeas a "host" in "host overrides", but it appears to be the case that only a single string like "abcde" can be entered here not something like "abcde.xyz".Sorry if this isn't the clearest question, I'm new to all this stuff.
-
If you want to add an additional host name, edit the existing entry, go down to Additional Names for this Host and enter it there.
@hypernova said in pfSense DNS Resolver / Host Overrides / CERTBOT SSL:
I thought I should be able to add www.orange as a "host" in "host overrides", but it appears to be the case that only a single string like "abcde" can be entered here not something like "abcde.xyz".
Here is only the "www" to be entered into the host box, the rest is to be entered into the domain box. The host is only the part between the left and the first dot.
-
@viragomann Thanks for the pointer, I encounter two errors however when trying to do this
- The field Alias Domain is required.
- A valid alias hostname is specified, but the domain name part should be omitted
I entered
www.orangeinto the host name field, andmydomain.co.ukinto the domain field.I should add, I tried removing the domain field, but still the same error occured.
-
@hypernova
As I mentioned above, the host name part is ever from the left to the first dot.
So for www.orange.mydomain.co.uk enter
www into the host field and
orange.mydomain.co.uk into the domain field. -
@viragomann Ah, yes I see that works.
Ok I guess I was confused as to what hostname/domain name means. I thought host was always the physical machine, but obviously I was mistaken.
I don't fully understand how it works in detail.