โ† Back to portfolio

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.

Remember: Registering a domain does not automatically create a website. You also need somewhere to host your website โ€” for example, GitHub Pages.

Steps to follow

  1. Register your free .com.np domain

    The official portal is register.com.np for Nepal's .np domains.

    1. Check availability
    • 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.
    2. Create an account
    • 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.
    3. Prepare the required documents
    • 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.
  2. 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.
  3. 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.com and bob.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.
  4. Connect Cloudflare nameservers to your .com.np domain

    This is the most important connection step.

    • Go back to your register.com.np account.
    • Open the domain management or modification section.
    • Find the nameserver settings.
    • Enter the two nameservers provided by Cloudflare.
    • Save or submit the modification.
    FieldExample value
    Primary nameserveralice.ns.cloudflare.com
    Secondary nameserverbob.ns.cloudflare.com

    Use 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.

  5. 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. https://yourusername.github.io/portfolio/.

    In GitHub
    • Open your repository and go to Settings.
    • Find Pages.
    • Enter your custom domain in the Custom domain field.
    • Save the changes.
    In Cloudflare โ†’ DNS โ†’ Records

    Add the records required by GitHub Pages. For a root domain, the typical records are:

    TypeNameValue
    A@185.199.108.153
    A@185.199.109.153
    A@185.199.110.153
    A@185.199.111.153
    CNAMEwwwyourusername.github.io
    These are GitHub Pages configuration examples. Follow GitHub's current custom-domain instructions and use the records it specifies for your repository.
  6. 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.
  7. See how everything works together

    Register your domainregister.com.np โ€” sunitatamang.com.np
    CloudflareDNS management and security
    GitHub PagesHosts your portfolio website
    VisitorsOpen sunitatamang.com.np
  8. Purpose of each platform

    PlatformMain purposeCost
    register.com.npRegister your .com.np domain nameFree registration
    CloudflareDNS management, security, HTTPS optionsFree plan
    GitHub PagesHosts your portfolio website filesFree