danb35 / freenas-iocage-nextcloud

Script to create an iocage jail on FreeNAS for the latest Nextcloud 28 release, including Caddy, MariaDB or PostgreSQL, and Let's Encrypt
GNU General Public License v3.0
258 stars 71 forks source link

DNS Issue #86

Closed jacobq11 closed 4 years ago

jacobq11 commented 4 years ago

There needs to be and option to set the resolver or nothing will install.

I was able to get it fixed by editing the script and changed the jail creations to DHCP since I have everything reserved there.

jacobq11 commented 4 years ago

Sorry I posted it twice.

danb35 commented 4 years ago

Is this something that has changed in 11.3? Because it's worked fine on 11.1 and 11.2 without explicitly setting a DNS server--iocage has apparently been treating the default gateway as the resolver.

Edit: A quick review of the iocage docs doesn't show a way of specifying a DNS server for a jail--looks like further investigation will be warranted.

PrivatePuffin commented 4 years ago

@danb35 building multiple jails on 11.3 and 11.2, I can for sure say no relevant changes are done requiring DNS server specifications for jails under 11.3 specifically.

Though I personally prefer DHCP and fixed leases for everything except primary networking devices.

jacobq11 commented 4 years ago

I was testing on 11.2u6. my issue probably lies in the fact that I have a dedicated DNS server on my network that isn't using the same IP as my gateway

airflow2010 commented 4 years ago

When I use the script (and also for any other jail creations I do myself), the jail seems to inherit the DNS-configuration of the host. /etc/resolv.conf looks exactly the same in host and jail.

PrivatePuffin commented 4 years ago

When I use the script (and also for any other jail creations I do myself), the jail seems to inherit the DNS-configuration of the host. /etc/resolv.conf looks exactly the same in host and jail.

It does :)

PrivatePuffin commented 4 years ago

@danb35 As jails inherit DNS from the host when set to Static IP, I see no reason this is in any way, shape or form this is related to the script. Neither does iocage have a hook to input this on jail creation (1)

Thus this can be closed safely.

(1) we could hack it in, but I really, really doubt we want to create a fix to cover for users with wrong/strange DNS configuration in their freenas host