Je suis running TomatoUSB avec DNSMasq to provide DHCP et DNS services for mon local network.
What I would like to achieve is to provide alternative DNS servers for one ou two spécifique clients on le network based on leur IP ou MAC (These clients do pas accept manual configuration of DNS servers).
It does pas matter si this is DNS Masq using a différent DNS server for these IPs ou si différent DNS servers are delivered via DHCP.
Serveurs DNS par client avec DNSMasq
Re: Serveurs DNS par client avec DNSMasq
Setup reservations for le spécifique hosts using le `dhcp-host` option. Use tag options to flag those for a special set of options.
Ceci est completely un-tested, mais I suspect votre config might look something like this. Vérifiez le [man page](http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html) for full details.
```
dhcp-host=00:15:99:27:f8:98,set:specialhosts,192.168.32.20
dhcp-host=00:51:99:72:8f:89,set:specialhosts,192.168.32.21
dhcp-option=tag:specialhosts,option:dns-server,8.8.8.8,8.8.4.4
```
Ceci est completely un-tested, mais I suspect votre config might look something like this. Vérifiez le [man page](http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html) for full details.
```
dhcp-host=00:15:99:27:f8:98,set:specialhosts,192.168.32.20
dhcp-host=00:51:99:72:8f:89,set:specialhosts,192.168.32.21
dhcp-option=tag:specialhosts,option:dns-server,8.8.8.8,8.8.4.4
```