Pomoc Pi Hole na Dockerze, jak skofigurować?

krystianen

System Engineer
Q Specialist
25 Styczeń 2010
101
9
18
Poznań
QNAP
TS-x53
Ethernet
1 GbE
Wersja oprogramowania Firmware: 4.4.1 Build 20YYMMDD
Model serwera: QNAP TS-251A

Zainstalowałem PI HOLE na dockerze jednak podczas uruchomienia mam bład

Czy ktoś się spotkał z takim problemem?

Kod:
[✗] DNS resolution is currently unavailable

Doszukałem się że musze ze musze zedytować DNSy w pliku /etc/resolf.conf tylko nie wiem jak sie mam do niego stać. Bo wyrzuceniu w/w błedy pi hole sie wylacza.

Kod:
 ::: Starting docker specific checks & setup for docker pihole/pihole                                                                                                                                                                                                                                                     
WARNING Misconfigured DNS in /etc/resolv.conf: Two DNS servers are recommended, 127.0.0.1 and any backup server                                                                                                                                                                                                           
WARNING Misconfigured DNS in /etc/resolv.conf: Primary DNS should be 127.0.0.1 (found 127.0.0.11)                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                                                         
nameserver 127.0.0.11                                                                                                                                                                                                                                                                                                     
options ndots:0                                                                                                                                                                                                                                                                                                           
Assigning random password: -6wj8quc                                                                                                                                                                                                                                                                                       
  [i] Existing PHP installation detected : PHP version 7.0.33-0+deb9u5                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                                                         
  [i] Installing configs from /etc/.pihole...                                                                                                                                                                                                                                                                             
  [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!                                                                                                                                                                                                                                             
  [✓] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf                                                                                                                                                                                                                                                             
chown: cannot access '/etc/pihole/dhcp.leases': No such file or directory                                                                                                                                                                                                                                                 
Setting password: -6wj8quc                                                                                                                                                                                                                                                                                               
+ pihole -a -p -6wj8quc -6wj8quc                                                                                                                                                                                                                                                                                         
  [✓] New password set                                                                                                                                                                                                                                                                                                   
Using default DNS servers: 8.8.8.8 & 8.8.4.4                                                                                                                                                                                                                                                                             
DNSMasq binding to default interface: eth0                                                                                                                                                                                                                                                                               
Added ENV to php:                                                                                                                                                                                                                                                                                                         
                        "PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",                                                                                                                                                                                                                                                 
                        "ServerIP" => "0.0.0.0",                                                                                                                                                                                                                                                                         
                        "VIRTUAL_HOST" => "0.0.0.0",                                                                                                                                                                                                                                                                     
Using IPv4 and IPv6                                                                                                                                                                                                                                                                                                       
::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early))                                                                                                                                                                                                                             
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts                                                                                                                                                                                                                                                         
https://mirror1.malwaredomains.com/files/justdomains                                                                                                                                                                                                                                                                     
http://sysctl.org/cameleon/hosts                                                                                                                                                                                                                                                                                         
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt                                                                                                                                                                                                                                                         
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt                                                                                                                                                                                                                                                               
https://hosts-file.net/ad_servers.txt                                                                                                                                                                                                                                                                                     
::: Testing pihole-FTL DNS: FTL started!                                                                                                                                                                                                                                                                                 
::: Testing lighttpd config: Syntax OK                                                                                                                                                                                                                                                                                   
::: All config checks passed, cleared for startup ...                                                                                                                                                                                                                                                                     
::: Docker start setup complete                                                                                                                                                                                                                                                                                         
  [i] Pi-hole blocking is enabled                                                                                                                                                                                                                                                                                         
  [✗] DNS resolution is currently unavailable                                                                                                                                                                                                                                                                             
  [✗] DNS resolution is not available                                                                                                                                                                                                                                                                                     
[cont-init.d] 20-start.sh: exited 1.                                                                                                                                                                                                                                                                                     
[cont-finish.d] executing container finish scripts...                                                                                                                                                                                                                                                                     
[cont-finish.d] done.                                                                                                                                                                                                                                                                                                     
[s6-finish] syncing disks.                                                                                                                                                                                                                                                                                               
[s6-finish] sending all processes the TERM signal.                                                                                                                                                                                                                                                                       
[s6-finish] sending all processes the KILL signal and exiting.
 
@QQryq - pamietaj ze kolega @jerry1333 robił to na klasycznym linuxie ,
ty w QNAPie musisz robić foldery w /share/...

dla testów, proponuje cd /share/Public
przed wykonaniem poniższego kodu
1674306646469.png
 
  • Lubię to
Reakcje: jerry1333
1674333100869.png

wszystko stworzone ale przy komendzie ./run.sh mam błąd
pihole]$ /run.sh
-sh: /run.sh: No such file or directory
jestem aktualnie w /share/Public/pihole więc nie muszę tego z całej ścieżki wywoływać a jednak nie chce coś przyjąć
Połączono posty:

oczywiście zawartość wyedytowałem tak jak miałem
 
[herotech@Herotech pihole]$ sh run.sh
Creating pihole ...
Creating pihole ... error

ERROR: for pihole Cannot start service pihole: driver failed programming external connectivity on endpoint pihole (74fca889d8257ce385200ba3edd3249b1ab5f677a0ff1dd6cbc468497275634c): listen udp4 0.0.0.0:67: bind: address already in use

ERROR: for pihole Cannot start service pihole: driver failed programming external connectivity on endpoint pihole (74fca889d8257ce385200ba3edd3249b1ab5f677a0ff1dd6cbc468497275634c): listen udp4 0.0.0.0:67: bind: address already in use
ERROR: Encountered errors while bringing up the project.
Połączono posty:

version: '3.8'
services:
pihole:
container_name: pihole
environment:
TZ: 'Europe/Warsaw'
WEBPASSWORD: 'tatatatatatatata'
ADMIN_EMAIL: 'super@admin.net'
IPv6: false
PIHOLE_UID: 1000
PIHOLE_GID: 100
hostname: pi.hole
image: pihole/pihole:latest
network_mode: bridge
ports:
- 53:53/tcp
- 53:53/udp
- 67:67/udp
- 8080:80/tcp
restart: always
volumes:
- '/home/pi/pihole/data:/etc/pihole/'
- '/home/pi/pihole/data-dnsmasq:/etc/dnsmasq.d'
- '/home/pi/pihole/data/overwrite_resolv.conf:/etc/resolv.conf'
deploy:
resources:
limits:
cpus: '4'
memory: 1024M


a tego używam
 

Użytkownicy znaleźli tą stronę używając tych słów:

  1. pihole
  2. netflix
  3. container sieć
  4. container settings
  5. samsung evo 970
  6. docker status
  7. localhost docker
  8. pi hole
  9. ubuntu station
  10. adguard
  11. switch do 10 gbe