Quick notes on how I manually added a domain name to my Unify gateway DHCP server.
$ cat 20170304-unify_GW_DHCP_set_domain
$ ssh admin@192.168.1.1Welcome to EdgeOS
By logging in, accessing, or using the Ubiquiti product, youacknowledge that you have read and understood the UbiquitiLicense Agreement (available in the Web UI at, by default,http://192.168.1.1) and agree to be bound by its terms.
admin@192.168.1.1's password:Linux myGW 3.10.20-UBNT #1 SMP Tue Nov 1 17:17:25 PDT 2016 mips64Welcome to EdgeOSadmin@myGW:~$ info
Model: UniFi-Gateway-3Version: 4.3.33.4936086MAC Address: xx:xx:xx:xx:xx:xxIP Address: x.x.x.xHostname: myGWUptime: 5881438 seconds
Status: Connected (http://mynetcontroller.mydomain.com:8080/inform)
admin@myGW:~$ configure[edit][edit]admin@myGW# show service dhcp-server disabled false hostfile-update enable shared-network-name LAN_192.168.1.0-24 { authoritative enable description vlan1 subnet 192.168.1.0/24 { default-router 192.168.1.1 dns-server 192.168.1.1 lease 86400 start 192.168.1.6 { stop 192.168.1.50 } } }[edit]admin@myGW# edit service dhcp-server shared-network-name LAN_192.168.1.0-24[edit service dhcp-server shared-network-name LAN_192.168.1.0-24]admin@myGW# edit subnet 192.168.1.0/24[edit service dhcp-server shared-network-name LAN_192.168.1.0-24 subnet 192.168.1.0/24]admin@myGW# set domain-name localdomain[edit service dhcp-server shared-network-name LAN_192.168.1.0-24 subnet 192.168.1.0/24]admin@myGW# top[edit]admin@myGW# commit[ service dhcp-server ]Stopping DHCP server daemon...Starting DHCP server daemon...