Jump to content
spants

[SUPPORT] pihole for unRaid - Spants repo

704 posts in this topic Last Reply

Recommended Posts

cant get pihole to work since this new template tryed everyway i can thing of but iam unable to get it to work with my pfsense box. unraid Version: 6.8.0-rc9

if there is anyone out there using pfsense with the new template and this version of unraid and can make it work plz tell me how thanks

Share this post


Link to post

Hi,

I wanted to use this pihole docker as my second dns server, i already have a hardware raspberry pi as my main pihole dns, but having a backup is always good.

I was wondering how i could change hostname of this pihole installation?

I was hoping to simply ssh in and change /etc/hostname to whatever i wanted but there is no editor included in the docker so unsure how i would accomplish this.

 

Ideas?

Thanks.

image.png.dbbc5d3b27522b74238e58ba630b9c1e.png

EDIT:

Figured it out:

ssh into the docker

cp /etc/hostname /etc/pihole/

 

ssh into your unraid install

nano /mnt/cache/appdata/pihole/pihole/hostname

changename + save

 

ssh back into the docker

cp /etc/pihole/hostname /etc/

 

EDIT AGAIN:

Wont survive docker container restart :( damn.

 

EDIT One More time!

added --hostname pihole2 to the run command in docker, seems to work!

Edited by je82

Share this post


Link to post

you can install your favourite editor (nano, vim, emacs)

apt-get update
apt-get install nano

 

Edited by frakman1

Share this post


Link to post

I just wanted to share a trick I used to have hostnames show up in the Pihole Dashboard for my local devices instead of IP addresses. Like this:

 

image.png.12cbcb92d1db2fe7d9e6289e710cb418.png

 

First make a copy of the /etc/hosts file in the PiHole container and place it in the app data folder on the host where you can modify it to suit your local LAN.

Then I just added a volume mount via the docker template page to link the two files

 

image.thumb.png.5043f695874c414208705e2e6bc7426a.png

 

image.thumb.png.1caf5d21397ccfd391806cec81ad6bcc.png

Edited by frakman1

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.