def get_host(name):
f = {'<STR_LIT>': '<STR_LIT>', '<STR_LIT>': name}<EOL>ec2 = boto.connect_ec2(region=get_region())<EOL>rs = ec2.get_all_instances(filters=f)<EOL>if len(rs) == <NUM_LIT:0>:<EOL><INDENT>raise Exception('<STR_LIT>' % name)<EOL><DEDENT>print(rs[<NUM_LIT:0>].instances[<NUM_LIT:0>].public_dns_name)<EOL>
Prints the public dns name of `name`, if it exists.

:param name: The instance name.
:type name: ``str``