fbpx

Does the dhcpv6 server also assign dns?

For the dhcpv6 server to assign the dns, it must be enabled “Advertise DNS” in IPv6 → ND.

In IPv6, the DHCPv6 server can be configured to assign DNS addresses to clients, as well as other network configuration parameters. DHCPv6 functionality is flexible and allows two main modes of operation that affect how DNS can be assigned:

1. DHCPv6 Stateful

In stateful mode, DHCPv6 works similarly to DHCP on IPv4, assigning not only IP addresses (if necessary) but also other network settings, such as DNS. In this mode, the DHCPv6 server handles the entire address and configuration assignment process, including:

  • IPv6 addresses
  • DNS
  • Default Gateway
  • Other network options such as NTP servers

2. DHCPv6 Stateless

In stateless mode, DHCPv6 is mainly used to assign “other configuration parameters” that do not include the IPv6 address, which is generated by the SLAAC (Stateless Address AutoConfiguration) mechanism of the device itself. In this context, stateless DHCPv6 is commonly used to allocate:

  • DNS
  • Information about domain configuration
  • Additional routes

In both configurations, the process of specifying DNS servers is handled through the DHCP configuration option called Option 23 (DNS Recursive Name Server) y Option 24 (Domain Search List). These options allow the DHCPv6 server to provide DNS information to clients, which can use it to resolve domain names.

Configuration on the DHCPv6 Server

To configure a DHCPv6 server on a system such as MikroTik RouterOS, Cisco IOS, or similar systems, you typically need:

  1. Define the IPv6 address pool.
  2. Specify the DNS options that will be delivered to clients.
  3. Activate the DHCPv6 server on the corresponding interface.

For example, in MikroTik RouterOS, you can configure DHCPv6 to assign DNS as follows:

/ipv6 dhcp-server
add name=dhcpv6-server interface=ether1 address-pool=ipv6-pool
/ipv6 dhcp-server option
add code=23 name=dns-server value=0x20010db8000000000000000000000535
add code=24 name=dns-search value=0x0377777706676f6f676c6503636f6d00

This example configures DNS options for the DHCPv6 server, telling clients which DNS servers to use and which domains to search for.

In summary, yes, the DHCPv6 server can assign DNS, and its configuration can be adjusted to meet the specific needs of the network, whether in stateful or stateless mode.

There are no tags for this post.
Did this content help you?
Facebook
Twitter
LinkedIn
WhatsApp
Telegram

Other documents in this category

Leave your comment

Your email address will not be published. Required fields are marked with *

Tutorials available at MikroLABs

No Courses Found!

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

17%

all MikroTik OnLine courses

CW23-AX

30%

all Academy courses

CW23-LIB

25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

22%

all MikroTik OnLine courses

BF23-AX

35%

all Academy courses

BF23-LIB

30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011