First (probably obvious but…) observation was that changes in settings are propagated
really in terms of hours, not sooner [smile o]
After spending some time with help of GitHub documentation
and some blog posts similar to this one I got the following settings started to work.
Note
|
Documentation recommends using ALIAS DNS record for apex domain settings than
A record but ALIAS is not available in DNS settings of my provider.
I just took a cz domain from first offer came from Google search at http://domena.cz.
|
@ IN SOA ns1.ignum.com. hostmaster.ignum.cz. 2017020502 10800 3600 604800 3600
@ IN A 192.30.252.153
@ IN A 192.30.252.154
blog IN CNAME ochaloup.github.io.
www IN CNAME ochaloup.github.io.
@ IN NS ns1.ignum.com.
@ IN NS ns2.ignum.com.
@ IN TXT "v=spf1 include:_spf.ignum.cz ~all"
_autodiscover._tcp IN SRV 0 0 443 nmrdiscover.ignum.cz.
For more information on SOA
, NS
and TXT
record check some DNS documentation.
Here briefly what I understood - SOA
is compulsory, defines who is responsible
for domain, NS
is required by my provider here and defines where name servers
for this domains are, TXT
serves information about the server (e.g. dns account info).
Now the A
records are needed for apex domain chalda.cz
redirection works.
It points to GitHub DNS servers diretly.
The blog
(for redirect to project page) uses CNAME
record
and points to my github.io
.
Finally www
CNAME
record serves to get available my user page at domain
http://chalda.cz and http://www.chalda.cz. (TODO: here does not work or what?)
When I start to play with setup I found out two tools helpful.
-
command dig
- dig chalda.cz
. With a more consense output
dig chalda.cz +nostats +nocomments +nocmd
-
Chrome developer tools (Ctrl+Shift+I) - got to tab Network, enable checkbox Preserve log
and go to e.g. http://ochaloup.github.io. You can see in headers that you were redirected
to http://chalda.cz by 301 Moved Permanently
. If you do some changes then info that the page
was moved permanently is remembered in browser cache and browser then directly shows you the http://chalda.cz
without consultation with DNS server (301 Moved Permanently (from disk cache)
). To workaround that clear
the Chrome’s cache - go to chrome://net-internals
, click a small down pointing arrow in right corner
and choose Tools → Clear cache from drop down menu.