Firstly, let's know about the domain name โ what it is, why we need it, why register in .com.np and cloudflare .
Domain name
A domain name is the unique address given to our website on the internet so that people can easily find and visit our website. We register a domain name in .com.np since it is a country code top-level domain (ccTLD) for Nepal, and it is free to register for Nepali citizens.
Cloudflare
Cloudflare is the tool we use to connect our domain to our website. Cloudflare provides nameservers, which in turn inform the hosting service about our domain.
Steps to follow
-
Register your free .com.np domain
The official portal is
1. Check availabilityregister.com.npfor Nepal's .np domains.- Open
register.com.np. - Find the domain search option ("Apply new domain").
- Enter your preferred name, e.g.
sunitatamang.com.np. - Click Search and check whether the domain is available.
- If someone has already registered it, try another suitable name.
- Click Register Now if the domain is available.
- Create an account using your email address.
- Enter the required information and verify your email.
- Log in to your account.
- Nepali citizenship certificate, passport, driving licence or another accepted identity document.
- A cover letter requesting registration of your preferred domain.
- Any other information requested by the portal.
Personal domains must be based on the applicant's name as shown in the identity document. Business domains have different documentation requirements.4. Fill in the application form- Domain name
- Applicant's name
- Administrative contact details
- Technical contact details
- Primary nameserver and secondary nameserver
- Supporting documents
Nameservers tell the internet which DNS service manages your domain. You get two nameservers from your DNS provider โ here, Cloudflare.
5. Submit your application- Check all your information.
- Upload the required documents.
- Submit the application and wait for review and approval.
- Open
-
Create a Cloudflare account
- Visit the official Cloudflare website.
- Click Sign Up.
- Enter your email and create a password.
- Verify your email address.
- Log in to your Cloudflare dashboard. The Free plan is enough.
-
Add your .com.np domain to Cloudflare
- Open your Cloudflare dashboard.
- Go to Domains.
- Select Onboard a domain.
- Enter your domain name, e.g.
sunitatamang.com.np. - Choose the option to add or scan DNS records.
- Choose the Free plan and continue.
Cloudflare will provide two nameservers, for example
alice.ns.cloudflare.comandbob.ns.cloudflare.com. These are only examples โ use the real ones shown in your account.Cloudflare needs to recognise your domain before it can onboard it. If it is not accepted before registration approval, finish registration first with an available DNS provider, then add the domain to Cloudflare and update the nameservers through the .np portal. -
Connect Cloudflare nameservers to your .com.np domain
This is the most important connection step.
- Go back to your
register.com.npaccount. - Open the domain management or modification section.
- Find the nameserver settings.
- Enter the two nameservers provided by Cloudflare.
- Save or submit the modification.
Field Example value Primary nameserver alice.ns.cloudflare.comSecondary nameserver bob.ns.cloudflare.comUse your actual Cloudflare nameservers, not the examples. After updating, wait for the change to take effect. Cloudflare shows the domain as Active when setup is complete.
- Go back to your
-
Connect your website to Cloudflare
The domain is now with Cloudflare, but Cloudflare still needs to know where your website is hosted. Here the portfolio is uploaded to GitHub, e.g.
In GitHubhttps://yourusername.github.io/portfolio/.- Open your repository and go to Settings.
- Find Pages.
- Enter your custom domain in the Custom domain field.
- Save the changes.
Add the records required by GitHub Pages. For a root domain, the typical records are:
Type Name Value A @ 185.199.108.153A @ 185.199.109.153A @ 185.199.110.153A @ 185.199.111.153CNAME www yourusername.github.ioThese are GitHub Pages configuration examples. Follow GitHub's current custom-domain instructions and use the records it specifies for your repository. -
Enable security and HTTPS
- Open Cloudflare and select your domain.
- Go to SSL/TLS.
- Check the SSL/TLS settings.
- Enable HTTPS on your hosting provider too โ GitHub Pages supports HTTPS.
Cloudflare also provides protection against malicious traffic, DNS management, DDoS protection, caching, performance features and SSL/TLS options.
For GitHub Pages, initially keep the DNS records as DNS only (grey cloud) while testing the custom domain and HTTPS. Explore Cloudflare proxy settings later. -
See how everything works together
Register your domainregister.com.np โ sunitatamang.com.npCloudflareDNS management and securityGitHub PagesHosts your portfolio websiteVisitorsOpen sunitatamang.com.np -
Purpose of each platform
Platform Main purpose Cost register.com.np Register your .com.np domain name Free registration Cloudflare DNS management, security, HTTPS options Free plan GitHub Pages Hosts your portfolio website files Free