fix hostname and hosts