2022-08-01 10:46:37 +02:00
|
|
|
# Configuration format
|
|
|
|
|
|
|
|
|
|
Aardvark-dns will read configuration files from a given directory.
|
|
|
|
|
|
|
|
|
|
Inside this directory there should be at least one config file. The name of the file equals the network name.
|
|
|
|
|
|
2022-11-10 14:32:33 +05:30
|
|
|
### First line
|
2022-08-01 10:46:37 +02:00
|
|
|
The first line in the config must contain a comma separated list of listening ips for this network, usually the bridge ips.
|
|
|
|
|
At least one ip must be given.
|
2022-11-10 14:32:33 +05:30
|
|
|
**Note**: An optional second column of comma delimited domain name servers can be used at the network level. All containers
|
|
|
|
|
on that network will inherit all the specified name servers instead of using the host's resolver.
|
2022-08-01 10:46:37 +02:00
|
|
|
|
2022-11-10 14:32:33 +05:30
|
|
|
```
|
|
|
|
|
[comma seperated ip4,ipv6 list][(optional)[space][comma seperated DNS servers]]
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Container entries
|
2022-08-01 10:46:37 +02:00
|
|
|
All following lines must contain the dns entries in this format:
|
|
|
|
|
```
|
2022-10-17 13:52:28 +05:30
|
|
|
[containerID][space][comma sparated ipv4 list][space][comma separated ipv6 list][space][comma separated dns names][(optional)[space][comma seperated DNS servers]]
|
2022-08-01 10:46:37 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Aardvark-dns will reload all config files when receiving a SIGHUB signal.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
10.0.0.1,fdfd::1
|
2022-10-17 13:52:28 +05:30
|
|
|
f35256b5e2f72ec8cb7d974d4f8841686fc8921fdfbc867285b50164e313f715 10.0.0.2 fdfd::2 testmulti1 8.8.8.8,1.1.1.1
|
2022-08-01 10:46:37 +02:00
|
|
|
e5df0cdbe0136a30cc3e848d495d2cc6dada25b7dedc776b4584ce2cbba6f06f 10.0.0.3 fdfd::3 testmulti2
|
|
|
|
|
```
|
2022-11-10 14:32:33 +05:30
|
|
|
## Example with network scoped DNS servers
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
10.0.0.1,fdfd::1 8.8.8.8,1.1.1.1
|
|
|
|
|
f35256b5e2f72ec8cb7d974d4f8841686fc8921fdfbc867285b50164e313f715 10.0.0.2 fdfd::2 testmulti1 8.8.8.8,1.1.1.1
|
|
|
|
|
e5df0cdbe0136a30cc3e848d495d2cc6dada25b7dedc776b4584ce2cbba6f06f 10.0.0.3 fdfd::3 testmulti2
|
|
|
|
|
```
|
2022-08-01 10:46:37 +02:00
|
|
|
|
|
|
|
|
Also see [./src/test/config/](./src/test/config/) for more config examples
|