dns: switch over to systemd for the host
this changes unbound to listen to 127.0.0.150 (150 is roman CL) we cannot only bind on docker bridge because unbound is relied upon for the initial domain setup. docker itself is only initialized when the platform initializes
This commit is contained in:
+1
-1
@@ -1986,7 +1986,7 @@ async function statusUnbound() {
|
||||
const [error] = await safe(shell.exec('statusUnbound', 'systemctl is-active unbound', {}));
|
||||
if (error) return { status: exports.SERVICE_STATUS_STOPPED };
|
||||
|
||||
const [digError, digResult] = await safe(dig.resolve('ipv4.api.cloudron.io', 'A', { server: '127.0.0.1', timeout: 10000 }));
|
||||
const [digError, digResult] = await safe(dig.resolve('ipv4.api.cloudron.io', 'A', { timeout: 10000 }));
|
||||
if (!digError && Array.isArray(digResult) && digResult.length !== 0) return { status: exports.SERVICE_STATUS_ACTIVE };
|
||||
|
||||
debug('statusUnbound: unbound is up, but failed to resolve ipv4.api.cloudron.io . %o %j', digError, digResult);
|
||||
|
||||
Reference in New Issue
Block a user