Mobile app version of vmapp.org
Login or Join
Pierce454

: Custom domain GitHub and HostGator I've read all about my theme but just can't get trough! So, I have a website on GitHub and it is published as https://namesecondname.github.io/repositoryname/.

@Pierce454

Posted in: #Domains #Github #Hostgator #Nameserver

I've read all about my theme but just can't get trough!

So, I have a website on GitHub and it is published as namesecondname.github.io/repositoryname/. and I bought a domain on HostGator. I've made a CNAME in my gh-pages and the next step was to add namservers in my HostGator domain management. There I need to write nameservers and now I'm stuck! WHAT ARE ACTUALLY NAMESERVERS AT GITHUB?

What should I write there? I tried adding name.github.io and I've tried adding this link namesecondname.github.io/repositoryname/ and tried without http. BUT nothing happens. When I go to the domain I get their webpage that says "You are almost there blablabla" and they remain me I have no idea what I'm doing.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Pierce454

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jessie594

You do not need to change the DNS. If you did that, the CNAME and A records would be pushed to be handled by Github, and that is not how it works.

Add a CNAME file to your repository in the GitHub account.


Once you log into your GitHub account, click on your repository
name:
Then click on the + sign to add a new file to your repository:
Use CNAME for File Name and enter a domain you've purchased in the
first line of the editing section.
Then click on the Commit new file button at the bottom of the page:
Select Settings from the right sidebar:
In the GitHub Pages section, you should see your domain from the
CNAME file:


Back at Hostgator:

Here you will need to create three records for your domain:


A record for @ pointing to 192.30.252.153
A record for @ pointing to 192.30.252.154
CNAME record for www pointing to your username.github.io (the
username should be replaced with your actual GitHub account
username):

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme