gray-solstice-45481
07/14/2022, 8:38 PMdnsconfig
by mounting it into your host file system. I used the following config for that:
volumes:
traefik_certs: {}
shared_certs: {}
sqldata: {}
dnsconfig:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/root/dnsconfig'
mosquitto_data: {}
mosquitto_logs: {}
Then rebuild the server by running docker-compose up -d
After that, you should be able to find a generated CoreDNS Corefile
under /root/dnsconfig
You can add your custom domains there two ways:
1. Rewrite the domain to local network host name version using the rewrite name
directive. For example rewrite name subdomain.domain.com subdomain.intranet
2. Or resolve the domain name to an IP address that can be reached through the VPN connection by extending the hosts /root/dnsconfig/netmaker.hosts
block as follows:
hosts /root/dnsconfig/netmaker.hosts {
10.123.45.67 dubdomain.domain.com
fallthrough
}
This works for external clients. ripe-fall-9827
07/15/2022, 6:28 AMvictorious-crayon-6653
07/15/2022, 1:10 PMgray-solstice-45481
07/15/2022, 3:57 PMgray-solstice-45481
07/15/2022, 6:09 PM