{"id":1085,"date":"2017-03-05T14:19:49","date_gmt":"2017-03-05T20:19:49","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=1085"},"modified":"2017-03-05T14:23:13","modified_gmt":"2017-03-05T20:23:13","slug":"unify-gateway-dhcp-domain-name-for-dns-settings","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/unify-gateway-dhcp-domain-name-for-dns-settings\/","title":{"rendered":"Unify gateway DHCP domain name for DNS settings"},"content":{"rendered":"

Quick notes on how I manually added a domain name to my Unify gateway DHCP server.<\/p>\n

\r\n$ cat 20170304-unify_GW_DHCP_set_domain\r\n \r\n$ ssh admin@192.168.1.1\r\nWelcome to EdgeOS\r\n\r\nBy logging in, accessing, or using the Ubiquiti product, you\r\nacknowledge that you have read and understood the Ubiquiti\r\nLicense Agreement (available in the Web UI at, by default,\r\nhttp:\/\/192.168.1.1) and agree to be bound by its terms.\r\n\r\nadmin@192.168.1.1's password: \r\nLinux myGW 3.10.20-UBNT #1 SMP Tue Nov 1 17:17:25 PDT 2016 mips64\r\nWelcome to EdgeOS\r\nadmin@myGW:~$ info\r\n\r\nModel:       UniFi-Gateway-3\r\nVersion:     4.3.33.4936086\r\nMAC Address: xx:xx:xx:xx:xx:xx\r\nIP Address:  x.x.x.x\r\nHostname:    myGW\r\nUptime:      5881438 seconds\r\n\r\nStatus:      Connected (http:\/\/mynetcontroller.mydomain.com:8080\/inform)\r\n\r\nadmin@myGW:~$ configure \r\n[edit]\r\n[edit]\r\nadmin@myGW# show service dhcp-server \r\n disabled false\r\n hostfile-update enable\r\n shared-network-name LAN_192.168.1.0-24 {\r\n     authoritative enable\r\n     description vlan1\r\n     subnet 192.168.1.0\/24 {\r\n         default-router 192.168.1.1\r\n         dns-server 192.168.1.1\r\n         lease 86400\r\n         start 192.168.1.6 {\r\n             stop 192.168.1.50\r\n         }\r\n     }\r\n }\r\n[edit]\r\nadmin@myGW# edit service dhcp-server shared-network-name LAN_192.168.1.0-24\r\n[edit service dhcp-server shared-network-name LAN_192.168.1.0-24]\r\nadmin@myGW# edit subnet 192.168.1.0\/24\r\n[edit service dhcp-server shared-network-name LAN_192.168.1.0-24 subnet 192.168.1.0\/24]\r\nadmin@myGW# set domain-name localdomain\r\n[edit service dhcp-server shared-network-name LAN_192.168.1.0-24 subnet 192.168.1.0\/24]\r\nadmin@myGW# top\r\n[edit]\r\nadmin@myGW# commit\r\n[ service dhcp-server ]\r\nStopping DHCP server daemon...\r\nStarting DHCP server daemon...\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

Quick notes on how I manually added a domain name to my Unify gateway DHCP server. $ cat 20170304-unify_GW_DHCP_set_domain $<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[81,80],"class_list":["post-1085","post","type-post","status-publish","format-standard","hentry","category-dns","tag-dhcp","tag-unify"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=1085"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1085\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=1085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=1085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=1085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}