diff --git a/README.md b/README.md index 1978942..6eb32ee 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ When Newt receives WireGuard control messages, it will use the information encod - `endpoint`: The endpoint where both Gerbil and Pangolin reside in order to connect to the websocket. - `mtu` (optional): MTU for the internal WG interface. Default: 1280 -- `dns` (optional): DNS server to use to resolve the endpoint. Default: 8.8.8.8 +- `dns` (optional): DNS server to use to resolve the endpoint. Default: 9.9.9.9 - `log-level` (optional): The log level to use (DEBUG, INFO, WARN, ERROR, FATAL). Default: INFO - `enforce-hc-cert` (optional): Enforce certificate validation for health checks. Default: false (accepts any cert) - `docker-socket` (optional): Set the Docker socket to use the container discovery integration @@ -62,7 +62,7 @@ All CLI arguments can be set using environment variables as an alternative to co - `NEWT_ID`: Newt ID generated by Pangolin (equivalent to `--id`) - `NEWT_SECRET`: Newt secret for authentication (equivalent to `--secret`) - `MTU`: MTU for the internal WG interface. Default: 1280 (equivalent to `--mtu`) -- `DNS`: DNS server to use to resolve the endpoint. Default: 8.8.8.8 (equivalent to `--dns`) +- `DNS`: DNS server to use to resolve the endpoint. Default: 9.9.9.9 (equivalent to `--dns`) - `LOG_LEVEL`: Log level (DEBUG, INFO, WARN, ERROR, FATAL). Default: INFO (equivalent to `--log-level`) - `DOCKER_SOCKET`: Path to Docker socket for container discovery (equivalent to `--docker-socket`) - `PING_INTERVAL`: Interval for pinging the server. Default: 3s (equivalent to `--ping-interval`) diff --git a/clients.go b/clients.go index 60bbf41..4b282a7 100644 --- a/clients.go +++ b/clients.go @@ -39,7 +39,7 @@ func setupClients(client *websocket.Client) { func setupClientsNetstack(client *websocket.Client, host string) { logger.Info("Setting up clients with netstack...") // Create WireGuard service - wgService, err = wgnetstack.NewWireGuardService(interfaceName, mtuInt, generateAndSaveKeyTo, host, id, client, "8.8.8.8") + wgService, err = wgnetstack.NewWireGuardService(interfaceName, mtuInt, generateAndSaveKeyTo, host, id, client, "9.9.9.9") if err != nil { logger.Fatal("Failed to create WireGuard service: %v", err) } diff --git a/main.go b/main.go index 380efef..12849b1 100644 --- a/main.go +++ b/main.go @@ -186,7 +186,7 @@ func main() { flag.StringVar(&mtu, "mtu", "1280", "MTU to use") } if dns == "" { - flag.StringVar(&dns, "dns", "8.8.8.8", "DNS server to use") + flag.StringVar(&dns, "dns", "9.9.9.9", "DNS server to use") } if logLevel == "" { flag.StringVar(&logLevel, "log-level", "INFO", "Log level (DEBUG, INFO, WARN, ERROR, FATAL)")