Re: [Dnsmasq-discuss] IPv6 on OpenWRT

2017-01-22 Thread Eric Luehrsen
/tmp/etc/dnsmasq.conf ... auto generated chunk

ra-param=br-lan,0,7200
dhcp-range=set:lan,::1000,::,constructor:br-lan,slaac,ra-names,4h
dhcp-option=lan,option:ntp-server,0.0.0.0
dhcp-option=lan,option:dns-server,0.0.0.0
dhcp-option=lan,252,"\n"
dhcp-option=lan,option6:ntp-server,[fd00::]
dhcp-option=lan,option6:dns-server,[fd00::]
enable-ra
quiet-ra


/etc/config/dhcp ... lan chunk

config dhcp 'lan'
    option dhcpv4 'server'
    option dhcpv6 'server'
    option interface 'lan'
    option limit '150'
    option leasetime '4h'
    option ra 'server'
    option ra_management '1'
    option ra_preference 'medium'
    option start '100'
    list dhcp_option 'option:ntp-server,0.0.0.0'
    list dhcp_option 'option:dns-server,0.0.0.0'
    list dhcp_option '252,"\n"'
    list dhcp_option 'option6:ntp-server,[fd00::]'
    list dhcp_option 'option6:dns-server,[fd00::]'

With my pull request on LEDE


 Original message 
From: Aaron Wood <wood...@gmail.com> 
Date: 1/23/17 00:46 (GMT-05:00) 
To: Eric Luehrsen <ericluehr...@hotmail.com> 
Cc: "BIZ: DNSMASQ List" <dnsmasq-discuss@lists.thekelleys.org.uk> 
Subject: Re: [Dnsmasq-discuss] IPv6 on OpenWRT 




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


Re: [Dnsmasq-discuss] IPv6 on OpenWRT

2017-01-22 Thread Aaron Wood
Thanks much, Eric,

I've tried a few different options, and am still not getting the dns-server
option to work in my setup.  The RAs don't contain the dns info.

Here's the latest setup (based on info from Eric's PR):

enable-ra
dhcp-range=lan6,::,constructor:br-lan,slaac,ra-names
dhcp-option=lan6,option6:dns-server,[fd00::]

I've also tried:
dhcp-range=lan6,::,constructor:br-lan,ra-only
and
dhcp-range=lan6,::,constructor:br-lan

Any pointers to what I might be doing wrong are greatly appreciated.

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


Re: [Dnsmasq-discuss] IPv6 on OpenWRT

2017-01-22 Thread Eric Luehrsen

https://github.com/lede-project/source/pull/674


- Eric


 Original message 
From: Aaron Wood <wood...@gmail.com>
Date: 1/23/17 00:46 (GMT-05:00)
To: Eric Luehrsen <ericluehr...@hotmail.com>
Cc: "BIZ: DNSMASQ List" <dnsmasq-discuss@lists.thekelleys.org.uk>
Subject: Re: [Dnsmasq-discuss] IPv6 on OpenWRT

On Sun, Jan 22, 2017 at 8:40 PM, Eric Luehrsen 
<ericluehr...@hotmail.com<mailto:ericluehr...@hotmail.com>> wrote:
Syntax error also. option/option6 statements need a colon before the option-name
--dhcp-option=option6:dns-server,[fd00::]

For OpenWrt/LEDE you can use dnsmasq-dhcp6 or dnsmasq-full. If you migrate over 
to LEDE and do your own builds, I have a pull on github to incorporate 
dnsmasq-dhcp6 into UCI when odhcpd is removed or disabled. Also LEDE 
dnsmasq.init script inspects the build options on dnsmasq and prevents you from 
trying to configure missing content. If you are concerned about stability. LEDE 
will be releasing 17.01 soon; my pull won't be in it, but its easy to hijack 
the init script from git hub.

I needed to switch to dnsmasq-full to get the option6 parsing to work (without 
it, it wanted the comma, not the colon).

And now I realize that I have odhcpd running, and not dnsmasq, for ipv6 
connectivity configuration.  This will be fun to switch to.

(and a link to that pull would be greatly appreciated, Eric)

-Aaron



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


Re: [Dnsmasq-discuss] IPv6 on OpenWRT

2017-01-22 Thread Aaron Wood
On Sun, Jan 22, 2017 at 8:40 PM, Eric Luehrsen 
wrote:

> Syntax error also. option/option6 statements need a colon before the
> option-name
> --dhcp-option=option6:dns-server,[fd00::]
>
> For OpenWrt/LEDE you can use dnsmasq-dhcp6 or dnsmasq-full. If you migrate
> over to LEDE and do your own builds, I have a pull on github to incorporate
> dnsmasq-dhcp6 into UCI when odhcpd is removed or disabled. Also LEDE
> dnsmasq.init script inspects the build options on dnsmasq and prevents you
> from trying to configure missing content. If you are concerned about
> stability. LEDE will be releasing 17.01 soon; my pull won't be in it, but
> its easy to hijack the init script from git hub.
>

I needed to switch to dnsmasq-full to get the option6 parsing to work
(without it, it wanted the comma, not the colon).

And now I realize that I have odhcpd running, and not dnsmasq, for ipv6
connectivity configuration.  This will be fun to switch to.

(and a link to that pull would be greatly appreciated, Eric)

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


Re: [Dnsmasq-discuss] IPv6 on OpenWRT

