[Dnsmasq-discuss] Using a variable in the address option in dnsmasq.conf

M. Buecher maddes+dnsmasq at maddes.net
Tue Feb 20 07:44:46 GMT 2018


On 2018-02-19 21:28, Steve Lloyd wrote:

> Is it possilbe to set a variable and then use it as follows?  or is there a way to set and use a variable in the conf file for address entries? 
> 
> myip=10.0.1.6 
> address=/2o7.net/$myip [1] 
> address=/2mdm.net/$myip [2] 
> 
> instead of  
> address=/2o7.net/10.0.1.6 [3] 
> address=/2mdm.net/10.0.1.6 [4]

+1 for such a feature as this would easy my playground setup a lot, in
my case: 
dhcp-host=aa:bb:cc:dd:ee:ff,${NETWORK4NET1PREFIX}.27,[${NETWORK6ULA1PREFIX}::1b],my-host

  

Links:
------
[1] http://2o7.net/$myip
[2] http://2mdm.net/$myip
[3] http://2o7.net/10.0.1.6
[4] http://2mdm.net/10.0.1.6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20180220/3802bad3/attachment.html>


More information about the Dnsmasq-discuss mailing list