subdomain in different server?

I have two server with virtualmin. I have example.com in server A. now I want to serve sub.example.com in server B. I know I should point IP to that server but do not know how configure just a subdomain in server B?