Question:
My Domain Goes to my IP - Do I need a DNS?
2012-05-31 12:52:58 UTC
I have registered a domain with 123-reg.co.uk and I have pointed it towards my router which then forwards it to my server.
The page displays fine and everything works except for when they get their instead of it being "www.mydomain.co.uk/index.php" it displays my routers IP.

So it would be "XXX.XXX.XXX.XXX/index.php", is this because I haven't setup a DNS? The server which I am running is using Ubuntu, would I be able to setup a DNS on the same server if I needed to?

Thanks
Three answers:
adaviel
2012-05-31 13:13:06 UTC
In Apache config you may need to specify ServerName in conf/httpd.conf

and/or change the hostname of your server away from "localhost" or "get that from DHCP"



Yes, you can set up a DNS server and delegate your domain to that. But usually you need two.

That makes it easy to create subdomains and MX records and dynamic updates without having to log on to the registrar's server - which may not support all DNS features, anyway.
Excessive MHz
2012-05-31 19:57:15 UTC
It'd be worth using DNS as you can facilitate something like virtual hosts within Apache.



A free one can be found below, you would simply have to set up the nameservers on the domain administration, and create an A record within the DNS administration portal for both your domain.com and www.yourdomain.com, if desired.
Nicholas
2012-05-31 22:03:59 UTC
is there an option to cloak the address. no matter if the connection is redirected it should always show

http://yoursite.co.uk if that is enabled


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...