Every registered domain has a minimum of 2 Name Server records which show where it's hosted i.e. by using these records you point your domain to the servers of a particular website hosting provider. This way, you have got both your website and your e-mails handled by the very same service provider. On the lower level of the Domain Name System (DNS), however, there are lots of other records, like A and MX. The former reveals which server deals with the site for a given domain address and is always an IP address (123.123.123.123), while the second one reveals which server handles the emails and is always an alphanumeric string (mx1.domain.com). For instance, when you enter a domain address in your web browser, your request is forwarded through the global DNS system to the provider whose NS records the domain uses and from there you will be sent to the servers of a different service provider if you have set an IP address of the latter as an A record for your Internet domain. Having independent records for the website and the e-mails suggests that you may have your site and your e-mails with 2 different providers if you'd like.
