presentations_compsoc/src/slides/compsoc/1_domains-dns-oh-no.md

244 lines
7 KiB
Markdown
Raw Normal View History

2024-04-02 06:14:06 +01:00
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
title = "Domains, DNS, oh no"
date = 2024-04-03
slides = false
2024-04-02 06:14:06 +01:00
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Domains, DNS, oh no
-------------------------------------------------------------------------
### Hello Class of CS4116
-------------------------------------------------------------------------
So we use domains every day, even if ye dont know it
-------------------------------------------------------------------------
52.30.181.100
-------------------------------------------------------------------------
52.30.181.100 - Brightspace
-------------------------------------------------------------------------
209.85.203.94
-------------------------------------------------------------------------
209.85.203.94 - Google
-------------------------------------------------------------------------
Those numbers arent very human friendly
-------------------------------------------------------------------------
So what is teh solution?
-------------------------------------------------------------------------
## Getting a domain!
-------------------------------------------------------------------------
There are many domain hosts to go for
-------------------------------------------------------------------------
And prices range from €1/year to €infinity/year
2024-04-02 23:39:45 +01:00
-------------------------------------------------------------------------
2024-04-02 06:14:06 +01:00
* .ie
* .com
* .tk
* .coffee
* .eu
* .me
* .gay
* ...
-------------------------------------------------------------------------
There is even .cat, though that is off limits to most of us.....
-------------------------------------------------------------------------
I recommend using <<https://www.blacknight.com/>> for .ie
-------------------------------------------------------------------------
And <<https://www.namecheap.com/>> for everything else
-------------------------------------------------------------------------
I am going to focus on .ie
-------------------------------------------------------------------------
These will set ye back ~&euro;7 for the first year.
2024-04-02 23:39:45 +01:00
-------------------------------------------------------------------------
Then &euro;30 for every year afterwards
2024-04-02 23:39:45 +01:00
-------------------------------------------------------------------------
2024-04-02 06:14:06 +01:00
Enter your perfect domain name into the big box
-------------------------------------------------------------------------
![img.png](1_domains/img01.png)
-------------------------------------------------------------------------
2024-04-02 23:39:45 +01:00
It will then show ye a list of options
-------------------------------------------------------------------------
![img.png](1_domains/img02.png)
-------------------------------------------------------------------------
Select one, add it to the cart
-------------------------------------------------------------------------
In the config select ``I'm hosting my website somewhere else``
-------------------------------------------------------------------------
Then add these two as nameservers:
* ``nadia.ns.cloudflare.com``
* ``neil.ns.cloudflare.com``
Press ``Update`` then ``Checkout`` for payment
-------------------------------------------------------------------------
You will verify that ye have a connection to Ireland
-------------------------------------------------------------------------
Your Student ID will work for this
-------------------------------------------------------------------------
Couldnt find a name that suited you in ASCII text?
-------------------------------------------------------------------------
Have no fear!
-------------------------------------------------------------------------
## Punycode to the rescue!
-------------------------------------------------------------------------
Say you want ``brend&aacute;n.ie``
2024-04-02 23:39:45 +01:00
-------------------------------------------------------------------------
But because of the ``&aacute;`` it is not a "normal" domain.
2024-04-02 23:39:45 +01:00
-------------------------------------------------------------------------
Go to <<https://www.punycoder.com/>> and enter in your special domain
-------------------------------------------------------------------------
Boom: ``xn--brendn-tta.ie``
-------------------------------------------------------------------------
Or say ye wanted to go wild and have an Ogham domain name?
-------------------------------------------------------------------------
``&#x1681;&#x168f;&#x1693;&#x1685;&#x1687;&#x1690;&#x1685;.com`` for example (brendan in Ogham)
2024-04-02 23:39:45 +01:00
[0]: https://gitlab.skynet.ie/compsoc1/compsoc/presentations/presentations/-/blob/ceb346fe8e8dfc553fff520de7864e96236e887a/src/slides/compsoc/1_domains-dns-oh-no.md#L163
2024-04-02 23:39:45 +01:00
-------------------------------------------------------------------------
``&#x1681;&#x168f;&#x1693;&#x1685;&#x1687;&#x1690;&#x1685;.com`` becomes ``xn--7ueiah2bis.com``
2024-04-02 23:39:45 +01:00
-------------------------------------------------------------------------
Magic!
-------------------------------------------------------------------------
And congrats! You now have a domain.
-------------------------------------------------------------------------
As we saw in the earlier slides a domain points to an IP address.
-------------------------------------------------------------------------
Ye can point your domain to another domain.
-------------------------------------------------------------------------
These go to the same location
* <<https://brendan.ie>>
* <<https://brendan.coffee>>
2024-04-02 06:14:06 +01:00
-------------------------------------------------------------------------
2024-04-02 23:39:45 +01:00
So anyone in CS4116 would love to point
<<https://hi-conor-ryan-give-me-a1.ie>>
To their InfinityFree instance
2024-04-02 06:14:06 +01:00
-------------------------------------------------------------------------
2024-04-02 23:39:45 +01:00
## For that we need DNS
InfinityFree has their own [(good) docs][1] for this.
But I prefer to use [CNAME for this][2]
[1]: https://forum.infinityfree.com/docs?topic=49232
[2]: https://forum.infinityfree.com/docs?topic=87420
2024-04-02 06:14:06 +01:00
-------------------------------------------------------------------------
2024-04-02 23:39:45 +01:00
Cloudflare is one of teh best DNS providers
2024-04-02 06:14:06 +01:00
-------------------------------------------------------------------------
2024-04-02 23:39:45 +01:00
<<https://cloudflare.com>>
2024-04-02 06:14:06 +01:00
-------------------------------------------------------------------------
2024-04-02 23:39:45 +01:00
Signup, you should know how to do this.....
-------------------------------------------------------------------------
On teh homepage select ``Add a site``
![img.png](1_domains/img03.png)
2024-04-02 06:14:06 +01:00
-------------------------------------------------------------------------
2024-04-02 23:39:45 +01:00
Enter in your domain (``hi-conor-ryan-give-me-a1.ie``)
2024-04-02 06:14:06 +01:00
-------------------------------------------------------------------------
2024-04-02 23:39:45 +01:00
Will take little while for it to be activated.
2024-04-02 06:14:06 +01:00
-------------------------------------------------------------------------
2024-04-02 23:39:45 +01:00
So go make a cuppa.
2024-04-02 06:14:06 +01:00
-------------------------------------------------------------------------
2024-04-02 23:39:45 +01:00
If ye are using InfinityFree checkout their [CNAME docs][2]
-------------------------------------------------------------------------
2024-04-02 06:14:06 +01:00
2024-04-02 23:39:45 +01:00
Thats kinda the end of this, it is targeted to CS4116.