1
General Discussion / Unable to get "hostname.domainname.com" to work
« on: December 29, 2023, 08:17:03 pm »
I'm using it as a home DIY hobbiest and it's worked fine for a long time, but I've never been able to get mydomain to work.
Let's take an example and see if anyone can see where I'm going wrong:
1. I own myname.com and it's a registered domain name
2. Under Systems-Settings->General: I have the hostname set to OpnSense and domain is mydomain.com
3. I'm using OpnSense for DNS, so in this exact same screen I have DNS set to 1.1.1.1
4. Under Services->DHCPv4->[LAN] (base network): I have DNS currently set to 1.1.1.1 (when I tried this before, my internet went out and to force DNS to start resolving, I changed this from 192.168.1.1 (OPNSENSE) to 1.1.1.1 to keep the family from screaming too long. I'm assuming this should be set to 192.168.1.1?
5. In this same settings page, "Domain Name" is lan and "Domain Search List" is lan. Should this be mydomain.com? I don't know if I did this, or it came out of the box this way. Should these maybe be blank?
6. DNSMasq is enabled, set to DHCP Registration: True and Prefer DHCP: Resolve DHCP Mappings First
7. Unbound DNS is disabled
My long term goal is to get adguard home working but Im' trying to resolve one problem at a time. I had PiHole working but could never get this hostname issue resolved, so now I'm trying to go back to default and get the hostname issue resolved before moving forward with anything else.
Let's take an example and see if anyone can see where I'm going wrong:
1. I own myname.com and it's a registered domain name
2. Under Systems-Settings->General: I have the hostname set to OpnSense and domain is mydomain.com
3. I'm using OpnSense for DNS, so in this exact same screen I have DNS set to 1.1.1.1
4. Under Services->DHCPv4->[LAN] (base network): I have DNS currently set to 1.1.1.1 (when I tried this before, my internet went out and to force DNS to start resolving, I changed this from 192.168.1.1 (OPNSENSE) to 1.1.1.1 to keep the family from screaming too long. I'm assuming this should be set to 192.168.1.1?
5. In this same settings page, "Domain Name" is lan and "Domain Search List" is lan. Should this be mydomain.com? I don't know if I did this, or it came out of the box this way. Should these maybe be blank?
6. DNSMasq is enabled, set to DHCP Registration: True and Prefer DHCP: Resolve DHCP Mappings First
7. Unbound DNS is disabled
My long term goal is to get adguard home working but Im' trying to resolve one problem at a time. I had PiHole working but could never get this hostname issue resolved, so now I'm trying to go back to default and get the hostname issue resolved before moving forward with anything else.