Rewrite NEWHOST on Linux systems to use proper APIs to collect assigned IP addresses.