minus-square@Jjoiq@lemmy.worldtoSelfhosted@lemmy.world•How do you host your DNS sinkhole/resolver?linkfedilinkEnglish2•2 days agoDebian & ubuntu sudo apt install keepalived sudo apt install libipset13 Configuration Find your IP ip a edit your config sudo nano /etc/keepalived/keepalived.conf First node vrrp_instance VI_1 { state MASTER interface ens18 virtual_router_id 55 priority 150 advert_int 1 unicast_src_ip 192.168.30.31 unicast_peer { 192.168.30.32 } authentication { auth_type PASS auth_pass C3P9K9gc } virtual_ipaddress { 192.168.30.100/24 } } Second node vrrp_instance VI_1 { state BACKUP interface ens18 virtual_router_id 55 priority 100 advert_int 1 unicast_src_ip 192.168.30.32 unicast_peer { 192.168.30.31 } authentication { auth_type PASS auth_pass C3P9K9gc } virtual_ipaddress { 192.168.30.100/24 } } Start and enable the service sudo systemctl enable --now keepalived.service stopping the service sudo systemctl stop keepalived.service get the status sudo systemctl status keepalived.service Make sure to change ip and auth pass. Enjoy linkfedilink
minus-square@Jjoiq@lemmy.worldtoSelfhosted@lemmy.world•How do you host your DNS sinkhole/resolver?linkfedilinkEnglish2•3 days agoOn the router. My router is locked down so i assign the vrrp address to wach client (pain in the ass) but it works. Pivpn takes care or wireguard too. linkfedilink
minus-square@Jjoiq@lemmy.worldtoSelfhosted@lemmy.world•How do you host your DNS sinkhole/resolver?linkfedilinkEnglish3•3 days ago2 pihole instances 1 pi5 1 pi4 Keepalived provides vrrp at a set address. Instances kept in sync via orbital 1 goes down the other takes over. Quite elegantly. linkfedilink
minus-square@Jjoiq@lemmy.worldtoSelfhosted@lemmy.world•Introducing Pi-hole v6linkfedilinkEnglish1•23 days agoLighttpd ran into a dns issue mid update. And it dif not complet and left the aformentioned webserver running. Removed with apt and voilla. linkfedilink
Debian & ubuntu sudo apt install keepalived
sudo apt install libipset13
Configuration
Find your IP
ip a
edit your config
sudo nano /etc/keepalived/keepalived.conf
First node
vrrp_instance VI_1 {
state MASTER
interface ens18
virtual_router_id 55
priority 150
advert_int 1
unicast_src_ip 192.168.30.31
unicast_peer {
192.168.30.32
}
authentication {
auth_type PASS
auth_pass C3P9K9gc
}
virtual_ipaddress {
192.168.30.100/24
}
}
Second node
vrrp_instance VI_1 {
state BACKUP
interface ens18
virtual_router_id 55
priority 100
advert_int 1
unicast_src_ip 192.168.30.32
unicast_peer {
192.168.30.31
}
authentication {
auth_type PASS
auth_pass C3P9K9gc
}
virtual_ipaddress {
192.168.30.100/24
}
}
Start and enable the service
sudo systemctl enable --now keepalived.service
stopping the service
sudo systemctl stop keepalived.service
get the status
sudo systemctl status keepalived.service
Make sure to change ip and auth pass.
Enjoy