You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _sessions/c1s2/6_homework.md
+38
Original file line number
Diff line number
Diff line change
@@ -20,3 +20,41 @@ Finish off both CSS exercises from class. Check your solutions online:
20
20
4. (Optional) Read [this article](https://www.inkling.com/read/dreamweaver-cs6-missing-manual-david-sawyer-mcfarland-1st/chapter-4/understanding-links) about absolute vs. relative links.
21
21
{% endexercise %}
22
22
23
+
### Get your domain name to point to you github page
24
+
25
+
The point of this exercise is to set up your domain name to point towards your new GitHub pages site.
26
+
27
+
As GitHub hosts many different pages at their IP address, it isn't quite as simple as pointing your domain address towards that IP address. There are two things you need to do to get your domain name working with your GitHub pages site:
28
+
29
+
1. Tell your domain registrar (e.g 123-reg or godaddy) to point your domain name towards GitHub's IP address.
30
+
2. Tell GitHub that requests to your domain name should come to your site.
31
+
32
+
Github explains this [here](https://help.github.com/articles/setting-up-a-custom-domain-with-pages).
33
+
34
+
##### Pointing your domain name towards GitHub
35
+
36
+
For the first bit you need to log in to your domain registrar and change the DNS settings. You want an *A-record* pointing to `204.232.175.78` (which is github.com). Note that it can take up to a couple of days for DNS changes to propagate.
37
+
38
+
If you're using 123-reg, your should log in, select your domain from the list, and click "Manage". You should then go to "Manage DNS".
39
+
40
+

41
+
42
+
(The @ dns entry stands for the root or bare domain.)
43
+
44
+
{% exercise %}
45
+
Log in to your domain registrar and set an A-record to point towards GitHub.
46
+
{% endexercise %}
47
+
48
+
Your changes won't take effect immediately.
49
+
50
+
##### Tell github to expect requests for your domain name
51
+
52
+
{% exercise %}
53
+
1. Open Sublime Text and create a new file.
54
+
2. Write your domain name on the first line of the new file e.g:
55
+
56
+
mydomain.com
57
+
58
+
3. Save that file as `CNAME` (uppercase, with no extension) in your `first_site` folder
0 commit comments