- Joined
- May 28, 2021
- Messages
- 1
- Reaction score
- 1
Hello there!
I wanna to explain to you, how i did change DHCP host name via provisioning.
You need next services:
1. DNS Server
2. Web Server
Sorry for my english grammar.. Im not english man.
So, at this week i read theese posts:
1. https://www.3cx.com/community/threads/setting-phone-hostname-during-provisioning.75091/
2. https://www.3cx.com/community/threads/dhcp-hostname.81450/
In my office i have a little server with config files wich contains next files:
1. Boot file y000000000000.boot with "include:config <http://sip.vekprom.team/hostname.cfg>"
2. At my web server i did wrote next php script.
<?php
header("Content-type: text");
//header('Content-Disposition: attachment; filename="hostname.cfg"');
//header("Connection: close");
header("Expires: -1");
$hostaddr = $_SERVER['REMOTE_ADDR'];
$hostname = gethostbyaddr("$hostaddr");
print "#!version:1.0.0.1 \n";
print "static.network.dhcp_host_name = $hostname";
?>
So, ill explain you:
Then ip phone starts provisoning, he is booting files which are spelled out in y000000000000.boot.
Ip phone execute php script which returns A record from DNS server.
So, if you have A record "ho101sip024" on your DNS server and you IP phone can send requests to him.
After restart your ip phone will gets next name.

I hope ill help you with that problem.
Cya
I wanna to explain to you, how i did change DHCP host name via provisioning.
You need next services:
1. DNS Server
2. Web Server
Sorry for my english grammar.. Im not english man.
So, at this week i read theese posts:
1. https://www.3cx.com/community/threads/setting-phone-hostname-during-provisioning.75091/
2. https://www.3cx.com/community/threads/dhcp-hostname.81450/
In my office i have a little server with config files wich contains next files:
1. Boot file y000000000000.boot with "include:config <http://sip.vekprom.team/hostname.cfg>"
2. At my web server i did wrote next php script.
<?php
header("Content-type: text");
//header('Content-Disposition: attachment; filename="hostname.cfg"');
//header("Connection: close");
header("Expires: -1");
$hostaddr = $_SERVER['REMOTE_ADDR'];
$hostname = gethostbyaddr("$hostaddr");
print "#!version:1.0.0.1 \n";
print "static.network.dhcp_host_name = $hostname";
?>
So, ill explain you:
Then ip phone starts provisoning, he is booting files which are spelled out in y000000000000.boot.
Ip phone execute php script which returns A record from DNS server.
So, if you have A record "ho101sip024" on your DNS server and you IP phone can send requests to him.
After restart your ip phone will gets next name.
I hope ill help you with that problem.
Cya