added logging changes, and dns server variable