add API of custom_dns