write unresolved host to a file