How to set a new SSH host key

Hello, I wonder how to set a new SSH host key. Moreover, why are only DSA keys supported? With a key size of 1024 DSA is fading out of what is considered secure.