Setting Up A Web Server On Ubuntu – Part 2

Well it’s been a while since I set up my server.  Now I want to expose it to the world as an internet accessible server.  Now, at this point, you may just be thinking “Hmmm…. I should just get a hosting account somewhere and save the trouble of configuring my network and engendering all the security risks of running  a server” and you’d be absolutely right.  On the other hand, if you think it would be fun to run your own server, or you want the experience of configuring and running a web server, well, it is pretty cool.  Just keep in mind that it is a responsibility to manage and maintain it if nothing other than from a security standpoint.

So what do we need to do? There are two main parts to getting your web server out to the world: the domain stuff and your network stuff.

Question: Why can’t I just use my ip to get to my server?

Answer: You could but, 1) you’ll have to know your external ip; that’s the one assigned by your ISP.  And 2) you’ll have to know what it is whenever it changes.  It may not change very often but, most likely, it will unless you have a static ip from your ISP which is usually pricey and mainly for commercial accounts.  And, frankly, what’s the point of that when you probably want something meaningful like JeffWrightConsulting.com.

  1. have a domain name (register one if you don’t already have one)
  2. register your nameservers with your domain registrar
  3. Add a domain into FreeDNS

https://freedns.afraid.org/

Question: (FAQ item #8)
How do I make mydomain.com point to my IP address?
Answer:
First you’ll need to add mydomain.com to freedns. To do this click on the domains area on the left and add your domain into the system. Once you have completed this step, you’ll want to click subdomains on the left side, and find the record of mydomain.com, and point it to the IP address of your choosing. You can edit this record by clicking on

Related posts

Leave a Comment