Community discussions

MikroTik App
 
User avatar
Anumrak
Forum Guru
Forum Guru
Topic Author
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Can't get DNSv6 from SLAAC

Wed Apr 25, 2018 12:31 pm

Hi everyone. I've managed IPv6 to my LAN, in IPv6 network discovery I've enabled DNS advertising and advertising IPv6 address itself from prefix. My laptop got addresses and DNSv6 too. PC's with win 8.1 also got addresses, but didn't get dnsv6 servers addresses. Is it true that windows OS can't install dnsv6 servers from 25 protocol of IPv6?
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Can't get DNSv6 from SLAAC

Wed Apr 25, 2018 2:01 pm

Microsoft only added support for DNS from RA not so long ago. And as far as I know, only to Windows 10, no backports. But you can use DHCPv6, RouterOS supports stateless server.
 
User avatar
Anumrak
Forum Guru
Forum Guru
Topic Author
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Can't get DNSv6 from SLAAC

Wed Apr 25, 2018 2:25 pm

Microsoft only added support for DNS from RA not so long ago. And as far as I know, only to Windows 10, no backports. But you can use DHCPv6, RouterOS supports stateless server.
You mean I need to manage dhcpv6 server + IPv6 advertising?
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Can't get DNSv6 from SLAAC

Wed Apr 25, 2018 2:51 pm

You already have advertising, so you just need to enable other config in options, add DHCPv6 server to same interface without specifying pool and it will work in stateless mode and provide info to clients that ask (as instructed by other config flag in RA).
 
User avatar
Anumrak
Forum Guru
Forum Guru
Topic Author
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Can't get DNSv6 from SLAAC

Wed Apr 25, 2018 2:53 pm

You already have advertising, so you just need to enable other config in options, add DHCPv6 server to same interface without specifying pool and it will work in stateless mode and provide info to clients that ask (as instructed by other config flag in RA).
That's what I meant. Will try, thanks! :)
 
User avatar
Anumrak
Forum Guru
Forum Guru
Topic Author
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Can't get DNSv6 from SLAAC

Thu Apr 26, 2018 9:48 am

Stateless DHCPv6 not working. Works only ND and RA and static DNSv6.
Last edited by Anumrak on Fri Apr 27, 2018 9:16 am, edited 1 time in total.
 
User avatar
Anumrak
Forum Guru
Forum Guru
Topic Author
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Can't get DNSv6 from SLAAC

Thu Apr 26, 2018 3:05 pm

Stateless DHCPv6 now working. Works only ND and RA and static DNSv6.
Can anyone confirm this?
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Can't get DNSv6 from SLAAC

Thu Apr 26, 2018 7:03 pm

So "now working" or "not working"? It works for me and with current RouterOS, you can use any options you need (the interface for options if not very friendly yet, but it works).

