Install a DNS Server with a Shell Script (Linux Automation — Part I)

When I set up a Red Hat virtual machine for the first time and got to the software installation part of the set-up, the automator in me wondered if there was a way to set up all of this software with my own scripts. Turns out, there is! :)

I started off by following a tutorial video on how to set up a DNS server. The video lasts about 15 minutes but the script took a few days to debug. It is my belief that half the battle in shell scripting is figuring out how text manipulation works (the “sed”, “awk” and “cut”…