AdguardTeam / AdguardTeam/AdGuardHome
dns.bind_hosts: bind to interfaces
- Langage dominant
- TypeScript
- Étoiles
- 36.9k
- Forks
- 2.5k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
### Prerequisites
- [X] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions) and found no answer
- [X] I have searched other issues and found no duplicates
- [X] I want to request a feature or enhancement and not ask a question
### The problem
Sometimes we do not want to bind adguardhome to `0.0.0.0:53`.
For example: adguardhome is running on a DHCP-Client machine, and I do want to serve it on `eth1:53`, but I do not know the DHCP IP of `eth1` before it get one.
```diff
'dns':
'bind_hosts':
- '127.0.0.1'
- - '192.168.1.2'
+ 'interfaces':
+ - 'eth1'
```
### Proposed solution
Similar with `-i, --interface=` of [dnsmasq](https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html)
> -i, --interface=
> Listen only on the specified interface(s). Dnsmasq automatically adds the loopback (local) interface to the list of interfaces to use when the --interface option is used. If no --interface or --listen-address options are given dnsmasq listens on all available interfaces except any given in --except-interface options. On Linux, when --bind-interfaces or --bind-dynamic are in effect, IP alias interface labels (eg "eth1:0") are checked, rather than interface names. In the degenerate case when an interface has one address, this amounts to the same thing but when an interface has multiple addresses it allows control over which of those addresses are accepted. The same effect is achievable in default mode by using --listen-address. A simple wildcard, consisting of a trailing '*', can be used in --interface and --except-interface options.
### Alternatives considered and additional information
Is this an acceptable feature? I'd love to implement this.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.