LocoNS
Simple mDNS server supporting only A and AAAA records. It aims to be as simple as possible and not to fullfil all mDNS needs.
Running
While you can start application on its own, I personally prefer to use it in Docker. To start it use something like this:
docker run \
-v /etc/hosts:/etc/hosts \
--network=host \
medo64/locons:latest
Alternatively, you can use compose.yaml
Configuration
The following environment variables can further configure the system:
Variable | Default | Description |
---|---|---|
DEFAULT_TTL | 90 | Default TTL to use when sending responses |
IP | any | List of comma-separated IP addresses to bind to |
MINIMUM_TTL | 60 | Minimum TTL when learning hosts from responses; will apply even for 0 TTLs |
NO_HOSTS | false | If set to true , mDNS will not read /etc/hosts file |
NO_LEARN | false | If set to true , mDNS will not learn from observed network responses |
PREFER_LEARNED | false | If set to true , IP response will be ordered to prefer learned addresses |
The following environment variables are for troubleshooting purposes and usually require no configuration:
Variable | Default | Description |
---|---|---|
LOG_LEVEL | Information | One of log levels: Verbose, Debug, Information, Warning, Error, Fatal |
USE_INOPERABLE_INTERFACES | false | If true, engine will also use interfaces that are reported inoperable |
USE_UNSUPPORTED_INTERFACES | false | If true, engine will also use interfaces that don’t support multicast |