I have been having some problems with my domain, when it reaches my server the address changes to my IP.
I 'own' the domain, "www.domain.com" which is forwared to my router, my router then points it to my server and the pages are displayed e.t.c.
Instead of displaying, "www.domain.com/index.php" it displays my IP, "XXX.XXX.XXX.XXX/index.php". This is obviously not what I want and isn't something that a user would expect.
As far as I am aware, I shouldn't need to setup a DNS as it is only going to one website? The domain should remain in the URL bar instead of changing to the IP.
As the title suggests, it is a LAMP server running Ubuntu 12.04 (latest version with updates).
Thanks for any help!