Re: [Dnsmasq-discuss] Dnsmasq-discuss Digest, Vol 138, Issue 13

2016-11-21 Thread Rahul Jain
Hi, thank you for the insight. Actually, I want this implementation on my 
router(which is running mipsel-linux), can't just simply install on it. 
Therefore, I have to run the binary there but I'm not getting the MAC address 
of the connected clients when I add the add-mac option in the conf file.


From: Dnsmasq-discuss <dnsmasq-discuss-boun...@lists.thekelleys.org.uk> on 
behalf of dnsmasq-discuss-requ...@lists.thekelleys.org.uk 
<dnsmasq-discuss-requ...@lists.thekelleys.org.uk>
Sent: Tuesday, November 22, 2016 12:14 AM
To: dnsmasq-discuss@lists.thekelleys.org.uk
Subject: Dnsmasq-discuss Digest, Vol 138, Issue 13

Send Dnsmasq-discuss mailing list submissions to
dnsmasq-discuss@lists.thekelleys.org.uk

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
or, via email, send a message with subject or body 'help' to
dnsmasq-discuss-requ...@lists.thekelleys.org.uk

You can reach the person managing the list at
dnsmasq-discuss-ow...@lists.thekelleys.org.uk

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Dnsmasq-discuss digest..."


Today's Topics:

   1. Help: Changes when service dnsmasq start is   executed (Rahul Jain)
   2. Re: Help: Changes when service dnsmasq start is executed
  (Albert ARIBAUD)
   3. Re: Help: Changes when service dnsmasq start is executed
  (/dev/rob0)
   4. Re: DHCPv6 ULA & Global address allocation & Apple devices
  (Kevin Darbyshire-Bryant)
   5. Re: Dnsmasq-discuss search facility (s.O.T.) (Simon Kelley)
   6. Re: DHCPv6 ULA & Global address allocation & Apple devices
  (Kevin Darbyshire-Bryant)


--

Message: 1
Date: Mon, 21 Nov 2016 13:43:24 +
From: Rahul Jain <rahul2...@outlook.com>
To: "dnsmasq-discuss@lists.thekelleys.org.uk"
<dnsmasq-discuss@lists.thekelleys.org.uk>
Subject: [Dnsmasq-discuss] Help: Changes when service dnsmasq start is
executed
Message-ID:

<mwhpr19mb09582c4881f3aca46e62c10bb7...@mwhpr19mb0958.namprd19.prod.outlook.com>

Content-Type: text/plain; charset="iso-8859-1"

Hi all,

I want to know about all the changes(internally as in files etc) when 
"service dnsmasq start" is executed. I noticed one change that it edits the 
/etc/resolv.conf. The reason is when I set the add-mac option in 
/etc/dnsmasq.conf and start the dnsmasq service, I'm able to get the EDNS0 
option in a dns query but when I compiled from the source and ran it, the same 
thing doesn't happen.


Thanks & Regards,

Rahul Jain
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20161121/fb2c706e/attachment-0001.html>

--

Message: 2
Date: Mon, 21 Nov 2016 15:45:25 +0100
From: Albert ARIBAUD <albert.arib...@free.fr>
To: Rahul Jain <rahul2...@outlook.com>
Cc: "dnsmasq-discuss@lists.thekelleys.org.uk"
<dnsmasq-discuss@lists.thekelleys.org.uk>
Subject: Re: [Dnsmasq-discuss] Help: Changes when service dnsmasq
start is executed
Message-ID: <20161121154525.0df935ba@lilith>
Content-Type: text/plain; charset=UTF-8

Hi Rahul,

Le Mon, 21 Nov 2016 13:43:24 +
Rahul Jain <rahul2...@outlook.com> a ?crit:

> Hi all,
>
> I want to know about all the changes(internally as in files etc)
> when "service dnsmasq start" is executed. I noticed one change that
> it edits the /etc/resolv.conf. The reason is when I set the add-mac
> option in /etc/dnsmasq.conf and start the dnsmasq service, I'm able
> to get the EDNS0 option in a dns query but when I compiled from the
> source and ran it, the same thing doesn't happen.

I believe you are mistaking two things here: the dnsmasq executable on
the one hand, and the operating system use of dnsmasq on the other hand.

The dnsmasq project only provides the dnsmasq executable. It does not
provide the scripts that the "service dnsmasq start" or "service
dnsmasq stop" commands will run.

These scripts are part of the operating system, and may actually vary
from distribution to distribution.

For instance, dnsmasq *never* edits the /etc/resolv.conf file -- this
is a system change which only the system can perform in a consistent
way.

