Difference between domain name and URL is easy to understand. For this we first need to know what a URL is and what is domain names.
A URL (Uniform Resource Locator, previously Universal Resource Locator) is the unique address for a file that is accessible on the Internet. A common way to get to a website is to enter the URL to its homepage file in our web browsers address line. However, any file within that Web site can also be specified with a URL. Such a file might be any Web (HTML) page other than the home page, an image file, or a program such as a common gateway interface application or Java applet.
On the Web (which uses the Hypertext Transfer Protocol, or HTTP), an example of a URL is: www.google.com
A domain name is an identification label that defines a realm of administrative autonomy, authority, or control in the Internet. Domain names are hostnames that identify Internet Protocol (IP) resources such as websites. Domain names are formed by the rules and procedures of the Domain Name System (DNS).Every domain name has a suffix that indicates which top level domain (TLD) it belongs to. There are only a limited number of such domains. For example: .gov is the extension used for Government agencies, .edu for Educational institution and .org is used for Organizations.
The major differences between a domain name and a URL are relatively simple to express. Essentially the domain name is the overall name of the website while the URL is the extended path. To break this down so that it is a little more understandable to more people. Consider this. One wants a website, so he/she goes out and purchase a website name from a registrar, this would be the domain name for the required company or organization. If one however decides that he/she want a website and one get it from say XYZ, and your website is a part of XYZ, the link one have is the URL.
Therefore, a domain name is used in a URL. When one uses the web or sent an e-mail message or wants to open a webpage, a domain name is used. For example,
The URL http://www.abc.com.my — contains the domain name abc.com.my
The e-mail address email@example.com — contains the domain name abc.com.my
Hence, the difference between the domain name and URL is just the actual name for the website and its extension.