How to run commands in pihole installed as a docker in OMV

  • Hi everyone,
    I would need to run a few commands in pihole to test is working as a DNS resolver, but I don't understand how to do this.
    I mean, I don't know where a command prompt is.
    Can you help me figure it out?
    Thanks

  • Something like
    docker exec -it pihole if pihole is the name of the container


    https://docs.docker.com/engine/reference/commandline/exec/

    Need I to run this command in Shellinabox?


    I executed this command:


    docker exec -it pihole dig google.com


    and got this:


    Is pihole runnign as a DNS resolver?
    Thanks

    • Offizieller Beitrag

    With docker exec -it pihole you open a shell inside the container. You get a different prompt. From there you can execute the commands like


    dig google.com


    For me your output looks correct. When you test dig a-ads.com the answer section should show "0.0.0.0"

  • I think it has to be docker exec -it pihole bash to get to the shell

    But is it ok to run that command in the shellunabox's web client?


    I executed this:


    dig a-ads.com


    and got this code:



    No 0.0.0.0 as far as I can see above
    Thanks

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!