Can I specify multiple hostnames in a single certificate?

I have a cloudera managed Hadoop cluster where I had installed SSL certificates on all servers. Unfortunately, the host name on the servers are not the same as the one configured over dns.

When run hostname -f it gives: server1.x But when I do nslookup from a client machine i get: server1.x.y

Obviously accessing server1.x.y from the browser gives identity error since it trusts only server1.x I was wondering if I could add server1.x.y in the Subject Alternative Name and would the browser start trusting the certificate?