mirror of
https://github.com/PretendoNetwork/SSSL-DNS.git
synced 2026-04-25 15:26:47 -05:00
Custom DNS server intended to be used in conjunction with SSSL
| docker | ||
| src | ||
| .eslintignore | ||
| .eslintrc.json | ||
| .gitignore | ||
| Dockerfile | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
SSSL DNS
Custom DNS server intended to be used in conjunction with SSSL. Redirects Nintendo hostnames to an SSSL powered server.
Config
The only 2 addresses required are for conntest.nintendowifi.net and account.nintendo.net. These can either be set using the default address or explicitly mapping them. Additional addresses may be added using SSSL_DNS_MAP.
| Name | Description | Required |
|---|---|---|
SSSL_UDP_PORT |
UDP port for the DNS server. | Only if not using TCP. |
SSSL_TCP_PORT |
TPC port for the DNS server. | Only if not using UDP. |
SSSL_DNS_DEFAULT_ADDRESS |
The default address to use for conntest.nintendowifi.net and account.nintendo.net. |
Only if not explicitly mapped. |
SSSL_DNS_MAP_hostname |
An explicit mapping of a hostname to an address. | Only if not using the default address. |
Example:
# Listen on port 5335
SSSL_UDP_PORT=5335
# Use the default address for conntest.nintendowifi.net and account.nintendo.net
SSSL_DNS_DEFAULT_ADDRESS=127.0.0.1
# Explicitly mapping addresses
SSSL_DNS_MAP_conntest.nintendowifi.net=127.0.0.1
SSSL_DNS_MAP_account.nintendo.net=127.0.0.1
SSSL_DNS_MAP_discovery.olv.nintendo.net=127.0.0.1
Docker
The provided Dockerfile creates an image which runs both the DNS server and a custom build of nginx with TLS 1.0/1.1, and legacy SSL ciphers, enabled, as these are required for the Wii U. To build the image:
- Use SSSL to create your patched SSL certficiates.
- Copy the
ssl-cert-private-key.pemfrom SSSL file todocker/private.key(or modify the private key name in step 4) in SSSL-DNS. - Copy the
cert-chain.pemfrom SSSL file todocker/ca.pem(or modify the certificate chain name in step 4) in SSSL-DNS. - Modify
docker/nginx.confto your liking. This will be used as the nginx default configuration, not a separate site config. Add any additional hostnames you may need. - Create a
.envfile in the same directory as theDockerfilefollowing the above guide. docker build -t IMAGE_NAME .- Create a container with the image, exposing ports 80, 443 and the DNS server port (by default the Wii U only supports the default port 53)