# Using Homebrew
brew install bind
# Using YUN
yum check-update
sudo yum -y install bind
# Using APT
sudo apt update
sudo apt -y install bind9
# Using APK
sudo apk update
sudo apk add bind
sudo sed -ri "/^\tlisten-on port 53/ s/127.0.0.1;/127.0.0.1; $(hostname -I | awk '{print $2}');/g" /etc/named.conf
sudo sed -ri "/^\tallow-query/s_localhost;_localhost; $(ip route | awk 'NR==3 {print $1}');_g" /etc/named.conf
sudo sed -ri '/\tallow-query/ s/localhost/any/g' /etc/named.conf
\n\tforwarders { 8.8.8.8; [ip-address]; };