Jump to content

DNS alterations Pihole Docker


MaTi

Recommended Posts

Hi,

 

I have been googling and searchign these forums, but to no avail. Maybe it's my poor Google/search skills. but still I hope someone can advise me.

I succesfully run a docker container with Pihole. I also run several other VM's/dockers, ie Nextcloud. These work perfectly fine when approached from the outside, but when I try to access them from within the same LAN over their domain names, my pfsense blocks all due to suspected DNS rebind attacks and god knows what..

 

So, what I'd like to do is manually hard code some entries in the host file of the docker, ie:

192.168.0.100 www.thisismydomain.com

 

If I understand correctly, there's no GUI option for this in Pihole. However, I also see that it seems to inherit the entries from the main host, so there I need to make the adjustments. After altering the hosts file on my unraid server, there a lookup of the domain did result in the prive IP. However, not on the docker, or it's clients requesting dns entries.. Also not after restarting the docker. Also, when rebooting my entire unraid host, the manual adjustments to the hosts file seemed to have disappeared as well..

 

Does anyone know how to get this fixed please? :)

Thanks in advance!

Link to comment

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.

×
×
  • Create New...