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

Rahul Jain rahul2308 at outlook.com
Tue Nov 22 05:51:17 GMT 2016


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-bounces at lists.thekelleys.org.uk> on behalf of dnsmasq-discuss-request at lists.thekelleys.org.uk <dnsmasq-discuss-request at lists.thekelleys.org.uk>
Sent: Tuesday, November 22, 2016 12:14 AM
To: dnsmasq-discuss at lists.thekelleys.org.uk
Subject: Dnsmasq-discuss Digest, Vol 138, Issue 13

Send Dnsmasq-discuss mailing list submissions to
        dnsmasq-discuss at 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-request at lists.thekelleys.org.uk

You can reach the person managing the list at
        dnsmasq-discuss-owner at 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 +0000
From: Rahul Jain <rahul2308 at outlook.com>
To: "dnsmasq-discuss at lists.thekelleys.org.uk"
        <dnsmasq-discuss at lists.thekelleys.org.uk>
Subject: [Dnsmasq-discuss] Help: Changes when service dnsmasq start is
        executed
Message-ID:
        <MWHPR19MB09582C4881F3ACA46E62C10BB7B50 at 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.aribaud at free.fr>
To: Rahul Jain <rahul2308 at outlook.com>
Cc: "dnsmasq-discuss at lists.thekelleys.org.uk"
        <dnsmasq-discuss at lists.thekelleys.org.uk>
Subject: Re: [Dnsmasq-discuss] Help: Changes when service dnsmasq
        start is executed
Message-ID: <20161121154525.0df935ba at lilith>
Content-Type: text/plain; charset=UTF-8

Hi Rahul,

Le Mon, 21 Nov 2016 13:43:24 +0000
Rahul Jain <rahul2308 at 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 <rob0 at gmx.co.uk>
To: dnsmasq-discuss at lists.thekelleys.org.uk
Subject: Re: [Dnsmasq-discuss] Help: Changes when service dnsmasq
        start is executed
Message-ID: <20161121154431.GA6068 at harrier.slackbuilds.org>
Content-Type: text/plain; charset=us-ascii

On Mon, Nov 21, 2016 at 01:43:24PM +0000, 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/
[http://rob0.nodns4.us/mysza.gif]<http://rob0.nodns4.us/>

/dev/rob0 email & Linux admin<http://rob0.nodns4.us/>
rob0.nodns4.us
/dev/rob0. Postfix, DNS and general Linux system administration and consulting. Email is complex. Getting it right can be very difficult. I can help you with the mail ...



  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:



------------------------------

Message: 4
Date: Mon, 21 Nov 2016 15:52:47 +0000
From: Kevin Darbyshire-Bryant <kevin at darbyshire-bryant.me.uk>
To: <dnsmasq-discuss at lists.thekelleys.org.uk>
Subject: Re: [Dnsmasq-discuss] DHCPv6 ULA & Global address allocation
        & Apple devices
Message-ID:
        <3e1951b2-d9e4-341e-bd7f-a070dc9706f1 at darbyshire-bryant.me.uk>
Content-Type: text/plain; charset="windows-1252"; format=flowed

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, &ia_end, &ia_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, &t1cntr);






------------------------------

Message: 5
Date: Mon, 21 Nov 2016 18:08:00 +0000
From: Simon Kelley <simon at thekelleys.org.uk>
To: dnsmasq-discuss at lists.thekelleys.org.uk
Subject: Re: [Dnsmasq-discuss] Dnsmasq-discuss search facility
        (s.O.T.)
Message-ID: <bc6bd114-4b06-39e1-9f7d-373148ebec7e at thekelleys.org.uk>
Content-Type: text/plain; charset=windows-1252

-----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 at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Dnsmasq-discuss Info Page<http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss>
lists.thekelleys.org.uk
A list for discussion about the dnsmasq DNS and DHCP server. Configuration, bugs and development. To control spam, only subscribers are allowed to post to the list.



>
-----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-----



------------------------------

Message: 6
Date: Mon, 21 Nov 2016 18:44:35 +0000
From: Kevin Darbyshire-Bryant <kevin at darbyshire-bryant.me.uk>
To: <dnsmasq-discuss at lists.thekelleys.org.uk>
Subject: Re: [Dnsmasq-discuss] DHCPv6 ULA & Global address allocation
        & Apple devices
Message-ID:
        <5916a05c-4114-2b4b-0aae-67cdf4589274 at darbyshire-bryant.me.uk>
Content-Type: text/plain; charset="windows-1252"; format=flowed



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.



------------------------------

Subject: Digest Footer

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss at lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Dnsmasq-discuss Info Page<http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss>
lists.thekelleys.org.uk
A list for discussion about the dnsmasq DNS and DHCP server. Configuration, bugs and development. To control spam, only subscribers are allowed to post to the list.





------------------------------

End of Dnsmasq-discuss Digest, Vol 138, Issue 13
************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20161122/86976df2/attachment-0001.html>


More information about the Dnsmasq-discuss mailing list