The typical way of flushing the dns cache does not seem possible in Amazon Linux AMI:
service nscd restart
does not work because it's not included within the VM.service dnsmasq restart
does not work because it too is not part of the VM.service dns-clean restart
does not work because it's not part of the VM.
Amazon does use the old /etc/init.d/networking
for network setup; would restarting this also flush the DNS cache?