I think the correct term in this case would be "prejudiced". Someone who is prejudiced along racial lines is a racist. Zenophobia can be related...