• We did not send an email asking for donations - please read this post.

How to get domain name to resolve at home apache server

ozstar

New Member
Joined
Jan 4, 2020
Messages
11
Reaction score
3
Credits
54
We have apache set up and working with localhost and have set up sites-enabled and available folders with the folder and index file for a domian name we own.

I am trying to work out if we have to give our static IP address as the nameserver for our dom name at our registry or just how it points to the setup we have.

I have looked around but can't see anywhere how to do this from the domain name point of view.

Appreciate any help please.
 


f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,944
Reaction score
3,588
Credits
36,026
You have registered a domain name at a hosting provider, your domain name will be hosted on their dns servers. All you have to do is login to the hosting provider's dns panel and create a dns record pointing to your external static ip adres which where apache is running your website(s).
 
OP
O

ozstar

New Member
Joined
Jan 4, 2020
Messages
11
Reaction score
3
Credits
54
Thank you. I have gone there and added the domain name to the A record which I was told to do, but when I tried to add the IP# to the nameserver area it said I needed at least 2 nameservers NS1, NS2
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,944
Reaction score
3,588
Credits
36,026
The hosting provider where you have registered your domain should have two namerserver configured for your domain. For example for linux.org it looks like this.
Code:
;; ANSWER SECTION:
linux.org.        43200    IN    NS    mark.ns.cloudflare.com.
linux.org.        43200    IN    NS    lia.ns.cloudflare.com.
I would create a ticket at your hosting provider saying you get that error when creating an A record for your domain and ask why you are getting that error and why there isn't a secondary name server configured for your domain by them.
 
OP
O

ozstar

New Member
Joined
Jan 4, 2020
Messages
11
Reaction score
3
Credits
54
Thank you.

After it propogated I see it resolves at our IP showing the router Login screen.

Not good, why would this be ?
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online

No members online now.

Top