Frank Herman
Occasional Visitor
It seems reasonable to think that you should be able to use the "tag" value within an "if" statement.
The "dnsmasq.conf.add" file below does not work, any ideas on what I am doing wrong??
dhcp-host=set:green,20:aa:30:bb:2E:cc,pc1,192.168.1.2,infinite
dhcp-host=set:red,00:aa:E8:bb:96:cc,pc2,192.168.1.3,infinite
IFI = $(tag)
if [ $IFI -eq "green" ]; then
address=/www.youtube.com/216.239.38.119
address=/m.youtube.com/216.239.38.119
address=/youtubei.googleapis.com/216.239.38.119
address=/youtube.googleapis.com/216.239.38.119
address=/www.youtube-nocookie.com/216.239.38.119
fi
The "dnsmasq.conf.add" file below does not work, any ideas on what I am doing wrong??
dhcp-host=set:green,20:aa:30:bb:2E:cc,pc1,192.168.1.2,infinite
dhcp-host=set:red,00:aa:E8:bb:96:cc,pc2,192.168.1.3,infinite
IFI = $(tag)
if [ $IFI -eq "green" ]; then
address=/www.youtube.com/216.239.38.119
address=/m.youtube.com/216.239.38.119
address=/youtubei.googleapis.com/216.239.38.119
address=/youtube.googleapis.com/216.239.38.119
address=/www.youtube-nocookie.com/216.239.38.119
fi