[Dnsmasq-discuss] named dual homed hosts

Simon Kelley simon at thekelleys.org.uk
Wed Dec 17 22:03:26 GMT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256



On 09/11/14 20:27, Eric Johansson wrote:
> my goal is to make all interfaces in a multi-homed host have the
> same name so users are directed to the right (local network)
> interface.
> 
> I have the following line in subnet specific lease files.
> 
> dhcp-host=a0:36:9f:30:1e:ac,shortbus,10.43.6.50 
> dhcp-host=00:25:90:7a:2d:ce,shortbus,10.42.66.246
> 
> both show up in the leases file but only one lease has a name. 
> localise-queries is turned on.  dnsmasq is version 2.57 what am I
> missing?
> 
> 

dnsmasq forces a name to belong to exactly one DHCP lease. It's always
done that, because it makes the case where a host moves networks
(rather than existing simultaneously on more than one) work.

Dual homing is a rare in the niche where dnsmasq grew up.

I guess you could distinguish the cases by looking at the MAC
addresses, but the answer is that you can't do what you want out of
the box, it's a coding job.


Cheers,

Simon.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJUkf2uAAoJEBXN2mrhkTWihOUQAJAiuRX35e5SyQUCkxYSkK81
Kp8FyP5Ao0fwCxOgo2xiWJrMoCkml0PAXIPID9c+TtfNGpk0J+LN243oCN6Szpb9
jMIeen9J6R/dWgrylTGVq0Lur85jpe1HVMRQBhTwNcpdANg3fCtR2Jh9ch//dN3Z
KgCNFYmnmO1GE5cfX1Tpa63gvqYgsXRzy/hpiR6hLEjsSySOn1heiHvND8fWETwN
idUchBbaTmPT86RXK/S5MJl0FgK4oWHFkrtixKfxI0TatW7X2dzwagMNFdjcR1Rd
hYVDF+d50nZ4FG7bcb/4rlNoThYkjGrWIOBqXu1Q4DUOhmziyIho+fF541Uanonh
FjfltcgHqi4uXb6Ys30oaXTh31F6+O/LePslKvb2S4utRWgn2P/Jc7GMYc76YvOu
Rw4TuwI9OW/S6lrQHUFZ4lKsWuKIP9hAxkEVn5J6P5vayxPQNpogXUUQF2ixBc/I
Kh3drNqi00MeWmtDH7KNZqapLiyK/KSGebplU28PZiKLAWs1zeA+WKPkRDoSoTwb
B0XuvZ33ZYR+RSqXwxyOzlIFZAulcBHs33oze7tBBmVridOzmsjEpperZZUBPm4Y
CC2sxJARpIrVLy2RfQpGP6qrcrukH5Y+Zp+m54o4fCrWuY9SrSzbls5XBnEdScjv
8qQtpzn9xKHDhyyLiuW7
=lxd2
-----END PGP SIGNATURE-----



More information about the Dnsmasq-discuss mailing list