DNS host entry
-
I have a VM running on my lan, it is running Portainer wich is hosting several containers. One is Uptime Kuma.
The IP for Portainer is 10.20.22.3, to get to the Uptime Kuma, I would go to either 10.20.22.3:3001 as the port is what actually tells the browser which container to load or portainer.ourlan.lan:3001.
I'd like to set up a DNS name on pfsense for uptime.ourlan.lan so that it points to 10.20.22.3. I would then create a Proxy Host in Nginx Proxy Manager to point uptime.ourlan.lan to the right destination.
I know this sounds complicated, but I got it to work by editing a Windows HOSTS file
10.20.22.3 uptime.ourlan.lan
How can I do this on the pfsense end so I don't need to modify HOSTS?
FYI, I have DNS TLS set up so DNS Forwarder is disabled.
-
@creationguy said in DNS host entry:
How can I do this on the pfsense end so I don't need to modify HOSTS?
You can control the /etc/hosts file ;)
pfSense uses a GUI for that.
Go here : Services > DNS Resolver > General Settings and scroll to the bottom.
Add a host over ride (host name, network and IP).
Done.Fact check : Check your host file now.
-
@gertjan said in DNS host entry:
@creationguy said in DNS host entry:
How can I do this on the pfsense end so I don't need to modify HOSTS?
You can control the /etc/hosts file ;)
pfSense uses a GUI for that.
Go here : Services > DNS Resolver > General Settings and scroll to the bottom.
Add a host over ride (host name, network and IP).
Done.Fact check : Check your host file now.
Man, I thought I had tried that and it didn't work- I think that I must have messed up the parent domain.
Thank you though, appreciate the help.
-
Unbound parses the hosts file during startup.
My over rides are all there, in that file. -
@gertjan Re-reading my last post, I wasn't very clear.
Your suggestion did work. I thought I had tried that already but I had a typo or misconfig.
-
@creationguy
Ah, ok’ right.
Syntax errors are not allowed ;)