The only trick here is when adding an A Record or CNAME do not enter the details as sub.domain.com pointing to IP. Rather sub pointing to IP without the domain name.