[Dnsmasq-discuss] mDNS forwarding in dnsmasq (not avahi, but nss-mdns sort of thing)

2013-11-02 Thread Dmitry Khromov

Hello.

Is it possible to remove reply's IP address check for 224.0.0.251 in 
dnsmasq? Maybe, check if the reply is from given subnets instead. Doing 
so should allow to proxy mDNS replies, eliminating need for nss-mdns in 
some scenarios by just using something like -S 
/mydomain.local/224.0.0.251#5353


Thanks!

Regards,
- Dmitry.

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


Re: [Dnsmasq-discuss] Distributed lease database on a mesh, using batman-adv alfred

2013-11-02 Thread Gui Iribarren

On 11/02/2013 09:47 PM, Weedy wrote:


On 2 Nov 2013 16:31, "Gui Iribarren" mailto:g...@altermundi.net>> wrote:
 > Problem is, there's no way to update dnsmasq internal database from
outside (i.e. when alfred gets new info from another node); SIGHUP will
not make dnsmasq call dhcp-script "init", only a full restart will do,
and we'd rather not kill and respawn dnsmasq whenever a new lease is
given in any part of the cloud :P
 >
 > Simon, any chance of having dnsmasq call "init" on dhcp-script (or
lua-hook, if it's simpler) when getting a SIGHUP (or another, dedicated
signal, for that matter)?

Simon mentioned before why dnsmasq can't "reload" it's config because it
drops privileges. But I can't see a reason why we can't reread
/etc/ethers and the client cache (for me that's in /tmp/).

I would welcome a "state update" signal of some sort.


actually it already *does* re-read /etc/ethers

# logread -f &
# killall -HUP dnsmasq
Sat Nov  2 22:12:15 2013 daemon.info dnsmasq[1056]: read /etc/hosts - 1 
addresses
Sat Nov  2 22:12:15 2013 daemon.info dnsmasq-dhcp[1056]: read 
/etc/ethers - 0 addresses


what's missing is calling "dhcp-script init" to re-initialise internal 
view of the lease database


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


Re: [Dnsmasq-discuss] Distributed lease database on a mesh, using batman-adv alfred

2013-11-02 Thread Weedy
On 2 Nov 2013 16:31, "Gui Iribarren"  wrote:
> Problem is, there's no way to update dnsmasq internal database from
outside (i.e. when alfred gets new info from another node); SIGHUP will not
make dnsmasq call dhcp-script "init", only a full restart will do, and we'd
rather not kill and respawn dnsmasq whenever a new lease is given in any
part of the cloud :P
>
> Simon, any chance of having dnsmasq call "init" on dhcp-script (or
lua-hook, if it's simpler) when getting a SIGHUP (or another, dedicated
signal, for that matter)?

Simon mentioned before why dnsmasq can't "reload" it's config because it
drops privileges. But I can't see a reason why we can't reread /etc/ethers
and the client cache (for me that's in /tmp/).

I would welcome a "state update" signal of some sort.
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


[Dnsmasq-discuss] Distributed lease database on a mesh, using batman-adv alfred

2013-11-02 Thread Gui Iribarren

Hello once again Simon,
we are giving one more iteration to this Libre-Mesh[0] idea, this 
weekend at a HackMeeting[1] near Bilbao


i already described a bit of the "interesting" setup generated by the 
firmware in my last email.


To make the mesh as distributed / resilient as possible, there's a 
dnsmasq instance running on each node, with identical configuration 
(i.e. everyone serves the same range to its clients, since they are all 
part of a batadv link-local that enables them to roam around)
This scheme needs some kind of "lease propagation" between all 
instances: not only to avoid collisions in a robust way, but also to 
have cloud-wide hostname resolution (i.e. any dnsmasq will know 
hostname->ip of every client, independent of which dnsmasq gave the 
lease to the client)


Gioacchino did a small script[2] to be used as a --dhcp-script, that 
talks to alfred[3] (a batadv-related daemon that propagates arbitrary 
data over a link-local) and correctly populates dnsmasq lease database 
on startup (since leasefile-ro makes dnsmasq call the script with "init" 
arg)


it also accepts "add" actions and such, and instantly propagates leases 
to the rest of the nodes.


Problem is, there's no way to update dnsmasq internal database from 
outside (i.e. when alfred gets new info from another node); SIGHUP will 
not make dnsmasq call dhcp-script "init", only a full restart will do, 
and we'd rather not kill and respawn dnsmasq whenever a new lease is 
given in any part of the cloud :P


Simon, any chance of having dnsmasq call "init" on dhcp-script (or 
lua-hook, if it's simpler) when getting a SIGHUP (or another, dedicated 
signal, for that matter)?


I hope my description of why that'd be highly desirable was 
understandable :)


Hope you're having a nice weekend!

Gui

[0]: http://dev.libre-mesh.org/
[1]: 
http://sindominio.net/hackmeeting/wiki/2013/Nodos/Libre-mesh:_metafirmware_OpenWrt_para_cualquier_comunidad_WiFi_del_mundo
[2]: 
https://github.com/libre-mesh/lime-packages/blob/master/packages/lime-dnsmasq-lease-share/src/dnsmasq-lease-share.lua

[3]: http://www.open-mesh.org/projects/alfred

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


[Dnsmasq-discuss] DHCPv6 Prefix delegation

2013-11-02 Thread mudrunka

Hello,

1.) i am experimenting with DHCPv6 and possibilities of implementing 
preffix delegation... And i've found that i am not even able to get 
rudimentary DHCPv6 running, i am trying to assign adress (and possibly 
dhcpv6 options) to specified DUID using following config:



port=0
log-dhcp
log-facility=/tmp/dnsmasq
dhcp-authoritative

#dhcp-host=id:00:03:00:01:00:0c:42:8d:3b:07,set:lolo,[2001:67c:2190:1a01::1/64],harvie,300
dhcp-host=id:00:03:00:01:00:0c:42:8d:3b:07,set:lolo,[2001:67c:2190:1a01::1],harvie,300


However it doesn't seem to work at all when i launch dnsmasq -d -C 
/etc/dnsmasq.conf... Client still can't find any DHCPv6 server (while 
ISC-DHCP server works well with -6 option)


Do you have any experiences with DHCPv6? Documentation is bit lousy on 
this topic and i can't even google up any config examples or mentions of 
successful applications of dnsmasq fo DHCPv6 server...



2.) Also i have wrote following string to compile custom DHCPv6 option 
payload according to RFC:

https://github.com/Harvie/Programs/blob/master/bash/dhcp-option.sh

And included the result like this:
dhcp-option-force=tag:lolo,25,00:00:00:00:00:00:01:2C:00:00:01:2C:1A:62:00:00:01:2c:00:00:01:2c:34:30:20:01:06:7c:21:90:1a:01:00:00:00:00:00:00:00:00

Is it possible to specify DHCP option with custom option id and in this 
hexadecimal format?



THX

Best regards
Harvie

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