Reply

Send DHCP option 12 from dnsname variable?

Member
Posts: 2
2741     0

Hi all!

 

I am trying to send hostname to a say network printer through dhcp option 12 in a way that doesnt require me to type it manually. I want it to be generated from the DNS name since it has an entry there. Is there a variable in the gui for this or is scripting needed?

 

 

custom dhcp option

host-name (12) string = VARIABLE?

 

Thanks in advance!

/Johan

Re: Send DHCP option 12 from dnsname variable?

Adviser
Posts: 144
2742     0

Hi Johan,

 

If I follow you correctly, you would like to send a printer a hostname based on a DNS record that already exists for that device?

 

There is not a variable in the UI or method that I am aware of to accomplish this. You would likely need to leverage a script and update the parameters after the fact.

 

What might help you is to leverage a host object rather than a DNS record for the printer. The host object allows you to specify the DNS name as well as enable for DHCP based on the device's MAC address. You can also convert an existing DHCP lease into a host object if necessary. This may give you the control you are looking for and maintain an associating between the device and DNS records (host records).

Steve S.
Showing results for 
Search instead for 
Did you mean: 

Recommended for You