Use a commercial domain name with a dynamic IP
Jun 29, '04 08:58:00AM
Contributed by: bluehz
The process below describes how to use an "always on" connection like cable or DSL to create your own server with a fully qualified domain name -- like you would purchase from a registrar (e.g. .com, .org, etc). In most cases, running any type of server on these type of connections goes completely against your ISP's service agreement. I have found, though, that if you are simply serving a few pages to your family and friends, and not eating tremendous amounts of bandwidth, they won't really care. You have been warned.
By following the procedure below, you can purchase your own domain name (usually for less than $10) and have it always pointing to your dynamically assigned cable/DSL connection. As an aside, I prefer to stay away from the larger Registrars like GoDaddy, in favour of a smaller Registrar I have used for years named IntuitiveISP. Their service is better and fast, and domains start at about $10.
These instructions are written for MyDomains.com and Dyndns.org, but they could certainly apply to other similar services.
- Purchase a domain name, and verify your account at the registrar. You will need to be able to login to your account to change the nameserver ip addresses. For our example, we will use the name myhost.com
- Login to your account at your registrar (where you bought your domain name) and locate info on changing the nameservers. You will need to access this information and change your nameservers to:
- NS1.MYDOMAIN.COM
- NS2.MYDOMAIN.COM
- NS3.MYDOMAIN.COM
- NS4.MYDOMAIN.COM
- Set up an account at http://mydomains.com (free).
- Set up an account at http://dyndns.org (free)
- Login to your account at dyndns.org and set up a dynamic hostname. It makes no difference what the name is, as long as you remember it. For our example, we will setup a host named myfwdhost.ath.cx.
- Login to your account at MyDomains.com and click the link in the left-hand column under Domain Tools labeled Manage Mydomain.com forwarding services
- Click the Add Domains button at the bottom of the page. Enter your purchased domain name (myhost.com) in the field and click the Add button.
- Access the My Domains page of your account at mydomains.com and you should see your new domain name listed. Click on the domain name, and you should be sent to the page that starts with "URL Forwarding" somewhere near the top. Set it up as follows:
- At this point, you have done everything necessary to use your purchased domain name, but it may take anywhere from a few hours to a few days before your registrar changes the nameservers (step two above) and the changes propgate throughout the other internet nameservers. When you can do a whois lookup and the nameservers are listed as in step two above, then you are all set and your domain name is now active.
- Set up some facility that watches your dynamic IP (that of your modem/router) and then updates the address at dyndns.org as appropriate. There are plenty of GUI applications at MacUpdate that can do this for you, or if you feel adventurous, try the UNIX/PERL option ddclient -- ddclient Project Page at FreshMeat ... Some useful ddclient setup info
Hope you find this useful...
Comments (22)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20040625012551347