can you telnet to a.xxx.com?
this must be something to do with domains, may be you dont need to put domains in tnsnames.ora