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?

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

    Need I to run this command in Shellinabox?

    I executed this command:

    docker exec -it pihole dig

    and got this:

    Is pihole runnign as a DNS resolver?

  • 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


    For me your output looks correct. When you test dig the answer section should show ""

  • 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:


    and got this code:

    No as far as I can see above

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!