{"id":27195,"date":"2020-02-09T12:00:00","date_gmt":"2020-02-09T12:00:00","guid":{"rendered":"https:\/\/home.apeconsulting.co.uk\/adrian\/?p=27195"},"modified":"2020-02-07T13:14:35","modified_gmt":"2020-02-07T13:14:35","slug":"pi-hole","status":"publish","type":"post","link":"https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/","title":{"rendered":"Pi-hole"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2020\/01\/1200px-Pi-hole_vector_logo.svg_-695x1024.png\" alt=\"Pi-hole logo\" class=\"wp-image-27196\" width=\"174\" height=\"256\"\/><\/figure>\n\n\n\n<p>I got a Raspberry Pi 4 for Christmas, although never really had in mind running Pi-hole.  I&#8217;ve also been playing around with various browsers, which is what actually got me thinking about using Pi-hole.  And finally, after a couple of Youtube videos I decided to give Pi-hole a spin for myself, but not on my Raspberry Pi 4, but in a Ubuntu VM on my FreeNAS server!<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>What is this <a href=\"https:\/\/pi-hole.net\/\">Pi-hole<\/a> I hear you ask?  Well, it&#8217;s a new term for me too, but it&#8217;s described as a &#8216;DNS sinkhole&#8217;  which is basically a fancy caching and forwarding DNS (with some additional functionality on top) to block and redirect specific requests against a maintained set of advertising blocking lists, or your own white\/black-lists.<\/p>\n\n\n\n<p>It&#8217;s also pretty straight forward to configure it as a  recursive DNS server which will actually cache and resolve DNS queries itself, rather than going out to the internet to resolve known hosts.  It can also be configured to work as a DHCP server, something that would have been useful when I was having problems I blogged about here, but not something I&#8217;ve actually configured it for at a minute.<\/p>\n\n\n\n<p>The installation itself was pretty straight forward, although it took me a little while to get the new VM up and running with ubuntu 18.4.  I&#8217;m struggling to remember why now (I actually set this up at the end of last week) but I couldn&#8217;t partition\/format the virtual disk, which eventually  I managed to do.<\/p>\n\n\n\n<p>Once that was done, it was simply a case of configuring the networking using netplan (it needs a static IP address) and configuring root SSH access to make access easier (I still struggle to get a | using the VNC connection).  Installing Pi-hole is a single command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -sSL https:\/\/install.pi-hole.net | bash<\/pre>\n\n\n\n<p>Once complete, you&#8217;ll get the password for the admin console, which can be reached at http:\/\/IP\/admin, and looks something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"671\" src=\"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2020\/01\/pi-hole-screenshot-1024x671.png\" alt=\"pi-hole dashboard\" class=\"wp-image-27200\" srcset=\"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2020\/01\/pi-hole-screenshot-980x642.png 980w, https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2020\/01\/pi-hole-screenshot-480x315.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1024px, 100vw\" \/><\/figure>\n\n\n\n<p>As this has been running for a few days, it&#8217;s showing some of the basic data, but there&#8217;s much more once you&#8217;ve logged in.  As a test, I&#8217;ve only pointed 5 of my devices at the PI-hole DNS server, but it&#8217;s working really well so will be configuring things on the router so all traffic is through Pi-hole.<\/p>\n\n\n\n<p>I&#8217;d also added the <a href=\"https:\/\/docs.pi-hole.net\/guides\/unbound\/\">steps<\/a> to make it a recursive DNS server using unbound.  I have a jail configured for unbound which I probably could have used, but it made sense to keep everything together in what&#8217;s a pretty lightweight VM.  I&#8217;ll kill the unbound jail once I&#8217;ve got everything set up on the router.  <\/p>\n\n\n\n<p>No plans to use it for DHCP at the minute, but it&#8217;s nice to know that&#8217;s an option depending on what I do with my network later this year. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got a Raspberry Pi 4 for Christmas, although never really had in mind running Pi-hole. I&#8217;ve also been playing around with various browsers, which is what actually got me thinking about using Pi-hole. And finally, after a couple of Youtube videos I decided to give Pi-hole a spin for myself, but not on my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2,9,10],"tags":[21],"class_list":["post-27195","post","type-post","status-publish","format-standard","hentry","category-it","category-server","category-software","tag-spellchecked"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pi-hole - Adrian&#039;s Blog<\/title>\n<meta name=\"description\" content=\"I got a Raspberry Pi 4 for Christmas. I&#039;ve also been playing around with various browsers, which is what actually got me thinking about Pi-hole.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pi-hole - Adrian&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"I got a Raspberry Pi 4 for Christmas. I&#039;ve also been playing around with various browsers, which is what actually got me thinking about Pi-hole.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/\" \/>\n<meta property=\"og:site_name\" content=\"Adrian&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-09T12:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2020\/01\/1200px-Pi-hole_vector_logo.svg_-695x1024.png\" \/>\n<meta name=\"author\" content=\"Adrian\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Adrian\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/pi-hole\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/pi-hole\\\/\"},\"author\":{\"name\":\"Adrian\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"headline\":\"Pi-hole\",\"datePublished\":\"2020-02-09T12:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/pi-hole\\\/\"},\"wordCount\":477,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"image\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/pi-hole\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/01\\\/1200px-Pi-hole_vector_logo.svg_-695x1024.png\",\"keywords\":[\"Checked\"],\"articleSection\":[\"IT\",\"Server\",\"Software\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/pi-hole\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/pi-hole\\\/\",\"url\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/pi-hole\\\/\",\"name\":\"Pi-hole - Adrian&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/pi-hole\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/pi-hole\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/01\\\/1200px-Pi-hole_vector_logo.svg_-695x1024.png\",\"datePublished\":\"2020-02-09T12:00:00+00:00\",\"description\":\"I got a Raspberry Pi 4 for Christmas. I've also been playing around with various browsers, which is what actually got me thinking about Pi-hole.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/pi-hole\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/pi-hole\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/pi-hole\\\/#primaryimage\",\"url\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/01\\\/1200px-Pi-hole_vector_logo.svg_.png\",\"contentUrl\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/01\\\/1200px-Pi-hole_vector_logo.svg_.png\",\"width\":1200,\"height\":1767},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/pi-hole\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pi-hole\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#website\",\"url\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/\",\"name\":\"Adrian&#039;s Blog\",\"description\":\"Ramblings of an IT Geek\",\"publisher\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\",\"name\":\"Adrian\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\",\"caption\":\"Adrian\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pi-hole - Adrian&#039;s Blog","description":"I got a Raspberry Pi 4 for Christmas. I've also been playing around with various browsers, which is what actually got me thinking about Pi-hole.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/","og_locale":"en_GB","og_type":"article","og_title":"Pi-hole - Adrian&#039;s Blog","og_description":"I got a Raspberry Pi 4 for Christmas. I've also been playing around with various browsers, which is what actually got me thinking about Pi-hole.","og_url":"https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/","og_site_name":"Adrian&#039;s Blog","article_published_time":"2020-02-09T12:00:00+00:00","og_image":[{"url":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2020\/01\/1200px-Pi-hole_vector_logo.svg_-695x1024.png","type":"","width":"","height":""}],"author":"Adrian","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Adrian","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/#article","isPartOf":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/"},"author":{"name":"Adrian","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"headline":"Pi-hole","datePublished":"2020-02-09T12:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/"},"wordCount":477,"commentCount":3,"publisher":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"image":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/#primaryimage"},"thumbnailUrl":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2020\/01\/1200px-Pi-hole_vector_logo.svg_-695x1024.png","keywords":["Checked"],"articleSection":["IT","Server","Software"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/","url":"https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/","name":"Pi-hole - Adrian&#039;s Blog","isPartOf":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#website"},"primaryImageOfPage":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/#primaryimage"},"image":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/#primaryimage"},"thumbnailUrl":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2020\/01\/1200px-Pi-hole_vector_logo.svg_-695x1024.png","datePublished":"2020-02-09T12:00:00+00:00","description":"I got a Raspberry Pi 4 for Christmas. I've also been playing around with various browsers, which is what actually got me thinking about Pi-hole.","breadcrumb":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/#primaryimage","url":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2020\/01\/1200px-Pi-hole_vector_logo.svg_.png","contentUrl":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2020\/01\/1200px-Pi-hole_vector_logo.svg_.png","width":1200,"height":1767},{"@type":"BreadcrumbList","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/pi-hole\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/home.apeconsulting.co.uk\/adrian\/"},{"@type":"ListItem","position":2,"name":"Pi-hole"}]},{"@type":"WebSite","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#website","url":"https:\/\/home.apeconsulting.co.uk\/adrian\/","name":"Adrian&#039;s Blog","description":"Ramblings of an IT Geek","publisher":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/home.apeconsulting.co.uk\/adrian\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a","name":"Adrian","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g","caption":"Adrian"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g"}}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p90DI4-74D","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts\/27195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/comments?post=27195"}],"version-history":[{"count":11,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts\/27195\/revisions"}],"predecessor-version":[{"id":27233,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts\/27195\/revisions\/27233"}],"wp:attachment":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/media?parent=27195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/categories?post=27195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/tags?post=27195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}