Feb212013

How can a domain name forward request to my computer?

Syed Hamjath asks:

I have a machine with web server installed on it.

I have an modem with internet connection with static IPv4 address. I need to register a domain name and I wanted them to forward the request to my machine static IPv4 address.

How can I do this ?

 



2 Answers - Write an Answer

James Bruce

Please don’t just post a link you grabbed from Google. Use your own knowledge to explain a useful Answer. If they wanted to use Google, they would have done so.

February 21, 2013
6 votes
Reply

James Bruce

February 21, 2013

Two steps:

1. Specify an A-name record for your domain that points to your IP address. This sends web traffic to your static home IP. It’s a lot more complicated if you have a dynamic IP, but you’ve said it’s static, so it’s easy. Here’s a help file if you’re on godaddy, otherwise check your domain provider: http://support.godaddy.com/help/article/7920/adding-or-editing-a-records?locale=en

2. Setup port forwarding on your router. You’ll want anything on port 80 to be sent to your servers internal IP. Router interfaces vary greatly, but if you login and search for port forwarding in the menu options, it’s pretty obivous. Type in port, type in IP, and click add. Then all traffic on that port (80 for web servers) will be sent to your linux home server.

You should know however that some ISPs don’t allow you to host a website, so you may wish to check with them first. Probably not an issue, but you have been warned.

Syed Hamjath

Thats Awesome!

But I have a question here,
you said A-name record means I have to specify in DNS Server where I have registered my domain. For eg: example If my domain is in Godaddy DNS server then I have to Forward the request to my static IP address.

Is that Correct ?

February 22, 2013
James Bruce

Yes. The A-Name record for the domain points to the server it’s hosted on. So in your case, it should point to your home IP address (the public one, bot internal one).

February 23, 2013

Write an Answer

Log in to MakeUseOf using one of your online accounts below.
(Why? Earn points, unlock giveaways, access exclusives)

Or, comment anonymously