John,

This behavior is related to how LX are configured for networking.  Native
illumos network utilities are used to bring up zone interface(s), including
acquisition of DHCP leases.  No advanced configuration is generated for
dhcpagent, so it operates with defaults which do not send the hostname when
requesting an address.  A ticket has been opened (I don't have it handy) to
address the inability to specify DHCP options for dhcpagent in LX zones.
This issue could probably be rolled into that ticket.

On 8 February 2016 at 23:12, John Croix <[email protected]> wrote:

> 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>
> <https://www.listbox.com/member/archive/rss/184463/26937779-40cf8a10> |
> Modify
> <https://www.listbox.com/member/?&;>
> Your Subscription <http://www.listbox.com>
>



-------------------------------------------
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