purpose and types of DNS