Hi everyone,
I would like for a DHCP client to give it a specific DNS , so trough the DHCP server: Options.
Which code/tag is it for the DNS ?
https://www.iana.org/assignments/bootp- ... ters.xhtml
The 6 or 15 ? Thank you.
[me@MyTik] > ip dhcp-server network add address=192.168.115.0/24 dns-server=[?]
Server ::= Address[,Server] (max 100 times)
Address ::= A.B.C.D (IP address)
So using the RouterOS way of defining DHCP options, you would use /ip dhcp-server option add name=dns code=5 value=0xc0a81301c0a82101 to define primary server 192.168.19.1 and secondary server 192.168.33.1.3.7. Name Server Option
The name server option specifies a list of IEN 116 [7] name servers available to the client. Servers SHOULD be listed in order of preference.
The code for the name server option is 5. The minimum length for this option is 4 octets, and the length MUST always be a multiple of 4.
...
0x means that the rest is in hexadecimalWho do you get 0xc0a81301c0a82101 from 192.168.19.1 & 192.168.33.1 ?