match keepalive setting and add dns resolver