use host and port when creating dns client