Revert "adding dns resolv"

This reverts commit 9e141b75449864ac72c335f52cad5cc972f2465c.
fixing core dump when -c option was enabled