# Community How-to's

**URL:** https://discourse.pi-hole.net/c/faqs/how-tos/14.md?page=1

[Latest](https://discourse.pi-hole.net/latest.md) · [Categories](https://discourse.pi-hole.net/categories.md) · [Tags](https://discourse.pi-hole.net/tags.md)

**Page:** 2

---

## [Solve DNS Resolution in Other Containers when using Docker pihole](https://discourse.pi-hole.net/t/solve-dns-resolution-in-other-containers-when-using-docker-pihole/31413)

<div class="topic-metadata">

**Author:** [@3lder](https://discourse.pi-hole.net/u/3lder)\
**Replies:** 11\
**Last updated:** [June 25, 2024, 4:10pm UTC](https://discourse.pi-hole.net/t/solve-dns-resolution-in-other-containers-when-using-docker-pihole/31413 "2024-06-25T16:10:42Z")

</div>

Problem When using docker pihole container as the sole DNS on the network, other containers cannot resolve DNS. Symptoms Other containers unable to resolve DNS using nslookup in other containers gives erros stating som…

---

## [Whitelist for Spotify premium account](https://discourse.pi-hole.net/t/whitelist-for-spotify-premium-account/9467)

<div class="topic-metadata">

**Author:** [@korhant](https://discourse.pi-hole.net/u/korhant)\
**Replies:** 5\
**Last updated:** [March 2, 2019, 6:51pm UTC](https://discourse.pi-hole.net/t/whitelist-for-spotify-premium-account/9467 "2019-03-02T18:51:05Z")

</div>

Hi there, if you are using Spotify premium account, those are the domains to be whitelisted in order to Spotify function fully on Mac & iPhone apps (including software update): mobile-ap.spotify.com apresolve.spotify.c…

---

## [Another approach to allow google ads with Pihole](https://discourse.pi-hole.net/t/another-approach-to-allow-google-ads-with-pihole/59011)

<div class="topic-metadata">

**Author:** [@Michael\_Uhlenberg](https://discourse.pi-hole.net/u/Michael_Uhlenberg)\
**Replies:** 16\
**Last updated:** [May 30, 2024, 5:55pm UTC](https://discourse.pi-hole.net/t/another-approach-to-allow-google-ads-with-pihole/59011 "2024-05-30T17:55:53Z")

</div>

Everywhere we can see people complaining that they can no longer click on google ads when using Pi-hole. The answers are always the same: works as intended, look further down. When I looked at the blocked URLs, I saw th…

---

## [Host website alongside Pi-Hole interface](https://discourse.pi-hole.net/t/host-website-alongside-pi-hole-interface/31832)

<div class="topic-metadata">

**Author:** [@i6nfinity](https://discourse.pi-hole.net/u/i6nfinity)\
**Replies:** 19\
**Last updated:** [March 12, 2024, 1:36pm UTC](https://discourse.pi-hole.net/t/host-website-alongside-pi-hole-interface/31832 "2024-03-12T13:36:52Z")

</div>

How to: Host another website alongside the Pi-Hole admin interface on your Raspbian installation. 1.Create a new folder for your web server in the same folder, the files for the Pi-Hole interface are stored: mkdir /var…

---

## [PiHole (DHCP Server Running) Reverse Proxy for IP Addresses with Associated Ports](https://discourse.pi-hole.net/t/pihole-dhcp-server-running-reverse-proxy-for-ip-addresses-with-associated-ports/69689)

<div class="topic-metadata">

**Author:** [@visamp](https://discourse.pi-hole.net/u/visamp)\
**Replies:** 2\
**Last updated:** [April 25, 2024, 10:21pm UTC](https://discourse.pi-hole.net/t/pihole-dhcp-server-running-reverse-proxy-for-ip-addresses-with-associated-ports/69689 "2024-04-25T22:21:10Z")

</div>

I am running PiHole on a "le potato" and have been for quite a while. It is running DHCP. I would like to know if it's possible to map a local NextCloud instance I have setup that has a port number listed, ie 192.172.1.4…

---

## [Enabling HTTPS for your Pi-hole Web Interface](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771)

<div class="topic-metadata">

**Author:** [@WaLLy3K](https://discourse.pi-hole.net/u/WaLLy3K)\
**Replies:** 130\
**Last updated:** [April 11, 2024, 8:09am UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771 "2024-04-11T08:09:53Z")

</div>

How can I enable HTTPS (SSL/TLS) for my Pi-hole Web Interface? Many users run their Pi-hole on Virtual Private Servers and such, meaning that they would need to access the Web Interface via insecure HTTP. Now, you are ab…

---

## [Extra hosts and TLD](https://discourse.pi-hole.net/t/extra-hosts-and-tld/68090)

<div class="topic-metadata">

**Author:** [@FutureTense](https://discourse.pi-hole.net/u/FutureTense)\
**Replies:** 0\
**Last updated:** [February 3, 2024, 10:14pm UTC](https://discourse.pi-hole.net/t/extra-hosts-and-tld/68090 "2024-02-03T22:14:41Z")

</div>

I want to have a server in my network to be given something like a TLD. The best I’ve been able to do,e up with is using extra\_hosts like: extra\_hosts: - a:172.16.68.210 However if I do the following (both linux a…

---

## [SELinux Policy for Pi-hole](https://discourse.pi-hole.net/t/selinux-policy-for-pi-hole/65133)

<div class="topic-metadata">

**Author:** [@georou](https://discourse.pi-hole.net/u/georou)\
**Replies:** 0\
**Last updated:** [September 23, 2023, 12:17pm UTC](https://discourse.pi-hole.net/t/selinux-policy-for-pi-hole/65133 "2023-09-23T12:17:22Z")

</div>

Hi, I've worked on making a policy in my spare time for Pi-hole over the last few years, on and off again. This isn't a policy like that of other users that have attempted to create one by running through audit2allow to…

---

## [Force safe search using Pi-hole](https://discourse.pi-hole.net/t/force-safe-search-using-pi-hole/54813)

<div class="topic-metadata">

**Author:** [@jacob](https://discourse.pi-hole.net/u/jacob)\
**Replies:** 5\
**Last updated:** [August 20, 2023, 10:10pm UTC](https://discourse.pi-hole.net/t/force-safe-search-using-pi-hole/54813 "2023-08-20T22:10:12Z")

</div>

Moderator note: This post contains scripts, or links to scripts, that are untested by the Pi-hole team. We encourage users to be creative, but we are unable to support any potential problems caused by running these sc…

---

## [Teleporter (Backup/Restore) Behavior vs OS or Browser](https://discourse.pi-hole.net/t/teleporter-backup-restore-behavior-vs-os-or-browser/63475)

<div class="topic-metadata">

**Author:** [@jsnell](https://discourse.pi-hole.net/u/jsnell)\
**Replies:** 5\
**Last updated:** [June 28, 2023, 8:31pm UTC](https://discourse.pi-hole.net/t/teleporter-backup-restore-behavior-vs-os-or-browser/63475 "2023-06-28T20:31:37Z")

</div>

On a MAC running SAFARI Pi-Hole Teleporter saves a .tar file. On a WINDOWS 11 machine using EDGE, Teleporter saves a .tar.gz file. Teleporter RESTORE only looks for (enables) download of .tgz, .gz files. Solution: MAC…

---

## [Fix Velop mesh flooding Pi-hole with PTR requests](https://discourse.pi-hole.net/t/fix-velop-mesh-flooding-pi-hole-with-ptr-requests/61381)

<div class="topic-metadata">

**Author:** [@chrislph](https://discourse.pi-hole.net/u/chrislph)\
**Replies:** 12\
**Last updated:** [March 25, 2023, 4:24pm UTC](https://discourse.pi-hole.net/t/fix-velop-mesh-flooding-pi-hole-with-ptr-requests/61381 "2023-03-25T16:24:14Z")

</div>

Info Linksys Velop is a mesh wifi system made up of nodes that work together to provide network coverage, parental controls and so on. It has various modes of operation, but a common one for home users is where it is add…

---

## [Hostname resolution and IPv6](https://discourse.pi-hole.net/t/hostname-resolution-and-ipv6/61914)

<div class="topic-metadata">

**Author:** [@Maarten](https://discourse.pi-hole.net/u/Maarten)\
**Replies:** 1\
**Last updated:** [March 19, 2023, 7:56am UTC](https://discourse.pi-hole.net/t/hostname-resolution-and-ipv6/61914 "2023-03-19T07:56:26Z")

</div>

A while ago I decided to adopt IPv6 (next to IPv4) for my local network, which consist of a DSL modem (bridge), gateway/router annex Wi-Fi Access Point (running dd-wrt) and a dedicated Pi-hole (NanoPi NEO2). My pi-hole o…

---

## [Add new Block List from sources using RestAPI](https://discourse.pi-hole.net/t/add-new-block-list-from-sources-using-restapi/61416)

<div class="topic-metadata">

**Author:** [@stoksoz](https://discourse.pi-hole.net/u/stoksoz)\
**Replies:** 2\
**Last updated:** [February 25, 2023, 2:34am UTC](https://discourse.pi-hole.net/t/add-new-block-list-from-sources-using-restapi/61416 "2023-02-25T02:34:46Z")

</div>

Hi all, Is it possible to have schedule block list updater? Let's say we have a block list set up localy or on internet , how can I get this list's latest version to pi-hole? Thansk

---

## [Extension vs DNS-based Ad-block](https://discourse.pi-hole.net/t/extension-vs-dns-based-ad-block/58839)

<div class="topic-metadata">

**Author:** [@mksoi](https://discourse.pi-hole.net/u/mksoi)\
**Replies:** 13\
**Last updated:** [November 1, 2022, 5:51pm UTC](https://discourse.pi-hole.net/t/extension-vs-dns-based-ad-block/58839 "2022-11-01T17:51:35Z")

</div>

Hi everyone, I have seen several topics here about how to block Youtube Ads. People are suggesting few regex to do so. However, my question is, why is it too easy to block Youtube ads using browser-based ad-blocker exte…

---

## [How popular is Pi-hole?](https://discourse.pi-hole.net/t/how-popular-is-pi-hole/58838)

<div class="topic-metadata">

**Author:** [@mksoi](https://discourse.pi-hole.net/u/mksoi)\
**Replies:** 6\
**Last updated:** [October 29, 2022, 7:03am UTC](https://discourse.pi-hole.net/t/how-popular-is-pi-hole/58838 "2022-10-29T07:03:13Z")

</div>

Hi everyone, I am making some resaerch on ad-blocking popularity. While this type of information is easily available on web stores for extension-based ad-blockers, I can not find it for proxy-based or dns-based ad-block…

---

## [Blacklisting problematic TLDs](https://discourse.pi-hole.net/t/blacklisting-problematic-tlds/58265)

<div class="topic-metadata">

**Author:** [@chrislph](https://discourse.pi-hole.net/u/chrislph)\
**Replies:** 7\
**Last updated:** [October 11, 2022, 9:55pm UTC](https://discourse.pi-hole.net/t/blacklisting-problematic-tlds/58265 "2022-10-11T21:55:26Z")

</div>

I ended up on a fake netflix site on a .top domain so looked for any references for most malicious TLDs by volume and found a couple of useful references. Links, and resulting blacklist regex, below. Most abused TLDs – h…

---

## [Cloudflared now in all repositories](https://discourse.pi-hole.net/t/cloudflared-now-in-all-repositories/57031)

<div class="topic-metadata">

**Author:** [@starglider](https://discourse.pi-hole.net/u/starglider)\
**Replies:** 3\
**Last updated:** [August 16, 2022, 12:51am UTC](https://discourse.pi-hole.net/t/cloudflared-now-in-all-repositories/57031 "2022-08-16T00:51:49Z")

</div>

Based on this recent change, I think we should update the Cloudflared tutorial to steer users towards installing from the package managers: pkg.cloudflare.com changes · Issue #719 · cloudflare/cloudflared · GitHub Also,…

---

## [How to forward specific domain to specific upstream server](https://discourse.pi-hole.net/t/how-to-forward-specific-domain-to-specific-upstream-server/4051)

<div class="topic-metadata">

**Author:** [@Thomas\_Costigliola](https://discourse.pi-hole.net/u/Thomas_Costigliola)\
**Replies:** 3\
**Last updated:** [July 20, 2022, 5:11am UTC](https://discourse.pi-hole.net/t/how-to-forward-specific-domain-to-specific-upstream-server/4051 "2022-07-20T05:11:12Z")

</div>

How can I set up Pihole to forward specific domains to a particular upstream DNS server? For example, I want all .mydomain searches to go to a DNS server on the other side of a VPN tunnel, but all other searches to use t…

---

## [Increased YouTube ads](https://discourse.pi-hole.net/t/increased-youtube-ads/50458)

<div class="topic-metadata">

**Author:** [@MylesK](https://discourse.pi-hole.net/u/MylesK)\
**Replies:** 4\
**Last updated:** [May 8, 2022, 9:59pm UTC](https://discourse.pi-hole.net/t/increased-youtube-ads/50458 "2022-05-08T21:59:35Z")

</div>

Hello, I've setup piHole with a fairly default setup and set my phone DNS to point towards piHole. I've noticed while using piHole for DNS that when watching YouTube videos on my Android phone I get a lot more ads, usua…

---

## [Is there a way to avoid Russian root servers using unbound?](https://discourse.pi-hole.net/t/is-there-a-way-to-avoid-russian-root-servers-using-unbound/54033)

<div class="topic-metadata">

**Author:** [@bkbartje](https://discourse.pi-hole.net/u/bkbartje)\
**Replies:** 10\
**Last updated:** [March 4, 2022, 4:30pm UTC](https://discourse.pi-hole.net/t/is-there-a-way-to-avoid-russian-root-servers-using-unbound/54033 "2022-03-04T16:30:20Z")

</div>

Hello, I installed unbound according to the manual without any issues. But now I don't want to address any root server located in Russia(or Belarus). I checked the list of root servers and most of them are American. …

---

## [HowTo: Resize your Raspberry Pi SDCard](https://discourse.pi-hole.net/t/howto-resize-your-raspberry-pi-sdcard/39626)

<div class="topic-metadata">

**Author:** [@7e4bd47cb150e9685360](https://discourse.pi-hole.net/u/7e4bd47cb150e9685360)\
**Replies:** 12\
**Last updated:** [February 28, 2022, 1:47pm UTC](https://discourse.pi-hole.net/t/howto-resize-your-raspberry-pi-sdcard/39626 "2022-02-28T13:47:20Z")

</div>

A short and sweet guide to resizing your Raspberry Pi SDCard. When I first fired up Pihole it was a simple proof of concept which quickly took over as a critical component in my home (office) network. Since I was just t…

---

## [HTTPS: Enforce TLS1.3 / High Ciphers on Pi-Hole](https://discourse.pi-hole.net/t/https-enforce-tls1-3-high-ciphers-on-pi-hole/52925)

<div class="topic-metadata">

**Author:** [@KipiK](https://discourse.pi-hole.net/u/KipiK)\
**Replies:** 1\
**Last updated:** [February 3, 2022, 1:23am UTC](https://discourse.pi-hole.net/t/https-enforce-tls1-3-high-ciphers-on-pi-hole/52925 "2022-02-03T01:23:29Z")

</div>

With reference to : Enabling HTTPS for your Pi-hole Web Interface - FAQs / Community How-to's - Pi-hole Userspace It is possible to upgrade config and enforce the highest security possible when using https and certific…

---

## [How do I add list via cli](https://discourse.pi-hole.net/t/how-do-i-add-list-via-cli/43733)

<div class="topic-metadata">

**Author:** [@daneuchar](https://discourse.pi-hole.net/u/daneuchar)\
**Replies:** 3\
**Last updated:** [December 28, 2021, 8:47am UTC](https://discourse.pi-hole.net/t/how-do-i-add-list-via-cli/43733 "2021-12-28T08:47:47Z")

</div>

I want to create a cron job which would update list from wally3k periodically. but looking at the documentation i couldn't find a command to add list from cli. Has something like this already exist, or am i just overlook…

---

## [Dutch (Netherlands) websites whitelisting](https://discourse.pi-hole.net/t/dutch-netherlands-websites-whitelisting/2259)

<div class="topic-metadata">

**Author:** [@PuckStar](https://discourse.pi-hole.net/u/PuckStar)\
**Replies:** 10\
**Last updated:** [October 31, 2021, 10:31pm UTC](https://discourse.pi-hole.net/t/dutch-netherlands-websites-whitelisting/2259 "2021-10-31T22:31:04Z")

</div>

I just want to share about a few sites (Netherlands / Dutch websites) which domains you need to whitelist so you can still view the video's or other material. May save someone else the trouble of finding out …

---

## [Setting up a PXE Boot Server with Docker-Compose and boot Kali Linux (or other OSs)](https://discourse.pi-hole.net/t/setting-up-a-pxe-boot-server-with-docker-compose-and-boot-kali-linux-or-other-oss/50218)

<div class="topic-metadata">

**Author:** [@xsnooy](https://discourse.pi-hole.net/u/xsnooy)\
**Replies:** 0\
**Last updated:** [October 6, 2021, 7:22pm UTC](https://discourse.pi-hole.net/t/setting-up-a-pxe-boot-server-with-docker-compose-and-boot-kali-linux-or-other-oss/50218 "2021-10-06T19:22:07Z")

</div>

Setting up a PXE Boot Server with Docker-Compose and boot Kali Linux In this guide I try to explain how to set up a PXE Boot Server with Pi-Hole and Docker-Compose. Host means the machine where docker is running. I am …

---

## [Add / remove regex blacklists on a cron schedule](https://discourse.pi-hole.net/t/add-remove-regex-blacklists-on-a-cron-schedule/49289)

<div class="topic-metadata">

**Author:** [@Sam\_Lander](https://discourse.pi-hole.net/u/Sam_Lander)\
**Replies:** 2\
**Last updated:** [September 1, 2021, 9:51pm UTC](https://discourse.pi-hole.net/t/add-remove-regex-blacklists-on-a-cron-schedule/49289 "2021-09-01T21:51:21Z")

</div>

Moderator note: This post contains scripts, or links to scripts, that are untested by the Pi-hole team. We encourage users to be creative, but we are unable to support any potential problems caused by running these scrip…

---

## [PiHole with OpenVPN the easy way — use PiVPN](https://discourse.pi-hole.net/t/pihole-with-openvpn-the-easy-way-use-pivpn/7912)

<div class="topic-metadata">

**Author:** [@FutureTense](https://discourse.pi-hole.net/u/FutureTense)\
**Replies:** 14\
**Last updated:** [August 12, 2021, 7:53pm UTC](https://discourse.pi-hole.net/t/pihole-with-openvpn-the-easy-way-use-pivpn/7912 "2021-08-12T19:53:17Z")

</div>

I’ve setup PiHole and OpenVPN several times on devices like RaspberryPI and Odroid64. OpenVPN is usually the tricker part to get right. What I’ve found that works best is to first install PiHole, then use PiVPN to setu…

---

## [How to handle DNS on Pi-hole, DHCP on router and also resolve local hostnames](https://discourse.pi-hole.net/t/how-to-handle-dns-on-pi-hole-dhcp-on-router-and-also-resolve-local-hostnames/46923)

<div class="topic-metadata">

**Author:** [@Ionut\_Baban](https://discourse.pi-hole.net/u/Ionut_Baban)\
**Replies:** 5\
**Last updated:** [May 10, 2021, 12:24am UTC](https://discourse.pi-hole.net/t/how-to-handle-dns-on-pi-hole-dhcp-on-router-and-also-resolve-local-hostnames/46923 "2021-05-10T00:24:30Z")

</div>

Hi I don't have much network knowledge, but I would like to keep DHCP on the router, EdgeRouter X keep DNS on the Pi-hole be able to resolve local hostnames Up until now I had been using the same setup, but …

---

## [How do i block certain sites](https://discourse.pi-hole.net/t/how-do-i-block-certain-sites/47878)

<div class="topic-metadata">

**Author:** [@Sincere\_Glasses\_25](https://discourse.pi-hole.net/u/Sincere_Glasses_25)\
**Replies:** 19\
**Last updated:** [June 30, 2021, 7:10pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-certain-sites/47878 "2021-06-30T19:10:14Z")

</div>

I am using a Ubuntu and a raspberry pi raspberry pi is my main computer that is running pi-hole, i want to figure out how to block certain sites, plz help!

---

## [Move Pihole to a different folder or maybe create virtual host](https://discourse.pi-hole.net/t/move-pihole-to-a-different-folder-or-maybe-create-virtual-host/5240)

<div class="topic-metadata">

**Author:** [@user4747](https://discourse.pi-hole.net/u/user4747)\
**Replies:** 7\
**Last updated:** [April 17, 2021, 9:26pm UTC](https://discourse.pi-hole.net/t/move-pihole-to-a-different-folder-or-maybe-create-virtual-host/5240 "2021-04-17T21:26:27Z")

</div>

Hi guys, I wanted know if is somehow possible to move pihole to a different folder within lighttpd possibly pihole ? So the admin can access the webgui through a different path in it is browser . By entering in the br…

[Previous page](https://discourse.pi-hole.net/c/faqs/how-tos/14.md)

[Next page](https://discourse.pi-hole.net/c/faqs/how-tos/14.md?page=2)