2017-01-22 Thread Eric Luehrsen
Syntax error also. option/option6 statements need a colon before the option-name
--dhcp-option=option6:dns-server,[fd00::]

For OpenWrt/LEDE you can use dnsmasq-dhcp6 or dnsmasq-full. If you migrate over 
to LEDE and do your own builds, I have a pull on github to incorporate 
dnsmasq-dhcp6 into UCI when odhcpd is removed or disabled. Also LEDE 
dnsmasq.init script inspects the build options on dnsmasq and prevents you from 
trying to configure missing content. If you are concerned about stability. LEDE 
will be releasing 17.01 soon; my pull won't be in it, but its easy to hijack 
the init script from git hub.

ERIC



From: Aaron Wood 
Sent: Sunday, January 22, 2017 22:56
I've realized that OSX has the same issue as a client, and so I've been trying 
to get this to work on LEDE/OpenWRT.  And all I'm getting from dnsmasq is grief 
about the opt-spec being incorrect:
The following:
dhcp-option=option6,dns-server,[fd00::] 
yields errors about invalid options
And the following:
dhcp-option=option6,6,[fd00::]
complains about an invalid ip address
It's v2.76.
But I see from the compile options, that IPv6 may only be partially configured:
IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack 
no-ipset no-auth no-DNSSEC no-ID loop-detect inotify
And so I'm guessing that with the ipv6 option, RA works, but without DHCPv6, 
none of the features like option6 work correctly??
-Aaron   
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] IPv6 on OpenWRT

2017-01-22 Thread Aaron Wood
On Mon, Jan 16, 2017 at 7:37 PM, Eric Luehrsen 
wrote:

> Hi Alec,
>
> Have you tried setting `--dhcp-option=option6:dns-server,[fd00::]` for
> auto fill in of ULA or `--dhcp-option=option6:dns-server,[::]` auto ~ GA?
>
> By default dnsmasq will send [fe80::] LL in RA and DHCPv6, but some
> clients do not like DNS on LL. It also can break down in some
> virtual-bridge situations. The client network driver forgets (or software
> resolver bug doesnt enter) which interface to route [fe80::] on. IT often
> requires %eth0 or some such. The above options will override this [fe80::]
> address, and make the situation more robust..
>

I've realized that OSX has the same issue as a client, and so I've been
trying to get this to work on LEDE/OpenWRT.  And all I'm getting from
dnsmasq is grief about the opt-spec being incorrect:

The following:
dhcp-option=option6,dns-server,[fd00::]
yields errors about invalid options

And the following:
dhcp-option=option6,6,[fd00::]
complains about an invalid ip address

It's v2.76.

But I see from the compile options, that IPv6 may only be partially
configured:
IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP *no-DHCPv6* no-Lua TFTP
no-conntrack no-ipset no-auth no-DNSSEC no-ID loop-detect inotify

And so I'm guessing that with the ipv6 option, RA works, but without
DHCPv6, none of the features like option6 work correctly??

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


Re: [Dnsmasq-discuss] IPv6 on OpenWRT

2017-01-16 Thread Eric Luehrsen
Hi Alec,

Have you tried setting `--dhcp-option=option6:dns-server,[fd00::]` for auto 
fill in of ULA or `--dhcp-option=option6:dns-server,[::]` auto ~ GA? 

By default dnsmasq will send [fe80::] LL in RA and DHCPv6, but some clients do 
not like DNS on LL. It also can break down in some virtual-bridge situations. 
The client network driver forgets (or software resolver bug doesnt enter) which 
interface to route [fe80::] on. IT often requires %eth0 or some such. The above 
options will override this [fe80::] address, and make the situation more 
robust..

>2016-12-26 18:56 GMT-02:00 Alec Robertson :  
> Hi all, 
> 
> I am using dnsmasq on OpenWRT and I have configured the DHCPv6 server and 
> it is working well with the clients connected to the router. However, the 
> DNS is not working; IPv6 requests are not successful. 
> 
> The clients are given the router’s IP for DNS, like they are with IPv4 but 
> the DNS is not working. How do I configure the DNS servers on dnsmasq 
> correctly? I am using a 6in4 tunnel via Hurricane Electric. 
> 
> ___ 
> Dnsmasq-discuss mailing list 
> Dnsmasq-discuss@lists.thekelleys.org.uk 
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss 
> 
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] IPv6 on OpenWRT

2016-12-27 Thread Ronaldo Afonso
  Hi Alec,

  I would check the following:

  1) Is your router listening on an IPv6 like address, like an unspecified
::?
  2) Is your client trying to reach that address and port? You can check
that using tcpdump.
  3) Are you using an IPv6 upstream DNS server? You can check Googles DNS
server, I use it.
  4) Check the /etc/hosts and see if it has some entry like: localhost6 ::1.
  5) Check your router's connectivity with the IPv6 DNS server (ping6).

  I hope that was useful.



2016-12-26 18:56 GMT-02:00 Alec Robertson :

> Hi all,
>
> I am using dnsmasq on OpenWRT and I have configured the DHCPv6 server and
> it is working well with the clients connected to the router. However, the
> DNS is not working; IPv6 requests are not successful.
>
> The clients are given the router’s IP for DNS, like they are with IPv4 but
> the DNS is not working. How do I configure the DNS servers on dnsmasq
> correctly? I am using a 6in4 tunnel via Hurricane Electric.
>
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>


-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss