[Dnsmasq-discuss] Overriding server-identifier in DHCP response

Geert Stappers stappers at stappers.nl
Fri Oct 9 15:10:51 BST 2020


On Sat, Oct 03, 2020 at 04:50:38PM +0000, Ryan Govostes wrote:
> When I run with log-dhcp enabled,
> I notice the following option in dnsmasq's DHCP response:
> 
> dnsmasq-dhcp: 756190107 sent size:  4 option: 54 server-identifier  172.17.0.2
> 
> This is the local IP address of the network interface that dnsmasq
> is using. But dnsmasq is running inside a virtual machine with NAT,
> and this IP address is not the network-facing address.

Acknowledge

 
> Is there a way to change the response?

Yes


> I've tried setting dhcp-option=option:server-identifier(or 54),... but
> dnsmasq doesn't accept it. I've also tried using 11 which I believe
> is some kind of server-identifier override. That also did not work.
> 
> I'm using dnsmasq to do DHCP proxying for PXE.

And O.P. learnt that NATting for the VM introduces new problems.


Regards
Geert Stappers
-- 
Silence is hard to parse



More information about the Dnsmasq-discuss mailing list