better domain and OS checking, remove old hosts