Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#!/bin/bash
YOURDOMAIN="WHATEVER.COM"
YOURNAMESERVER="IP1"
YOURNAMESERVER2="IP2"
sudo mkdir "/etc/resolver"
sudo touch "/etc/resolver/${YOURDOMAIN}"
sudo echo "#domain ${YOURDOMAIN}" > "/etc/resolver/${YOURDOMAIN}"
sudo echo "nameserver ${YOURNAMESERVER}" >> "/etc/resolver/${YOURDOMAIN}"
sudo echo "nameserver ${YOURNAMESERVER2}" >> "/etc/resolver/${YOURDOMAIN}"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment