# Purpose of DNS

DNS is used to *resolve* human-readable names (google.com) to IP addresses.

Machines such as PCs don't use names, they use addresses (ie. IPv4/IPv6).

Names are much easier for us to use and remember than IP addresses.

When you type 'youtube.com' into a web browser, your device will ask a DNS server for the IP address of youtube.com.

The DNS server(s) your device uses can be manually configured or learned via DHCP.

<figure><img src="https://1474932522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAgItg4KAZpnXjAFPWRf8%2Fuploads%2FbQTrSkpoyKHbZtgIphOH%2FScreenshot%20from%202023-08-01%2014-05-42.png?alt=media&#x26;token=a092b552-97cf-4c77-91f0-fafda37ae0d6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1474932522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAgItg4KAZpnXjAFPWRf8%2Fuploads%2F3wmN3L8ZZFU7xnmt4p6e%2FScreenshot%20from%202023-08-01%2014-06-10.png?alt=media&#x26;token=b1ff34f8-75d1-429b-bc7c-6b1e5f6cb7de" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1474932522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAgItg4KAZpnXjAFPWRf8%2Fuploads%2FsVEobzyJERbE5r7WyIWo%2FScreenshot%20from%202023-08-01%2014-06-53.png?alt=media&#x26;token=c2de72f4-5e6e-40ac-9600-866b0374bf47" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1474932522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAgItg4KAZpnXjAFPWRf8%2Fuploads%2FAseJUBmAX3AxWW8nFpRe%2FScreenshot%20from%202023-08-01%2014-08-30.png?alt=media&#x26;token=19a855f8-6b5c-4220-871f-971cb954a6df" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1474932522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAgItg4KAZpnXjAFPWRf8%2Fuploads%2FI8SSL2cP2xQNs4qd8XDO%2FScreenshot%20from%202023-08-01%2014-08-51.png?alt=media&#x26;token=4e3a3930-b2a8-4520-8ce1-e893393cf4aa" alt=""><figcaption></figcaption></figure>

* DNS 'A' record - Used to map names to IPv4 addresses.
* DNS 'AAAA' record - Used to map names to IPv6 addresses.

<figure><img src="https://1474932522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAgItg4KAZpnXjAFPWRf8%2Fuploads%2F2sYkFyL6wxAmkxNTEXRL%2FScreenshot%20from%202023-08-01%2014-10-30.png?alt=media&#x26;token=17a8ef75-09d5-4ef8-88b3-7bba855092bd" alt=""><figcaption></figcaption></figure>
