Skip to content

Instantly share code, notes, and snippets.

@nuxlli
Last active August 28, 2020 04:23
Show Gist options
  • Save nuxlli/bfe8eaa3a8419702322e to your computer and use it in GitHub Desktop.
Save nuxlli/bfe8eaa3a8419702322e to your computer and use it in GitHub Desktop.
Azkfile.js with custom dns
/**
* Mac Users:
* Add a file /etc/rsolver/my.domain.com
* nameserver [ip from dev.azk.io]
* port 5353
*
* Linux Users:
* Add a file /etc/rsolver/my.domain.com
* nameserver [ip from dev.azk.io]:5353
*
* Debug utils:
* dig @dev.azk.io -p 5353 my.domain.com
* scutil --dns
*/
systems({
dns: {
image: { docker: "azukiapp/azktcl:0.0.2" },
shell : '/bin/bash',
wait : false,
scalable: false,
command: "dnsmasq -p $DNS_PORT --no-daemon --address=/$DOMAIN/#{azk.balancer_ip}",
ports: {
dns: "53:5353/udp",
80: disable,
},
envs: {
DOMAIN: "my.domain.com"
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment