serveralias *.mydomain.com - Debian

This is a discussion on serveralias *.mydomain.com - Debian ; Hi,
I want to redirect every under-domains (*).mydomain.com to mydomain.com
On debian gentoo (ovh).
I try to add "* IN A myip " in mydomain.com.hosts. This was working at
the begining and don't work anymore.
Then i try " server ...