RouterOS config:
/ipv6 address
add address=2001:db8::1/64 interface=ether3
/ipv6 nd
set [ find default=yes ] other-configuration=yes
/ipv6 dhcp-server option
add code=23 name=dnsrecursivenameserver value=0x20010db800000000000000000000000220010db8000000000000000000000003
add code=24 name=domainsearchlist value=0x076578616d706c65036e657400076578616d706c6503636f6d00
/ipv6 dhcp-server
add dhcp-option=dnsrecursivenameserver,domainsearchlist interface=ether3 name=server1
Connected Windows 8.1:
Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : example.net
   Description . . . . . . . . . . . : Intel(R) 82574L Gigabit Network Connection
   Physical Address. . . . . . . . . : 00-0C-29-46-67-17
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:db8::adcd:16f7:b9b5:6516(Preferred)

   Temporary IPv6 Address. . . . . . : 2001:db8::14a5:337e:7a50:8ea0(Preferred)

   Link-local IPv6 Address . . . . . : fe80::adcd:16f7:b9b5:6516%3(Preferred)
   Autoconfiguration IPv4 Address. . : 169.254.101.22(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . : fe80::20c:29ff:feef:fd4%3
   DHCPv6 IAID . . . . . . . . . . . : 50334761
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1B-0A-34-DF-00-0C-29-46-67-17

   DNS Servers . . . . . . . . . . . : 2001:db8::2
                                       2001:db8::3
   NetBIOS over Tcpip. . . . . . . . : Enabled
   Connection-specific DNS Suffix Search List :
                                       example.net
                                       example.com
If you don't define any DHCPv6 option, server will by default take DNS resolvers from "/ip dns", if there are any.
 
User avatar
Anumrak
Forum Guru
Forum Guru
Topic Author
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Can't get DNSv6 from SLAAC

Fri Apr 27, 2018 9:19 am

Sorry for misunderstanding about "now". It was "not".

If I set "other options" with dhcpv6 server active on advertising interface, I will not get dnsv6 servers to my PC. DNSv6 are set in IP - DNS. There are v4 and v6 servers. I know about dhcp options, but did not try yet. I need the server to get dnsv6 from IP - DNS. ROS 6.42.1.
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Can't get DNSv6 from SLAAC

Fri Apr 27, 2018 2:48 pm

No problem with that either:
/ip dns
set allow-remote-requests=yes servers=192.168.80.1,192.168.80.3,2001:db8::4,2001:db8::5
/ipv6 address
add address=2001:db8::1/64 interface=ether3
/ipv6 nd
set [ find default=yes ] other-configuration=yes
/ipv6 dhcp-server
add interface=ether3 name=server1
Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) 82574L Gigabit Network Connection
   Physical Address. . . . . . . . . : 00-0C-29-46-67-17
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:db8::adcd:16f7:b9b5:6516(Preferred)

   Temporary IPv6 Address. . . . . . : 2001:db8::a465:670:f11a:95be(Preferred)
   Link-local IPv6 Address . . . . . : fe80::adcd:16f7:b9b5:6516%3(Preferred)
   Autoconfiguration IPv4 Address. . : 169.254.101.22(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . : fe80::20c:29ff:feef:fd4%3
   DHCPv6 IAID . . . . . . . . . . . : 50334761
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1B-0A-34-DF-00-0C-29-46-67-17

   DNS Servers . . . . . . . . . . . : 2001:db8::4
                                       2001:db8::5
   NetBIOS over Tcpip. . . . . . . . : Enabled
I'd try packet sniffer on client, it will immediatelly show if it receives correct RA, if it sends DHCPv6 request, and what it gets back.
 
User avatar
Anumrak
Forum Guru
Forum Guru
Topic Author
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Can't get DNSv6 from SLAAC

Fri Apr 27, 2018 3:54 pm

I think I'll prefer to use just slaac, without statless dhcpv6. Will wait for statefull dhcpv6. But thanks for your answers and help! :)
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Can't get DNSv6 from SLAAC

Fri Apr 27, 2018 4:25 pm

Well, unless you're doing IPv6-only network, you can easily live without IPv6 resolvers, system will use IPv4 ones. Both can return all records.
 
User avatar
Anumrak
Forum Guru
Forum Guru
Topic Author
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Can't get DNSv6 from SLAAC

Sat Apr 28, 2018 10:21 am

It's nice that ipv6 has priority over ipv4 :) It is so unusual that ipv4 now more in support role.
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Can't get DNSv6 from SLAAC

Wed May 02, 2018 2:45 am

What I like most is having them both, it's like a backup connection for free. Make a mistake in firewall config, lock yourself out ... and there's no need to worry, because you can still connect using the other protocol. It actually happened to me only few times over the years, and I wasn't always even the person who got locked out, but it's nice to have it as option.

IPv4 as the other (less important) protocol sounds nice, but it will take a lot of time, before it happens everywhere. There are still too many stubborn people who honestly believe that IPv6 will lose and they will get shiny new IPv7. Something better, because it won't be "overcomplicated as IPv6", but "simple like IPv4, only with more addresses".

I guess I will miss NAT, when IPv6 finally rules the world. I mean, I will be glad to get rid of it, of course. But we had so many exciting experiences together, it will be like losing life-long companion. ;)
 
doctorrock
just joined
Posts: 21
Joined: Fri Mar 17, 2017 11:08 am

Re: Can't get DNSv6 from SLAAC

Sun May 20, 2018 11:21 pm

Strange, doesn't work for me.

I get in the mkt logs "handling only prefix delegation discarding" , Mkt seems to only delegate prefix through DHCP, no IA for single stations.
I can't make DHCPV6-server work for hosts (tried Windows host) , and I can't make DNS pass through DHCP for Windows hosts. SLAAC works fine (but with no DNS provided).
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Can't get DNSv6 from SLAAC

Mon May 21, 2018 12:19 am

That's correct, addresses are not supported yet. But DNS (and other options, if you add them) from DHCPv6 works. Don't forget the other-configuration=yes in /ipv6 nd, it's what tells clients to ask DHCPv6.
 
doctorrock
just joined
Posts: 21
Joined: Fri Mar 17, 2017 11:08 am

Re: Can't get DNSv6 from SLAAC

Mon May 21, 2018 5:02 pm

That's what I do , but my Windows client asks for an address , even if I say that I use SLAAC. And it won't get an adress through DHCP , thus it stucks at renewing its IPV6.

Windows 8.1 is the target.
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Can't get DNSv6 from SLAAC

Tue May 22, 2018 3:48 pm

How client gets address and other info depends on router advertisements, and you control those (options in "/ipv6 nd"). Look at what I posted in this thread before, it's minimal working config and you can also see what Windows client does with it. Do you have something significantly different in yours?
 
doctorrock
just joined
Posts: 21
Joined: Fri Mar 17, 2017 11:08 am

Re: Can't get DNSv6 from SLAAC

Wed May 23, 2018 1:10 am

I have the same configuration yes :-p
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Can't get DNSv6 from SLAAC