To understand what "service dnsmasq *" does on your system, you should
refer to the documentation of the distribution you are using.

> Thanks & Regards,
>
> Rahul Jain

Amicalement,
--
Albert.



--

Message: 3
Date: Mon, 21 Nov 2016 09:44:31 -0600
From: /dev/rob0 <r...@gmx.co.uk>
To: dnsmasq-discuss@lists.thekelleys.org.uk
Subject: Re: [Dnsmasq-discuss] Help

Re: [Dnsmasq-discuss] DHCPv6 ULA & Global address allocation & Apple devices

2016-11-21 Thread Kevin Darbyshire-Bryant



On 21/11/16 15:52, Kevin Darbyshire-Bryant wrote:



PS: As a total hack, I got dnsmasq to ignore any requested addresses.
Dnsmasq replies with both ULA & Global addresses in the reply...and my
iPad is happy...it takes the global address.




Nope, the above worked temporarily by luck rather than judgement.

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


Re: [Dnsmasq-discuss] Dnsmasq-discuss search facility (s.O.T.)

2016-11-21 Thread Simon Kelley
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

I'm almost completely sure I've never done anything to remove the
advertising from the mail-archive pages. I'm absolutely that I've not
paid for that.


Cheers,

Simon.



On 17/11/16 16:18, Jim Alles wrote:
> Simon,
> 
> I very much like the mail-archive facility for searching previous
> topics, 
> https://www.mail-archive.com/dnsmasq-discuss@lists.thekelleys.org.uk/i
ndex.html
>
>  and have suggested it to another mailman administrator.
> 
> Can you tell me if you have paid the folks at mail-archive to
> remove advertising from the mail pages?
> 
> Thanks, Jim A.
> 
> 
> 
> ___ Dnsmasq-discuss
> mailing list Dnsmasq-discuss@lists.thekelleys.org.uk 
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBCAAGBQJYMzf/AAoJEBXN2mrhkTWi4TwP/RwkbNsRXW6frD+YCnklLyYV
QdKACi7wBmrr1ILYpLErCFYPQD1pgK6NLzISjSXK1hnh1ucmEuc+Y9HYT0A7VcYa
dLYiJuTslYYU1XShrrwn4hHjCdomK39OWQeSWZ3vHgGsHPuLaIVy+xwZx8J9N+lA
98q9L7pD6hDBA/e5ygbtRLiQPOv5VkVv/nlNDwEH6+sTyp1RSfR+1EEz6rVcMQ/1
L2IDDvz/MdRV4QVg+5hFxnaytm6af6L7qomhxzjqjaf2DF0ENAUq1R/RIubuetMw
Q5fxcPhY9ID4B0G2whPgZ4PB8NAY3elNmjuKffrKRGjVKvrqyInUhRslw1PQLP7B
2pk3oUTWsmsVBQGsNxVSTJzpD7zo0nZUVlzxO5tC08Qx5hxBl9yH3ZbY5aodTE+L
vYP1bl1S08loSdGKxsbhsaYewoCkUI7HTbn4fa8bIy0UEqk++ZW0RmF5a79HiRPo
RGryj96R9jYGYfmGjprwF8r1yek1LmZmLFKtQcPSu3BZ+Z08/65t+2zaMhV76OjR
mayaQBg5DRgIBxBt0AHey9akfe8NJbjKLekbxEWkL/N875Vjc0DsGFzdp9ocoX2T
NqYfSpxiyXHefYcORiC7HXmbTBWuX1AhQeYDhr0H/ktB+B8kG+aJf45q7dlTZQZr
/1rwE0Op5SYBKVKq4a9X
=Ek2Y
-END PGP SIGNATURE-

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


Re: [Dnsmasq-discuss] DHCPv6 ULA & Global address allocation & Apple devices

2016-11-21 Thread Kevin Darbyshire-Bryant
I've got some packet captures now that have helped answer some of the 
questions.


1) The DHCPADVERTISE in the log are included in just one packet.

2) The solicits from my ipad and the advertises are identical except 
dnsmasq presents the ULA address first whereas odhcpd presents the 
global address first.  Both ULA & global are included, just the order 
gets swapped.


3) The ipad requests the IPv6 address presented first in the solicit. 
So for odhcpd it requests global, whereas for dnsmasq it requests ULA.


4) dnsmasq replies with and only with the requested address (ULA) in 
this case.   odhcpd replies with both global and ULA addresses.



A few questions result:

1) Should dnsmasq reply with all available dhcpv6 ranges even if one 
specific address only is requested, like odhcpd?


2) Should dnsmasq re-order its replies in the solicits to present global 
first?


