• Sl chevron_right

      How to manage custom DNS records on a Pi-hole instance

      pubsub.slavino.sk / sleeplessbestie · Friday, 20 August, 2021 - 11:00 edit

    Use dnsmasq directly to manage custom DNS records on a Pi-hole instance. The goal is to automate the process using Ansible/Chef/Puppet, so it can be managed independently. Simply define additional dnsmasq settings. dietpi@DietPi:~$ cat <<EOF | sudo tee /etc/dnsmasq.d/99-self-managed.conf address=/datanode1.example.com/192.168.8.10 address=/datanode2.example.com/192.168.8.11 address=/datanode3.example.com/192.168.8.12 txt-record=_location.datanode1.example.com,red txt-record=_location.datanode2.example.com,blue txt-record=_location.datanode3.example.com,red EOF Use /etc/hosts as a workaround to assign multiple IP […]

    Značky: #DietPi, #Linux, #Pi-hole, #SysOps

    • Sl chevron_right

      How to install DNS lookup utility

      pubsub.slavino.sk / sleeplessbestie · Saturday, 7 August, 2021 - 19:00 edit

    Install DNS lookup utility to perform basic DNS lookups. dig is provided by the bind9-dnsutils package (and dnsutils transitional package) on Debian and Ubuntu operating systems. debian$ dpkg-query -S "*/dig" bind9-dnsutils: /usr/bin/dig dig is provided by the dnsutils package on DietPi operating system. dietpi@DietPi:~$ dpkg-query -S "*/dig" dnsutils: /usr/bin/dig

    Značky: #SysOps, #Bullseye, #Debian, #Linux, #DietPi

    • Sl chevron_right

      How to switch from Dropbear to OpenSSH on DietPi

      pubsub.slavino.sk / sleeplessbestie · Friday, 9 July, 2021 - 20:16 edit

    Switch from Dropbear to OpenSSH on DietPi. Dropbear SSH is a great solution for embedded devices, but sometimes I want to use a plain old OpenSSH server. To use the full-blown OpenSSH server you need to install it using the software center. Execute dietpi-software utility. Open SSH server menu. Select desired SSH server. Accept changes. […]

    Značky: #Raspberry, #SysOps, #DietPi, #Linux

    • Sl chevron_right

      How to open LUKS2 encrypted volume on a low memory device

      pubsub.slavino.sk / sleeplessbestie · Monday, 5 July, 2021 - 07:00 edit

    Open LUKS2 encrypted volume on a low memory device. There are those rare situations when you cannot open LUKS encrypted volume on a low memory device. $ sudo cryptsetup luksOpen /dev/sda1 decrypted_sda1 Enter passphrase for /dev/sda1: Killed The process is killed by the OOM killer. $ dmesg -T | tail [Tue May 4 20:18:51 2021] […]

    Značky: #SysOps, #Raspberry, #DietPi, #Linux