Wed May 23, 2018 1:41 am

So definitely not managed-address-configuration=yes?
 
doctorrock
just joined
Posts: 21
Joined: Fri Mar 17, 2017 11:08 am

Re: Can't get DNSv6 from SLAAC

Thu May 24, 2018 12:30 am

With SLAAC , it works
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Can't get DNSv6 from SLAAC

Thu May 24, 2018 6:44 pm

Packet sniffer and RouterOS logging are your friends, I'm sure there's an explanation.
 
doctorrock
just joined
Posts: 21
Joined: Fri Mar 17, 2017 11:08 am

Re: Can't get DNSv6 from SLAAC

Thu May 24, 2018 10:28 pm

Well what happens is that :

If I say I use SLAAC (managed=0)
My Windows hosts uses SLAAC just all right, but has no DNS

If I say I use SLAAC (managed=0) and want to provide DNS throught DHCPV6 (other=1)
My Windows hosts uses SLAAC just all right, but still has no DNS : it performs no DHCPV6 request at all to my router

If I say I use managed DHCPV6 config (managed=1)
My Windows hosts still uses SLAAC not performing DHCPV6 requests. Mikrotik still sends the A flag in Prefix Information, which means SLAAC should be used. My host then receives two opposite meaning messages, and the stack then assumes SLAAC, and does not perform DHCP requests.

If I force a DHCP renew on my host
Whatever network IPV6 config, if I force my Windows host to an address renew , it then performs a DHCP request to my Mikrotik, but that one does not answer, and logs "handling only prefix delegation discarding"

Please, have a look at that presentation which gives some details : http://www.swissipv6council.ch/sites/de ... 150430.pdf
 
User avatar
Anumrak
Forum Guru
Forum Guru
Topic Author
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Can't get DNSv6 from SLAAC

Thu May 24, 2018 10:31 pm

Well what happens is that :

If I say I use SLAAC (managed=0)
My Windows hosts uses SLAAC just all right, but has no DNS

If I say I use SLAAC (managed=0) and want to provide DNS throught DHCPV6 (other=1)
My Windows hosts uses SLAAC just all right, but still has no DNS : it performs no DHCPV6 request at all to my router

If I say I use managed DHCPV6 config (managed=1)
My Windows hosts still uses SLAAC not performing DHCPV6 requests. Mikrotik still sends the A flag in Prefix Information, which means SLAAC should be used. My host then receives two opposite meaning messages, and the stack then assumes SLAAC, and does not perform DHCP requests.

If I force a DHCP renew on my host
Whatever network IPV6 config, if I force my Windows host to an address renew , it then performs a DHCP request to my Mikrotik, but that one does not answer, and logs "handling only prefix delegation discarding"

Please, have a look at that presentation which gives some details : http://www.swissipv6council.ch/sites/de ... 150430.pdf
Confirmed :)
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Can't get DNSv6 from SLAAC

Fri May 25, 2018 1:29 am

I can't test things right now, but:
If I say I use SLAAC (managed=0) and want to provide DNS throught DHCPV6 (other=1)
My Windows hosts uses SLAAC just all right, but still has no DNS : it performs no DHCPV6 request at all to my router
It works here, it's the simple example I posted.
If I say I use managed DHCPV6 config (managed=1)
My Windows hosts still uses SLAAC not performing DHCPV6 requests. Mikrotik still sends the A flag in Prefix Information, which means SLAAC should be used. My host then receives two opposite meaning messages, and the stack then assumes SLAAC, and does not perform DHCP requests.
If you don't like A flag and you didn't configure prefix manually in "/ipv6 nd prefix", you can disable it in "/ipv6 nd prefix default".
 
User avatar
Anumrak
Forum Guru
Forum Guru
Topic Author
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Can't get DNSv6 from SLAAC

Fri May 25, 2018 9:29 am

Nice presentation by the way :)
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Can't get DNSv6 from SLAAC

Fri May 25, 2018 12:37 pm

To clear some things up:
Full DHCPv6 is coming. sorry no ETAs, now with this out of the window.

Windows in any form do not support DNS via RA (or SLAAC) you can do whatever you want - MS Windows will not take the address in the advertisement. That is why at the time DHCP-PD server was made to answer to DHCP INFO packets (well, they are part of DHCPv6). For that to work you have to advertise to your network that there is "Other Configuration option" and that tells all the IPv6 hosts that they can ask for stuff. If you start to advertise - "managed configuration" flag - that will tell every host on the network NOT to use SLAAC for auto-configuration. However, you will still see the advertisements on your network. That is because hosts (the end user nodes of the ipv6 network) need to be told what policies are active in the network.
 
doctorrock
just joined
Posts: 21
Joined: Fri Mar 17, 2017 11:08 am

Re: Can't get DNSv6 from SLAAC

Sat May 26, 2018 3:23 am

Ok thx for informations

Who is online

Users browsing this forum: No registered users and 11 guests