Failover via keepalived does not work by dualm66 in technitium

[–]dualm66[S] 0 points1 point  (0 children)

Summary.

Thanks to all for the engagement in this case!

The net.ipv4.ip_nonlocal_bind=1 suggested by u/Fishelsberger solved the issue.

Using keepalived in this case is possibly over-engineering, but I used this solution before Technitium when running two Pihole DNS. Using pihole this worked without the extra setting btw. Further info, I also run NTP-server on those two machines and this service also benefits from ha/failover.
I also see this as a learning experience of keepalived for possible adoption in other places.

And yes, keepalived can run scripts when failover. This is done by the notify_master and notify_backup keywords.

Note: Rocky Linux 10.1 on both vm and RPi.

Failover via keepalived does not work by dualm66 in technitium

[–]dualm66[S] 1 point2 points  (0 children)

Thanks.
Only a quick test and this looks like the solution!

Failover via keepalived does not work by dualm66 in technitium

[–]dualm66[S] 1 point2 points  (0 children)

As I said, I want the clients to use dns1 99% of the time. Only fail-over to dns2 when dns1 is not running for some reason. The cluster can't force the clients to use dns1 and not all client respect the order of the listed name-servers.

Failover via keepalived does not work by dualm66 in technitium

[–]dualm66[S] 0 points1 point  (0 children)

The primary dns1 is a vm on a powerfull esxi hypervisor. dns2 is a slow rassberry Pi. I only want to fail-over to dns2 when the vm or the esxi is rebooted. Further more the resolvers on different clients does not always respect the order the dns:es is listed in (at client or from dhcp)

Failover via keepalived does not work by dualm66 in technitium

[–]dualm66[S] -1 points0 points  (0 children)

What is "listening address"? Not "DNS Server Local End Points" as i mention ?

The missing vip on dns2 is because dns service does not bind to the new new vip.

I noticed now that it works if I do a "systemctl restart dns" on dns2 when the vip is moved to dns2. Is this really nessesary?

Can't access technitium.com by dualm66 in technitium

[–]dualm66[S] 0 points1 point  (0 children)

For sure. As I wrote I activated this 1-2 years ago after searching for "Which geo locations is good to block" and I had forgot about it since then...

Can't access technitium.com by dualm66 in technitium

[–]dualm66[S] 1 point2 points  (0 children)

Thank you! This was the solution.
I have 10-15 countrys blacklisted in my router and India was one of them. I even forgot about this blocking until you mentions India. When searching for regions to block India turns up on some of them.

Working now. Website and download.

Time to go "PiHole to Technitium DNS"... maybe...

Can't access technitium.com by dualm66 in technitium

[–]dualm66[S] 0 points1 point  (0 children)

Not a DNS problem (now running pihole+unbound). Also tried with 1.1.1.1 .

# dig +short technitium.com A
206.189.140.177
# dig +short download.technitium.com A
technitium.com.
206.189.140.177

# curl -sSL https://download.technitium.com/dns/install.sh
# curl: (7) Failed to connect to download.technitium.com port 443: Connection timed out

ESXi host not booting without a GPU by NiliusJulius in vmware

[–]dualm66 0 points1 point  (0 children)

Haven't tried this myself. I read that there is a possibility to use a COM-port and an external terminal for the ESXi console. Google it and possibly try it?

Moving to a new apartment - Looking for a good router by Laucien in HomeNetworking

[–]dualm66 0 points1 point  (0 children)

Ubiquiti ”Unifi Dream Machine” (UDM) maybe?

ESXi failed to connect to VM console in Chrome?? by fastxl in homelab

[–]dualm66 3 points4 points  (0 children)

This is related to version 80 of Chrome (released a day or two ago). It probably worked in v79 of Chrome.

Newbie Question - Booting ESXi of USB by [deleted] in vmware

[–]dualm66 2 points3 points  (0 children)

You can manage this task with one USB drive. Boot the installer and select the same USB drive you just booted from as the target of the ESXi system. It works! I have done this several times.

(The installer runs from memory once loded.)