Self-hosting DNS server

What is DNS? What are the privacy implications of DNS? How can I change my DNS provider? What does DNS over TLS and DNS over HTTPS mean? What do the results of DNS Leak Test mean? How can we run our own DNS server?