URL can be anything randomly but domain name is a specific name. But URL is a part of the domain name.