To resolve AWS EMR hostnames from your MacOS machine you'll need to install and configure dnsmasq:
brew install dnsmasq
Add the following to /usr/local/etc/dnsmasq.conf
# configure resolution of AWS EMR hostnames
address=/eu-west-1.compute.internal/127.0.0.1
synth-domain=eu-west-1.compute.internal,0.0.0.0,255.255.255.255,ip-
Start dnsmasq:
brew services start dnsmasq
Configure DNS for each network interface by going to "System Preferences", "Network", (for each adapter), "Advanced", "DNS". Take a screenshot! Click the "+" sign and add "127.0.0.1" and all entries that were already there (UI glitch...).
Try out resolution with:
dig ip-171-120-13.eu-west-1.compute.internal
Should return:
;; ANSWER SECTION:
ip-171-120-13.eu-west-1.compute.internal. 0 IN A 171.120.13