It doesn't always work like that. For you to have your own domain show in your connection, the most common way is to use a shell account with a Bouncer. This decreases security and increases lag though.

Usually your ISP decides whether you connect with an IP address or a resolvable hostname when you connect to the 'Net and there's no way to change it either way.