3) Is Apple wrong?


Help! :-)


Kevin


PS: As a total hack, I got dnsmasq to ignore any requested addresses. 
Dnsmasq replies with both ULA & Global addresses in the reply...and my 
iPad is happy...it takes the global address.





--- a/src/rfc3315.c
+++ b/src/rfc3315.c
@@ -867,13 +867,10 @@ static int dhcp6_no_relay(struct state *
 if (!check_ia(state, opt, _end, _option))
   continue;

-if (!ia_option)
-  {
 /* If we get a request with a IA_*A without addresses, 
treat it exactly like

a SOLICT with rapid commit set. */
 save_counter(start);
 goto request_no_address;
-  }

o = build_ia(state, );




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


Re: [Dnsmasq-discuss] Help: Changes when service dnsmasq start is executed

2016-11-21 Thread /dev/rob0
On Mon, Nov 21, 2016 at 01:43:24PM +, Rahul Jain wrote:
> I want to know about all the changes(internally as in files etc) 
> when "service dnsmasq start" is executed. I noticed one change that

This question should be directed to your distro.  Whilst Simon might 
have some involvement with implementing the init scripts on certain 
distros, it cannot be answered without knowing what distro (and the 
version thereof) you are using.

> it edits the /etc/resolv.conf. The reason is when I set the add-mac 
> option in /etc/dnsmasq.conf and start the dnsmasq service, I'm able 
> to get the EDNS0 option in a dns query but when I compiled from the 
> source and ran it, the same thing doesn't happen.

-- 
  http://rob0.nodns4.us/
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:

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


[Dnsmasq-discuss] DHCPv6 ULA & Global address allocation & Apple devices

2016-11-21 Thread Kevin Darbyshire-Bryant

Hi All,

This problem has been around a while (forever?) but it's only just 
annoyed me sufficiently to investigate.


The box in question is running a recent version LEDE and in my case 
dnsmasq git head bleeding edge.  LEDE normally uses its homegrown odhcpd 
to hand out DHCPv6 addresses, whereas I choose to disable this and use 
dnsmasq.  I use DHCPv6 stateful to hand out addresses, no SLAAC.


The problem is that some devices (Apple) only obtain a ULA based address 
allocation when using dnsmasq.  Using odhcpd they obtain both a ULA and 
global address.


I've previously worked around this simply by removing the ULA prefix 
from the LAN interface but the question remainswhy does this and 
should this happen?  Who is wrong?  dnsmasq or odhcpd?


dnsmasq:

Mon Nov 21 10:25:49 2016 daemon.info dnsmasq-dhcp[27664]: 
DHCPSOLICIT(br-lan) 00:01:00:01:18:c6:20:23:ac:3c:0b:0c:e7:fd
Mon Nov 21 10:25:49 2016 daemon.info dnsmasq-dhcp[27664]: 
DHCPADVERTISE(br-lan) fdb5:c64a:3cd0:2b::4ff0:198e 
00:01:00:01:18:c6:20:23:ac:3c:0b:0c:e7:fd
Mon Nov 21 10:25:49 2016 daemon.info dnsmasq-dhcp[27664]: 
DHCPADVERTISE(br-lan) 2a02:c7f:1220:bf2b::4ff0:198e 
00:01:00:01:18:c6:20:23:ac:3c:0b:0c:e7:fd
Mon Nov 21 10:25:49 2016 daemon.info dnsmasq-dhcp[27664]: 
DHCPREQUEST(br-lan) 00:01:00:01:18:c6:20:23:ac:3c:0b:0c:e7:fd
Mon Nov 21 10:25:49 2016 daemon.info dnsmasq-dhcp[27664]: 
DHCPREPLY(br-lan) fdb5:c64a:3cd0:2b::4ff0:198e 
00:01:00:01:18:c6:20:23:ac:3c:0b:0c:e7:fd



Curiously, the solicit gets responded to by two advertises, one ULA, one 
global.  The follow up dhcprequest only gets the single (ULA) response.



odhcpd:

Mon Nov 21 10:27:48 2016 daemon.warn odhcpd[1426]: DHCPV6 SOLICIT IA_NA 
from 0001000118c62023ac3c0b0ce7fd on br-lan: ok 
2a02:c7f:1220:bf2b::85e/128 fdb5:c64a:3cd0:2b::85e/128


Clearly the logging is very different and ideally I should grab a packet 
dump (being worked on!) to see how this is handled at the packet level 
(e.g. does dnsmasq send two reply packets vs odhcpd sends one but with 
two answers as hinted by the logs)


Insight and assistance appreciated :-)

Kevin

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