mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
all: allowing config defined discover ptr endpoints
The default gateway is usually the DNS server in normal home network setup for most users. However, there's case that it is not, causing discover ptr failed. This commit add discover_ptr_endpoints config parameter, so users can define what DNS nameservers will be used.
This commit is contained in:
committed by
Cuong Manh Le
parent
d01f5c2777
commit
180eae60f2
@@ -193,6 +193,22 @@ Perform LAN client discovery using PTR queries.
|
||||
- Required: no
|
||||
- Default: true
|
||||
|
||||
### discover_ptr_endpoints
|
||||
List of DNS nameservers used for PTR discovery.
|
||||
|
||||
Each entry can be either "ip" (default port 53) or "ip:port" pair. Invalid entry will be ignored.
|
||||
|
||||
- Type: array of string
|
||||
- Required: no
|
||||
- Default: []
|
||||
|
||||
Example:
|
||||
|
||||
```toml
|
||||
[service]
|
||||
discover_ptr_endpoints = ["192.168.1.1", "192.168.2.1:5354"]
|
||||
```
|
||||
|
||||
### discover_hosts
|
||||
Perform LAN client discovery using hosts file.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user