Begin by installing the DHCP server package.

sudo pacman -S extra/dhcp dhcpcd

Next, set a custom hostname within the DHCP configuration file.

sudo vim /etc/dhcpcd.conf

Within this file, add or modify the host declaration to assign a specific hostname to a client:

hostname OPPO-A3s  ### This is set your device name OPPO-A3s in a network

Finally, restart the DHCP server to apply the changes.

sudo systemctl restart dhcpd.service
sudo systemctl restart dhcpcd.service