In my DHCPv6 server I have set option code 23 to distribute the address of a DNS resolver for IPv6.
I used the syntax ‘1:2:3:4:5:6:7:8’ to specify the IPv6 address of the DNS resolver (IPv6 address in single quotes) and it converts it correctly to a raw value.
Now I want to specify 2 addresses (2 resolvers). What is the syntax to do that?
Unfortunately /ipv6 dhcp-server option is completely undocumented… I only stumbled upon the possibility to specify an address in single quotes and have it automatically converted, somewhere in a forum message I think. And for a single address it works OK.
Maybe a difference is that my IPv6 addresses are actually of form 1111:2222:3333:5::1
That is also the main reason I used this format instead of raw.
Now I have applied both addresses sequentially, copied the raw values, and put 0x + the two raw values in the option value.
That works OK.
I’ll try later on a test router at home with your example…
@nescafe2002 syntax works for me even when there is zeroes compression. Are you sure you’re not missing singles quotes around addresses within double quotes?
I found the reason, I had a space between the two quoted addresses, that is apparently not allowed.
Without a space it works and it evaluates to what I already had in the raw value.
Thanks for the info! Now if they would make a documentation paragraph about /ipv6 dhcp-server option…