If you have control of the dns server, why do you need the bash script? Just create a CNAME record pointing to the current remote.
post
replies:
"Scientific Progress Goes Doink!"

If you use ssh for the remote you can just add a line to ssh config mapping the remote to whatever. Of course you still have to change the config if things change, but you're not relying on DNS. Used to be the way to handle multiple auths to github when dealing with client repos before they had better organization/enterprise & team support.
all 6 comments