From fb9a62c1bb5c61dd15de6919d222364615c7a078 Mon Sep 17 00:00:00 2001 From: Samy Dindane Date: Wed, 25 Jul 2012 01:33:03 +0300 Subject: [PATCH] Update source/docs/deploying/github/index.markdown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Updated the IP address the A record should point to  * Mentioned that the subdomain, if it exists, should be specified in the CNAME file  * Fixed and improved formatting  Signed-off-by: Parker Moore --- source/docs/deploying/github/index.markdown | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/source/docs/deploying/github/index.markdown b/source/docs/deploying/github/index.markdown index db49cec..468b3bf 100644 --- a/source/docs/deploying/github/index.markdown +++ b/source/docs/deploying/github/index.markdown @@ -90,15 +90,20 @@ Now push your changes and you'll be all set.

Custom Domains

-First you'll need to create a file named `CNAME` in the source containing your domain name. +First you'll need to create a file named `CNAME` in your blog's source: ``` sh echo 'your-domain.com' >> source/CNAME +# OR +echo 'www.your-domain.com' >> source/CNAME ``` -From [Github's Pages guide](http://help.github.com/pages/#custom_domains):
Next, you’ll need to visit your domain registrar or DNS host and add a record for your domain name. -For a sub-domain like `www.example.com` you would simply create a CNAME record pointing at `charlie.github.com`. -If you are using a top-level domain like `example.com`, you must use an A record pointing to `207.97.227.245`. -*Do not use a CNAME record with a top-level domain* it can have adverse side effects on other services like email. + +* For a sub-domain like `www.example.com` you would simply create a CNAME record pointing at `charlie.github.com.`. +* If you are using a top-level domain like `example.com`, you must use an A record pointing to `204.232.175.78`. + +**Do not use a CNAME record with a top-level domain!** It can have adverse side effects on other services like email. Many DNS services will let you set a CNAME on a TLD, even though you shouldn’t. Remember that it may take up to a full day for DNS changes to propagate, so be patient. + +*Source*: [Github's Pages guide](http://help.github.com/pages/#custom_domains)