Add support for cname and SNI