{"id":8847,"date":"2020-06-17T13:33:32","date_gmt":"2020-06-17T10:33:32","guid":{"rendered":"https:\/\/unihost.com\/help\/?p=8847"},"modified":"2025-05-21T16:45:55","modified_gmt":"2025-05-21T13:45:55","slug":"how-to-install-pi-hole","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/","title":{"rendered":"How to install Pi-Hole"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-8921\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/pi-hole_no_bg.png\" alt=\"How to install Pi-Hole - Image 1\" width=\"300\" height=\"300\" \/ title=\"How to install Pi-Hole - Image 1\"><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Pi-hole is a caching DNS server with the ability to block ads and other unwanted resources.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><!--more-->Initially, the Pi-hole project was developed for Raspberry Pi single-board computers, but over time it became available for most Linux distributions.<\/span><\/p>\n<table style=\"height: 388px;\" width=\"578\" cellspacing=\"0\" cellpadding=\"4\">\n<colgroup>\n<col width=\"85*\" \/>\n<col width=\"85*\" \/>\n<col width=\"85*\" \/> <\/colgroup>\n<tbody>\n<tr valign=\"top\">\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>Distribution <\/strong><\/span><\/td>\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>Release<\/strong><\/span><\/td>\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>Architecture<\/strong><\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Raspbian<\/span><\/td>\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Stretch \/ Buster<\/span><\/td>\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">ARM<\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Ubuntu<\/span><\/td>\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">16.x \/ 18.x<\/span><\/td>\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">ARM \/ x86_64<\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Debian<\/span><\/td>\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">9 \/ 10<\/span><\/td>\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">ARM \/ x86_64 \/ i386<\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Fedora<\/span><\/td>\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">31 \/ 32<\/span><\/td>\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">ARM \/ x86_64<\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">CentOS<\/span><\/td>\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">7 \/ 8<\/span><\/td>\n<td width=\"33%\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">x86_64<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">In this guide, we will consider installing on OSs like Centos 7.7, Ubuntu 18.04, and installing on VPS + OpenVPN.<\/span><\/p>\n<h2 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Install Pi-hole on Centos 7.7<\/span><\/h2>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">First, you need to check the status of SELinux and disable it if necessary:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">sestatus<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8854 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_040620_UKGFsr9p.png\" alt=\"How to install Pi-Hole - Image 2\" width=\"396\" height=\"173\" \/ title=\"How to install Pi-Hole - Image 2\"><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">open SELinux configuration file with any editor<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">mcedit \/etc\/selinux\/config<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">and change the SELINUX value to disabled<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8856 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_040620_oKwh1qCV.png\" alt=\"How to install Pi-Hole - Image 3\" width=\"613\" height=\"172\" \/ title=\"How to install Pi-Hole - Image 3\"><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">then reboot the server. Further, the entire installation is reduced to one command:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">curl -sSL https:\/\/install.pi-hole.net | bash<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Then the installation script will be launched and following the prompts complete the installation.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8861 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_040620_lnSNhcYz.png\" alt=\"How to install Pi-Hole - Image 4\" width=\"1557\" height=\"772\" \/ title=\"How to install Pi-Hole - Image 4\"><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Now we are ready to move on to our newly installed Pi-Hole control panel. You can access it in your browser by typing \u201chttp:\/\/xxx.xxx.xxx.xxx\/admin\u201d or \u201chttp:\/\/pi.hole\/admin\u201d. Change the IP address (xxx.xxx.xxx.xxx) according to your settings.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8865 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_160620_tIkQOLok.png\" alt=\"How to install Pi-Hole - Image 5\" width=\"1248\" height=\"946\" \/ title=\"How to install Pi-Hole - Image 5\"><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8863 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_160620_cCNcbMg5.png\" alt=\"How to install Pi-Hole - Image 6\" width=\"1247\" height=\"944\" \/ title=\"How to install Pi-Hole - Image 6\"><\/span><\/p>\n<h2 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Install Pi-hole on Ubuntu 18.04<\/span><\/h2>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Installation on Ubuntu 18.04 comes down to one command:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">curl -sSL https:\/\/install.pi-hole.net | bash<\/span><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8871 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_160620_L6yr-SqC.png\" alt=\"How to install Pi-Hole - Image 7\" width=\"966\" height=\"494\" \/ title=\"How to install Pi-Hole - Image 7\"><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">After the installation is complete, you will receive a message with a password to access the web interface and a hint with the necessary command to change it.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8873 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_160620_rTImx315.png\" alt=\"How to install Pi-Hole - Image 8\" width=\"966\" height=\"302\" \/ title=\"How to install Pi-Hole - Image 8\"><\/p>\n<h2 style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Install Pi-hole on VPS + OpenVPN<\/span><\/h2>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">This guide is intended to configure OpenVPN on a virtual server hosted in the cloud (for example,<em> <a href=\"https:\/\/unihost.com\/vps\/\" target=\"_blank\" rel=\"noopener noreferrer\">Cloudvps<\/a><\/em>). This installation and configuration provide maximum protection for your traffic and filtering DNS queries when using public networks.<\/span><\/p>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">First, download the OpenVPN installer and make it executable, and then run it:<\/span><\/p>\n<pre><span style=\"color: #000000;\"><span style=\"font-family: Ubuntu;\"><span style=\"font-size: medium;\">wget https:\/\/git.io\/vpn -O openvpn-install.sh\nchmod 755 openvpn-install.sh\n.\/openvpn-install.sh\n<\/span><\/span><\/span><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8882 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_160620_Wvgs5a4D.png\" alt=\"How to install Pi-Hole - Image 9\" width=\"967\" height=\"840\" \/ title=\"How to install Pi-Hole - Image 9\"><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8878 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_160620_E5Vtx1Q7.png\" alt=\"How to install Pi-Hole - Image 10\" width=\"836\" height=\"104\" \/ title=\"How to install Pi-Hole - Image 10\"><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8880 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_160620_iPQNZzhl.png\" alt=\"How to install Pi-Hole - Image 11\" width=\"1016\" height=\"413\" \/ title=\"How to install Pi-Hole - Image 11\"><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Then install Pi-Hole and select tun0 as the interface and 10.8.0.1\/24 as the IP address. You can accept the rest of the default values \u200b\u200bor customize the Pi-hole to your liking. Choosing an interface is the most important step. If you do not select tun0 (at least to begin with), it will not work properly.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8885 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_160620_6KYd3wfj.png\" alt=\"How to install Pi-Hole - Image 12\" width=\"667\" height=\"398\" \/ title=\"How to install Pi-Hole - Image 12\"><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8889 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_160620_YOQ89RsD.png\" alt=\"How to install Pi-Hole - Image 13\" width=\"663\" height=\"403\" \/ title=\"How to install Pi-Hole - Image 13\"><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8891 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_160620_zedcRmVi.png\" alt=\"How to install Pi-Hole - Image 14\" width=\"670\" height=\"409\" \/ title=\"How to install Pi-Hole - Image 14\"><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8887 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_160620_B_auKXy8.png\" alt=\"How to install Pi-Hole - Image 15\" width=\"661\" height=\"398\" \/ title=\"How to install Pi-Hole - Image 15\"><\/p>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Edit the OpenVPN configuration file using your favorite editor:<\/span><\/p>\n<pre><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">mcedit \/etc\/openvpn\/server\/server.conf<\/span><\/pre>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Change this <strong>push &#8220;dhcp-option DNS&#8221;<\/strong> line to use the IP address of your Pi-hole<\/span><\/p>\n<pre><span style=\"color: #000000;\"><span style=\"font-family: Ubuntu;\"><span style=\"font-size: medium;\">push \"dhcp-option DNS 10.8.0.1\" \n<\/span><\/span><\/span><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8896 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_160620_cvh7em0E.png\" alt=\"How to install Pi-Hole - Image 16\" width=\"790\" height=\"493\" \/ title=\"How to install Pi-Hole - Image 16\"><\/p>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Create a client configuration file (.ovpn).<\/span><br \/>\n<span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Now that the server is configured, you need to create a settings file so that you can use Pi-Hole. You generate the .ovpn settings file by running the installer and selecting <strong>1) Add a new client<\/strong> for each client that will connect to the VPN. You can repeat this process for any number of customers. In this example, we \u201cadd a new user\u201d by giving the .ovpn file the name <strong>test<\/strong>, but you can use your own naming strategy.<\/span><\/p>\n<pre><span style=\"color: #000000; font-size: 12pt; font-family: Ubuntu, sans-serif;\">.\/openvpn-install.sh<\/span><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8901 aligncenter\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_160620_gm_PLWzF.png\" alt=\"How to install Pi-Hole - Image 17\" width=\"938\" height=\"582\" \/ title=\"How to install Pi-Hole - Image 17\"><\/p>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Then export the finished settings file and use it to connect.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8903\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/AGa_160620_tVsGx4Vh.png\" alt=\"How to install Pi-Hole - Image 18\" width=\"624\" height=\"871\" \/ title=\"How to install Pi-Hole - Image 18\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pi-hole is a caching DNS server with the ability to block ads and other unwanted resources.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[158],"tags":[616],"class_list":["post-8847","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers","tag-pi-hole"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install Pi-Hole - Unihost.FAQ<\/title>\n<meta name=\"description\" content=\"Pi-hole is a caching DNS server with the ability to block ads and other unwanted resources. How to install 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:\/\/unihost.com\/help\/how-to-install-pi-hole\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install Pi-Hole - Unihost.FAQ\" \/>\n<meta property=\"og:description\" content=\"Pi-hole is a caching DNS server with the ability to block ads and other unwanted resources. How to install Pi-Hole\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-17T10:33:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-21T13:45:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/help\/wp-content\/uploads\/pi-hole_no_bg-300x300.png\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"How to install Pi-Hole\",\"datePublished\":\"2020-06-17T10:33:32+00:00\",\"dateModified\":\"2025-05-21T13:45:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/\"},\"wordCount\":450,\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unihost.com\/help\/wp-content\/uploads\/pi-hole_no_bg-300x300.png\",\"keywords\":[\"pi-hole\"],\"articleSection\":[\"02. Dedicated servers\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/\",\"url\":\"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/\",\"name\":\"How to install Pi-Hole - Unihost.FAQ\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unihost.com\/help\/wp-content\/uploads\/pi-hole_no_bg-300x300.png\",\"datePublished\":\"2020-06-17T10:33:32+00:00\",\"dateModified\":\"2025-05-21T13:45:55+00:00\",\"description\":\"Pi-hole is a caching DNS server with the ability to block ads and other unwanted resources. How to install Pi-Hole\",\"breadcrumb\":{\"@id\":\"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/#primaryimage\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?pi-hole_no_bg.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?pi-hole_no_bg.png\",\"width\":512,\"height\":512},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\/\/unihost.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\/\/unihost.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to install Pi-Hole\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unihost.com\/help\/#website\",\"url\":\"https:\/\/unihost.com\/help\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unihost.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/unihost.com\/help\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\/\/unihost.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/unihost\/\",\"https:\/\/x.com\/unihost\",\"https:\/\/www.instagram.com\/unihost\/?hl=en\",\"https:\/\/www.linkedin.com\/company\/unihost-com\",\"https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\/\/unihost.com\/\"],\"url\":\"https:\/\/unihost.com\/help\/author\/support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install Pi-Hole - Unihost.FAQ","description":"Pi-hole is a caching DNS server with the ability to block ads and other unwanted resources. How to install 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:\/\/unihost.com\/help\/how-to-install-pi-hole\/","og_locale":"en_US","og_type":"article","og_title":"How to install Pi-Hole - Unihost.FAQ","og_description":"Pi-hole is a caching DNS server with the ability to block ads and other unwanted resources. How to install Pi-Hole","og_url":"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2020-06-17T10:33:32+00:00","article_modified_time":"2025-05-21T13:45:55+00:00","og_image":[{"url":"https:\/\/unihost.com\/help\/wp-content\/uploads\/pi-hole_no_bg-300x300.png","type":"","width":"","height":""}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"How to install Pi-Hole","datePublished":"2020-06-17T10:33:32+00:00","dateModified":"2025-05-21T13:45:55+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/"},"wordCount":450,"publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"image":{"@id":"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/pi-hole_no_bg-300x300.png","keywords":["pi-hole"],"articleSection":["02. Dedicated servers"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/","url":"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/","name":"How to install Pi-Hole - Unihost.FAQ","isPartOf":{"@id":"https:\/\/unihost.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/#primaryimage"},"image":{"@id":"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/pi-hole_no_bg-300x300.png","datePublished":"2020-06-17T10:33:32+00:00","dateModified":"2025-05-21T13:45:55+00:00","description":"Pi-hole is a caching DNS server with the ability to block ads and other unwanted resources. How to install Pi-Hole","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/how-to-install-pi-hole\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/#primaryimage","url":"https:\/\/unihost.com\/help\/minio.php?pi-hole_no_bg.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?pi-hole_no_bg.png","width":512,"height":512},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/how-to-install-pi-hole\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/"},{"@type":"ListItem","position":3,"name":"How to install Pi-Hole"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/#website","url":"https:\/\/unihost.com\/help\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/8847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/comments?post=8847"}],"version-history":[{"count":32,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/8847\/revisions"}],"predecessor-version":[{"id":17048,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/8847\/revisions\/17048"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/media?parent=8847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/categories?post=8847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/tags?post=8847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}