Community discussions

MikroTik App
 
shaunmccloud
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Tue Jun 02, 2015 5:06 pm

IPv6 DNS

Sat Aug 21, 2021 3:03 am

I successfully replaced my pfSense box with my RB4011 tonight. For almost everything. My IPSEC tunnel still isn't up and IPv6 DNS is not working. I had my HE.net tunnel up and all was good there, but I was using an external DNS resolver which did not work. How do I use my RB4011 as my IPv6 DNS server?
 
biomesh
Long time Member
Long time Member
Posts: 561
Joined: Fri Feb 10, 2012 8:25 pm

Re: IPv6 DNS

Sat Aug 21, 2021 5:26 am

You need to make sure you have an ipv6 address assigned to an interface and have the DNS server set to allow remote requests.

If you want rdnss values to be sent in the neighbor advertisments, you need to add the ipv6 address to the DNS server list of DNS servers (settings) and set the ipv6 nd interface to advertise DNS.
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 897
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: IPv6 DNS

Sat Aug 21, 2021 11:06 am

Setting custom dns server in ND/RA is not possible until ROSv7.

For ROSv6, use option 23 in dhcpv6 server and enable 'other configuration' in RA:
/ipv6 dhcp-server option
add code=23 name=dns value="'2001:db8::1''2001:db8::2'"
/ipv6 dhcp-server
add dhcp-option=dns interface=bridge name=default
/ipv6 nd
set [ find default=yes ] advertise-dns=no other-configuration=yes
 
biomesh
Long time Member
Long time Member
Posts: 561
Joined: Fri Feb 10, 2012 8:25 pm

Re: IPv6 DNS

Sat Aug 21, 2021 2:45 pm

You can definitely set the nd rdnss values in Ros 6.x with the DNS server option(not using DHCP options). I don't run v7 and I verified my config. Perhaps v7 adds additional functionality for dhcpv6.
 
shaunmccloud
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Tue Jun 02, 2015 5:06 pm

Re: IPv6 DNS

Sat Aug 21, 2021 11:56 pm

Setting custom dns server in ND/RA is not possible until ROSv7.

For ROSv6, use option 23 in dhcpv6 server and enable 'other configuration' in RA:
/ipv6 dhcp-server option
add code=23 name=dns value="'2001:db8::1''2001:db8::2'"
/ipv6 dhcp-server
add dhcp-option=dns interface=bridge name=default
/ipv6 nd
set [ find default=yes ] advertise-dns=no other-configuration=yes
Even after doing this, I'm still getting assigned external DNS servers and not my RB4011 IP address. I'm also getting assigned an IPv6 address for every VLAN and not just the one I'm on, but that is a different issue.
LAN6 DHCP.png
LAN DNS.png
LAN IPv6 Address.png
ND.png
You do not have the required permissions to view the files attached to this post.
 
biomesh
Long time Member
Long time Member
Posts: 561
Joined: Fri Feb 10, 2012 8:25 pm

Re: IPv6 DNS

Sun Aug 22, 2021 2:28 am

Select the advertise DNS option on your nd interface entry and add your local ipv6 address to your Dns server config. If you don't want to use your Dns server from your ISP, set "use peer DNS" to no on your ipv6 DHCP client entry.
 
shaunmccloud
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Tue Jun 02, 2015 5:06 pm

Re: IPv6 DNS

Sun Aug 22, 2021 2:47 am

Select the advertise DNS option on your nd interface entry and add your local ipv6 address to your Dns server config. If you don't want to use your Dns server from your ISP, set "use peer DNS" to no on your ipv6 DHCP client entry.
I'm using a HE.net tunnel so I don't have an IPv6 DHCP Client configured.
 
biomesh
Long time Member
Long time Member
Posts: 561
Joined: Fri Feb 10, 2012 8:25 pm

Re: IPv6 DNS

Sun Aug 22, 2021 4:29 am

Ok, you can skip that step then. Just run through the steps in the first sentence. You should see the rdnss value in radvdump.
 
shaunmccloud
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Tue Jun 02, 2015 5:06 pm

Re: IPv6 DNS

Sun Aug 22, 2021 4:55 pm

Ok, you can skip that step then. Just run through the steps in the first sentence. You should see the rdnss value in radvdump.
So put an internal IPv6 address in my DNS setup and leave the external ones so RouterOS knows where to go? Sorry, my brain is not working super well today.
 
biomesh
Long time Member
Long time Member
Posts: 561
Joined: Fri Feb 10, 2012 8:25 pm

Re: IPv6 DNS

Sun Aug 22, 2021 9:46 pm

Yes, only the ipv6 address will be sent via rdnss.

Who is online

Users browsing this forum: No registered users and 45 guests