Filter request based on client domain name

Hi,
I want to know if it is possible to filter a request based on the client domains name.
For example, I have a server Web behind my HAproxy and I want only people which are in the domain .domain.com (i.e. the name of their machine are registered like this xxx.domain.com) access to it and deny all other resquests incoming.
I look all over internet just to find that you can filter by src IP but not with something like .domain.com…

Thanks for your help !