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:
Girish Ramakrishnan
2024-04-28 11:18:37 +02:00
parent 608ce53e7d
commit cd5cae33ce
7 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -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);