Skip to content
Discussion options

You must be logged in to vote

Phase 1: Preparation on GitHub
Before touching your domain provider, you need to tell GitHub which domain to expect.

Open your GitHub repository and go to Settings.

On the left sidebar, click Pages.

Under the Custom domain section, type your domain (e.g., www.yourdomain.com) and click Save.

Note: This creates a CNAME file in your repository automatically.

Phase 2: Configure Your DNS Provider
Now you need to tell the "phonebook" of the internet (your DNS provider like Namecheap, GoDaddy, or Google Domains) to point to GitHub.

  1. Set up Apex Domains (example.com)
    To point your main domain to GitHub, you need to add A Records that point to GitHub’s IP addresses. Create four A records with the …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by alimohamed23484
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:other Discussions created outside of Community GitHub template
2 participants