Configuring Pihole as IPV6 dns server
Posted: Fri Jul 19, 2024 8:15 pm
Hello to everyone,
I have a configuration issue, involving pihole running and ipv6.
I have installed a container, pihole, which is running without issues. I am using dual stack ip and ipv6, and the configuration for ipv4 through the dhcp server of mikrotik is working like expected. The clients are getting the ip of the pihole as a dns server, and the dns resolving is done through pihole.
Since I have dual stack, whenever I want to visit a website, I have a delay before reaching the site. If I manually refresh, the pages loads instantly.
I believe that this is due to ipv6 name address resolution.
Yesterday, I tried adding the local ipv6 of the container as my dns ipv6 resolver for my laptop (configuring it in /etc/resolv.conf archlinux) but I was getting a timeout error reaching that address. I tried rebooting the mikrotik device, and then I realized that the local ipv6 address of veth1 that the container is using changed! I thought local addresses would never change.
My ipv6 configuration on my laptop is working fine. I can access from outside my lan, using the global ip of my laptop's wireless lan, a test web server that I installed for troubleshooting.
I am a little lost in what route I should go in order to achieve having pihole as ipv6 name resolver for my devices connecting to mikrotik.
Is there anyone that can point me to the right direction?
Thanks
I have a configuration issue, involving pihole running and ipv6.
I have installed a container, pihole, which is running without issues. I am using dual stack ip and ipv6, and the configuration for ipv4 through the dhcp server of mikrotik is working like expected. The clients are getting the ip of the pihole as a dns server, and the dns resolving is done through pihole.
Since I have dual stack, whenever I want to visit a website, I have a delay before reaching the site. If I manually refresh, the pages loads instantly.
I believe that this is due to ipv6 name address resolution.
Yesterday, I tried adding the local ipv6 of the container as my dns ipv6 resolver for my laptop (configuring it in /etc/resolv.conf archlinux) but I was getting a timeout error reaching that address. I tried rebooting the mikrotik device, and then I realized that the local ipv6 address of veth1 that the container is using changed! I thought local addresses would never change.
My ipv6 configuration on my laptop is working fine. I can access from outside my lan, using the global ip of my laptop's wireless lan, a test web server that I installed for troubleshooting.
I am a little lost in what route I should go in order to achieve having pihole as ipv6 name resolver for my devices connecting to mikrotik.
Is there anyone that can point me to the right direction?
Thanks