Hi all, all the tutorials I find on the Internet do not answer my question.

I have Windows Server 2022 on which I want to run my website. So far, I have used hosting, e.g. Bluehost, where parking a domain is child’s play. How to create a name server on Windows Server where I can later park my domain? For example:

ns1.mydomain.com ns2.mydomain.com

I have symmetrical Internet access with static IP address. All the tutorials I find on the Internet describe how to create a DNS server for a local network, and I need to “open myself to the world”.

Secondly, is it possible to create two name servers so that each leads to the same IP address but to two different websites? For example:

ns1.nameserver.com and ns2.nameserver.com ———> 137.220.. ———> 192.168..* ——-> website 1

And

ns1.secondary.com, ns2.secondary.com ——-> 137.220.. ———> 192.168..* ——-> website 2

Thank you in advance for your help, but I’m a complete noob in this matter and I would really like to learn how to configure it.

  • @WhyYesZoidberg
    link
    English
    11 year ago

    So if you want to host the zone yourself you first need to register a domain name (test.com).

    At the registrar you then enter the glue hostname and ip: ns1.test.com 137.220.xxx.yyy ns2.test.com 137.220.xxx.yyy

    Then you set up the zone on your server. Most documentation examples should work here. There’s not really any difference between external or internal addresses/domains.

    Obviously you need to open up udp/53 traffic to your server.

    This is hopefully enough to get you started.

    Regarding different websites - you don’t set up different name servers for this. Your web server handles it for you. Check out vhosts. You set up different binds and target each bind to a specific website. There should be plenty documentation available for vhosts and iis