Community discussions

MikroTik App
 
Rockyboa
Member Candidate
Member Candidate
Topic Author
Posts: 106
Joined: Tue Jul 14, 2009 10:52 pm

dhcp server sending host-name

Mon Apr 25, 2022 2:00 am

Hi,

looking at the different way to change all the hostname of my servers that are booting using PXE, I'm trying to leverage the isc- dhclient https://kb.isc.org/docs/isc-dhcp-44-man ... cp-options that handle host-name. I build a script that use host to do reverse DNS, but I have some issue doing so.

It seems to be part of the dhcp rfc https://www.rfc-editor.org/rfc/rfc1533#section-3.14

Is there a way to leverage such thing in the Mikrotik dhcp server?

Maritn
 
User avatar
smyers119
Member Candidate
Member Candidate
Posts: 232
Joined: Sat Feb 27, 2021 8:16 pm
Location: USA

Re: dhcp server sending host-name

Wed May 04, 2022 7:00 am

"This option is only honored if the hostname for the client machine is not set."
 
Rockyboa
Member Candidate
Member Candidate
Topic Author
Posts: 106
Joined: Tue Jul 14, 2009 10:52 pm

Re: dhcp server sending host-name

Fri May 27, 2022 3:20 pm

Hi,

Thank for taking time to reply to my question. It is actually the case and when using a Linux machine running dnsmasq with this configuration line
dhcp-host=00:e0:66:59:88:8b,client1,192.168.78.51,set:diskless
it does assign the client1 to my device.

So trying to achieve similar behavior with the built-in customer Mikrotik DHCP,

Or I'll try to setup etckeeper just to manage hostname. By I doubt there is no way to achieve this with Mikrotik DHCP server.

Rocky.

Who is online

Users browsing this forum: AkosGergely, araqiel, GoogleOther [Bot], Maggiore81, Marc1963, miks and 89 guests