I’m running SmartOS at home, and I have a Raspberry PI running dnsmasq as my 
DHCP and DNS server. My DHCP-configured computers will give their hostname back 
to dnsmasq so that I can look up the computer by name instead of IP address. I 
can’t seem to make that work for an Ubuntu LX zone that I create in SmartOS. 
For example, here’s the JSON for a Ubuntu 14.04 LTS zone that I created:
{
   "brand": "lx",
   "kernel_version": "3.13.0",
   "dataset_uuid": "52be84d0-6b06-11e5-a4c0-9f0c52fa368a",
   "resolvers": ["192.168.1.2","8.8.8.8", "8.8.4.4"],
   "max_physical_memory": 4096,
   "autoboot": true,
   "alias": "owncloud",
   "hostname": "owncloud",
   "zonename": "owncloud",
   "nics": [
   {
      "nic_tag": "admin",
      "ip": "dhcp",
      "primary": true
   }
   ]
}
The DHCP IP address assigned is 192.168.1.160. If I do a “dig -x 
192.168.1.160”, I won’t get the hostname that I’ve given to this zone. In fact, 
I won’t get anything in the form of a name. The LX zone, though, knows its 
hostname, and I’ve verified that it is correct.

Is there a way to get the hostname registered with dnsmasq for a LX zone? It 
happens automatically for Linux systems that are running Ubuntu, but not for LX 
Ubuntu images.

Thanks,
John






-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to