Update source/docs/deploying/github/index.markdown

* 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 <parkrmoore@gmail.com>
This commit is contained in:
Samy Dindane 2012-07-25 01:33:03 +03:00 committed by Parker Moore
parent 81b7b30acd
commit fb9a62c1bb
1 changed files with 10 additions and 5 deletions

View File

@ -90,15 +90,20 @@ Now push your changes and you'll be all set.
<h2 id="custom_domains">Custom Domains</h2>
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):<br>
Next, youll 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 shouldnt. 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)