Take mail.yahoo.com for example, yahoo.com is the domain, mail.yahoo.com in this case, is the sub domain.
Qaado mail.yahoo.com tusaale - yahoo.com waa domainka, mail.yahoo.com kiiskan, waa domainka hoose.