On Mon, Feb 19, 2018 at 10:41:01AM +0100, Dominik DL6ER wrote: > On 16.02.2018 16:01, Simon Kelley wrote: > > To clarify, the serial numbers in > > the names correspond to the addresses in the range supplied. If you use > > a subnet to specify the range, for instance 192.168.202.0/24, then yes > > dyn-1 will be 192.168.202.0, but if you use start,end to specify the > > range, then the start address becomes dyn-1 > That's exactly why I think zero-indexed would be better, as dyn-50 would > then also correspond to 192.168.202.50. For custom ranges (not starting > from zweo) I have no preference, but the logic should obviously be the > same as for the full /24 network.
Here another +1 for starting at 0. So | --synth-domain=gently.org.uk,192.168.202.50,192.168.202.70,dyn-* would in /etc/hosts format 192.168.202.50 dyn-0.gently.ork.uk 192.168.202.51 dyn-1.gently.ork.uk 192.168.202.52 dyn-2.gently.ork.uk And indeed, on networks where network address ends on zero, there it will be 192.0.2.0 string0 192.0.2.1 string1 192.0.2.2 string2 192.0.2.3 string3 Another thing, "rollover" 192.0.2.9 string9 192.0.2.10 string10 Should it be "%03d", so 192.0.2.8 string008 192.0.2.9 string009 192.0.2.10 string010 # 192.0.2.99 string099 192.0.2.100 string100 192.0.2.101 string101 Groeten Geert Stappers -- Leven en laten leven _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss