WEBVTT

00:00:00.260 --> 00:00:01.950
DNS and Networking Basics.

00:00:02.180 --> 00:00:04.190
All right, before starting this course,

00:00:04.290 --> 00:00:06.290
you should have a basic knowledge of networking,

00:00:06.300 --> 00:00:09.410
and some familiarity with Linux will go a long way as well.

00:00:09.930 --> 00:00:13.750
Let's talk about DNS, DNS stands for Domain Name System.

00:00:14.000 --> 00:00:16.379
It's sort of like the phone book of the internet.

00:00:17.000 --> 00:00:19.730
Some of us remember those large books full of names and

00:00:19.730 --> 00:00:21.820
associated phone numbers we kept in our home.

00:00:21.820 --> 00:00:24.090
You'd look up a person or a business,

00:00:24.100 --> 00:00:26.910
and it would tell you what the phone number you'd have to dial was.

00:00:27.490 --> 00:00:28.790
This is a local record.

00:00:29.070 --> 00:00:31.570
If we didn't have one, we could call up information,

00:00:31.570 --> 00:00:35.050
or 411 for example, and ask for a name, city,

00:00:35.060 --> 00:00:37.420
and information would give us that phone number.

00:00:37.880 --> 00:00:39.350
This is like an authoritative record.

00:00:39.350 --> 00:00:43.300
When we want to go to a website, it operates in a similar way.

00:00:43.620 --> 00:00:46.620
We open up our browser of choice and type in a URL

00:00:46.620 --> 00:00:47.950
in the address bar and hit Enter.

00:00:48.630 --> 00:00:51.120
Computers talk to each other by IP addresses.

00:00:51.120 --> 00:00:53.590
Because most of us are humans or cyborgs,

00:00:53.590 --> 00:00:57.820
it's easier to remember words than IPv4 addresses or the

00:00:57.820 --> 00:01:00.360
much more difficult IPv6 addresses.

00:01:01.210 --> 00:01:06.660
DNS will take a website or domain like pluralsight.com and ask a DNS server,

00:01:06.660 --> 00:01:09.730
hey, what is the IP address for pluralsight.com,

00:01:10.400 --> 00:01:12.220
to which it will reply with an IP address.

00:01:12.220 --> 00:01:14.390
This would get sent back,

00:01:14.400 --> 00:01:16.930
and the browser would then know how it can call that web

00:01:16.930 --> 00:01:18.650
page and send it back to your browser.

00:01:19.020 --> 00:01:20.200
That's the basic gist of it.

00:01:21.030 --> 00:01:22.590
So where does Pi‑hole come in?

00:01:22.820 --> 00:01:23.690
We'll go deeper into that,

00:01:23.690 --> 00:01:26.850
but what if you don't want anyone calling a certain number?

00:01:27.210 --> 00:01:30.360
Pi‑hole would be the equivalent of going to your phone book and blanking

00:01:30.360 --> 00:01:32.650
out that number so you wouldn't be able to look it up.

00:01:32.650 --> 00:01:34.760
If that seems too simple, don't worry.

00:01:34.770 --> 00:01:36.120
We'll see it in action shortly.

00:01:39.310 --> 00:01:41.110
Like I mentioned in the previous section,

00:01:41.180 --> 00:01:44.090
Pi‑hole was built to run on a Raspberry Pi microcomputer.

00:01:44.490 --> 00:01:47.150
This is a small, relatively inexpensive computer.

00:01:47.470 --> 00:01:49.900
If you'd like to learn more about the basics of Raspberry Pi,

00:01:50.020 --> 00:01:52.880
I'd recommend you check out Jon Flanders Pluralsight course,

00:01:52.980 --> 00:01:54.360
Raspberry Pi for Developers.

00:01:54.370 --> 00:01:58.640
He covers the basics of Raspberry Pi, use cases, programming, and more.

00:01:58.740 --> 00:01:59.840
I'll link his course here.

00:01:59.840 --> 00:02:03.480
There are a couple different types of Raspberry Pis available.

00:02:03.830 --> 00:02:08.030
The Raspberry Pi 4 is a standard size, about the size of a deck of playing cards.

00:02:08.449 --> 00:02:10.949
Then there are smaller models, like the Raspberry Pi 0.

00:02:10.949 --> 00:02:14.050
You can set up the Pi‑hole on most Raspberry Pis,

00:02:14.050 --> 00:02:16.570
but I recommend doing it with one that has an Ethernet

00:02:16.570 --> 00:02:18.370
connection on the microcomputer.

00:02:18.870 --> 00:02:21.740
The main reason for this is because it will be functioning as

00:02:21.740 --> 00:02:25.510
a network device and handling all of your DNS queries for all

00:02:25.510 --> 00:02:26.610
of the devices on your network.

00:02:26.610 --> 00:02:31.850
You can do this over Wi‑Fi, but realize that this can cause latency issues,

00:02:31.860 --> 00:02:34.870
and having a wired connection will keep things more stable

00:02:34.880 --> 00:02:36.750
and going the fastest possible speeds.

00:02:36.750 --> 00:02:39.380
I like the Raspberry Pi 4 with the Ethernet jack,

00:02:39.390 --> 00:02:41.450
power supply, heat sink, and case.

00:02:41.450 --> 00:02:45.590
We shouldn't be cranking too much through these, but better plan ahead.

00:02:46.020 --> 00:02:48.520
I'd also recommend getting a microSD card with at

00:02:48.520 --> 00:02:52.900
least 8 GB of storage for the OS, as well as all of the logs you'll be gathering.

00:02:52.900 --> 00:02:57.400
If you have one or can get a Raspberry Pi, please do and follow along.

00:02:58.470 --> 00:03:01.970
There is a Docker image available as well, if you'd prefer to go that route.

00:03:01.970 --> 00:03:05.610
We'll have a video clip on that specifically a little bit later.

00:03:06.020 --> 00:03:09.610
All right, before we launch into installing and configuring our Pi‑holes,

00:03:09.620 --> 00:03:11.670
there are a couple of gotchas I've got to bring up.

00:03:11.670 --> 00:03:14.570
One component that is necessary is your network router.

00:03:14.810 --> 00:03:18.470
We'll be setting up this router to talk to your Pi‑hole to act

00:03:18.470 --> 00:03:20.550
as the main DNS server for your network.

00:03:20.970 --> 00:03:24.260
Some entry‑level routers or routers you rent from your internet service

00:03:24.260 --> 00:03:27.540
provider have the DNS server IP addresses hard coded,

00:03:27.550 --> 00:03:29.150
and you can't change them on your end.

00:03:29.310 --> 00:03:31.660
I'll show you an example of where you can check this.

00:03:31.660 --> 00:03:33.470
This will be different on different routers,

00:03:33.470 --> 00:03:36.910
so you may have to check the documentation specific to your router.

00:03:37.420 --> 00:03:39.910
If you do have one of those routers you can't change

00:03:39.920 --> 00:03:41.700
and already have a Raspberry Pi,

00:03:41.910 --> 00:03:44.740
I suggest you check out some of our other Pluralsight

00:03:44.740 --> 00:03:48.570
courses on Raspberry Pi projects or install RetroPie and

00:03:48.570 --> 00:03:50.430
have your own retro video game console.

00:03:51.730 --> 00:03:56.350
So, now you know about what Pi‑hole is and a little about Raspberry Pis.

00:03:56.710 --> 00:03:59.930
We talked about some basic DNS networking and what

00:03:59.930 --> 00:04:01.420
you'll need to do to get started.

00:04:01.870 --> 00:04:05.280
All right, let's get started installing Pi‑hole in our next module.
