joyent/smartos-live — Issue #30: hostname resolve does not work in the global zone (release from 2011-12-13)
Author: MerlinDMC
Created: 2011-12-20 07:30:52+00:00
State: open

```
- SmartOS Live Image v0.147+ build: 20111213T065935Z
[root@00-0c-29-0d-7b-cb ~]# ping google.com
ping: unknown host google.com
[root@00-0c-29-0d-7b-cb ~]# host google.com
google.com has address 74.125.230.242
google.com has address 74.125.230.241
google.com has address 74.125.230.240
google.com has address 74.125.230.244
google.com has address 74.125.230.243
google.com mail is handled by 20 alt1.aspmx.l.google.com.
google.com mail is handled by 30 alt2.aspmx.l.google.com.
google.com mail is handled by 40 alt3.aspmx.l.google.com.
google.com mail is handled by 50 alt4.aspmx.l.google.com.
google.com mail is handled by 10 aspmx.l.google.com.
[root@00-0c-29-0d-7b-cb ~]#
```

If I add the hostnames to /etc/hosts it works.

```
[root@00-0c-29-0d-7b-cb ~]# echo 74.125.230.242 google.com>>/etc/hosts
[root@00-0c-29-0d-7b-cb ~]# ping google.com
google.com is alive
[root@00-0c-29-0d-7b-cb ~]#
```
It's hard to download some isos for tests if you have to enter each host to /etc/hosts ;)