jb7
November 5, 2022, 4:53pm
1
I have followed the instructions as per the wiki on setting up Pi and it works great!
Now I would like to setup Unbound as a container for a DNS solution but can’t find any information on how to do this on the Mikrotik.
Any help would be appreciated!
elico
November 18, 2022, 4:24pm
2
I have followed the instructions as per the wiki on setting up Pi and it works great!
Now I would like to setup Unbound as a container for a DNS solution but can’t find any information on how to do this on the Mikrotik.
Any help would be appreciated!
Just a recursive caching DNS server?
A simple unbound container can be found at:
https://github.com/elico/unbound-container
Example on how to deploy it:
/interface/bridge/add name=dockers
/ip/address/add address=172.20.0.254/24 interface=dockers
/interface/veth/add name=veth53 address=172.20.0.53/24 gateway=172.20.0.254
/interface/bridge/port add bridge=dockers interface=veth53
/container/config/set registry-url=https://registry-1.docker.io tmpdir=disk1/pull
/container/envs/add name=unbound_envs key=TZ value="Asia/Jerusalem"
/container/add dns=172.20.0.254 remote-image=elicro/unbound:latest interface=veth53 root-dir=disk1/unbound envlist=unbound_envs start-on-boot=yes
Works like a charm.
mozerd
November 18, 2022, 4:47pm
3
You should install Pi and unbound into one container … a much better approach.
https://github.com/chriscrowe/docker-pihole-unbound/tree/main/one-container
Please, could you write how to deploy this container on RouterOS? I would like to have exactly this directly on my hAP ac3. I’m running just pi-hole for now. Thanks.
Example on how to deploy it:
/interface/bridge/add name=dockers
/ip/address/add address=172.20.0.254/24 interface=dockers
/interface/veth/add name=veth53 address=172.20.0.53/24 gateway=172.20.0.254
/interface/bridge/port add bridge=dockers interface=veth53
/container/config/set registry-url=https://registry-1.docker.io tmpdir=disk1/pull
/container/envs/add name=unbound_envs key=TZ value="Asia/Jerusalem"
/container/add dns=172.20.0.254 remote-image=elicro/unbound:latest interface=veth53 root-dir=disk1/unbound envlist=unbound_envs start-on-boot=yes
Works like a charm.
Is it right IP addresses if I already have docker with pi-hole on 172.17.0.0 network?
elico
December 4, 2022, 8:42pm
5
Then change the network to .17 compared to .20 and it should work.
I am using the 172.20 since I have local machines with docker which the default network of choice is 172.17 so… I am using another network on the MT device so these containers can reach the DNS or another service.
Please, could you write how to deploy this container on RouterOS? I would like to have exactly this directly on my hAP ac3. I’m running just pi-hole for now. Thanks.
Example on how to deploy it:
/interface/bridge/add name=dockers
/ip/address/add address=172.20.0.254/24 interface=dockers
/interface/veth/add name=veth53 address=172.20.0.53/24 gateway=172.20.0.254
/interface/bridge/port add bridge=dockers interface=veth53
/container/config/set registry-url=https://registry-1.docker.io tmpdir=disk1/pull
/container/envs/add name=unbound_envs key=TZ value="Asia/Jerusalem"
/container/add dns=172.20.0.254 remote-image=elicro/unbound:latest interface=veth53 root-dir=disk1/unbound envlist=unbound_envs start-on-boot=yes
Works like a charm.
Is it right IP addresses if I already have docker with pi-hole on 172.17.0.0 network?
jimint
January 6, 2023, 7:05am
6
I have followed the instructions as per the wiki on setting up Pi and it works great!
Now I would like to setup Unbound as a container for a DNS solution but can’t find any information on how to do this on the Mikrotik.
Any help would be appreciated!
Just a recursive caching DNS server?
A simple unbound container can be found at:
https://github.com/elico/unbound-container
Example on how to deploy it:
/interface/bridge/add name=dockers
/ip/address/add address=172.20.0.254/24 interface=dockers
/interface/veth/add name=veth53 address=172.20.0.53/24 gateway=172.20.0.254
/interface/bridge/port add bridge=dockers interface=veth53
/container/config/set registry-url=https://registry-1.docker.io tmpdir=disk1/pull
/container/envs/add name=unbound_envs key=TZ value="Asia/Jerusalem"
/container/add dns=172.20.0.254 remote-image=elicro/unbound:latest interface=veth53 root-dir=disk1/unbound envlist=unbound_envs start-on-boot=yes
Works like a charm.
I already run pihole in my router (veth1 interface) my ip 10.8.8.2.
So i have to remove container before install yours?
elico
January 10, 2023, 2:33am
7
No,
Just adjust the ip addresses to your containers network subnet.