making the server ip a domain name

How would I make it so that my server ip is a domain name instead of the ip. For example if my server ip was 12.45.678.89. How could i change it so that it's


go to easy install scripts,
choose "ehcp itself",
install onto wherever you want.