wifi only works on LAN but can’t access internet?

Issue:

after bringing up ath0 driver for wifi on acer notebook, it can only access wireless AP, but cannot access internet.

Guess that it is because hostname unknown issue.

Solution:

  1. create a file /etc/nodename
  2. add one line: [hostname] (in this case: acersolaris)

Tricks:

Unlike Linux, can’t just modify /etc/hosts file. /etc/nodename must be created and reboot, then file: hosts will read the hostname stated in file: nodename