add gethostname example.