dscl – The Easy Way to Add Hosts on OS X Posted by gpantazes on Tuesday April 11, 2023 @10:22AM from the tomafro.net dept. https://tomafro.net/2009/07/dscl-the-easy-way-to-add-hosts-on-osx ( 1 comment | on HN )
This article on dscl (https://tomafro.net/2009/07/dscl-the-easy-way-to-add-hosts-o...) is one such finding.
If anybody has suggestions about the best way to add hostnames for testing/override purposes, whether that's /etc/hosts or something else, please comment with your favorite.