On Sat, Jan 11, 2020 at 01:15:28PM +0100, Michal Zatloukal wrote:
> On Sat, 11 Jan 2020 at 11:06, Geert Stappers wrote:
> >
> > In dnsmasq configuration file I have
> >
> >   dhcp-boot=tag:ipxe,http://172.16.1.2/networkboot/shi/selector.ipxe
> >
> > Is there a variable like  "me"?
> > And "me" having value of the IP-address of the interface
> > that is handing-out the requested DHCP information.
> >
> > It is to make
> >   dhcp-boot=tag:ipxe,http://@me/networkboot/shi/selector.ipxe
> > possible
> >
> 
> Not sure about dnsmasq,
> but if you're using iPXE, you can use ${dhcp-server}
> 
> dhcp-boot=tag:ipxe,"http://${dhcp-server}/shared/scripts/main.ipxe";
 
Yes
  dhcp-boot=tag:ipxe,"http://${dhcp-server}/networkboot/shi/selector.ipxe";
works as wanted. Configuration file of dnsmasq can stay the same.
Expansion of the variable is done by iPXE.

Thanks


Regards
Geert Stappers
Happy user of iPXE
-- 
Leven en laten leven

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to