Using a private domain to connect with a server












1















I'm a bit struggling with using a domain to connect a domain with my server. First of all, I'm using a Debian Linux(of course actually Raspbian, because the server is running on Raspberry Pi 3).



Let's suppose my domain is lalala.co.kr(bought from a domain provider) and my IP is 1.1.1.1. I found that Raspberry Pi can have a DNS server, but I don't think the DNS will help establishing connection with those(domain and IP).



To explain, My domain provider has some of 'name servers'. They have 'Change name server' option for a domain, and if I use their 'name servers' and make some A records for 'name server hosting' then I can make a connection with those.



However I cannot come up with configuring 'name server' and making A records in Raspberry Pi's own.



Let's suppose that the domain provider's name server IP is 2.2.2.2. How can I solve this problem? I want to not use the domain provider's default name server config, because this cause some money expenses. I'm really confused with some networking concepts. I'll appreciate for some intuitions for solving this problem. The server can be connected by using direct IP connection(which means the server is externally open for some web ports and DNS port).



If I gave insufficient informations, please ask to provide them.










share|improve this question



























    1















    I'm a bit struggling with using a domain to connect a domain with my server. First of all, I'm using a Debian Linux(of course actually Raspbian, because the server is running on Raspberry Pi 3).



    Let's suppose my domain is lalala.co.kr(bought from a domain provider) and my IP is 1.1.1.1. I found that Raspberry Pi can have a DNS server, but I don't think the DNS will help establishing connection with those(domain and IP).



    To explain, My domain provider has some of 'name servers'. They have 'Change name server' option for a domain, and if I use their 'name servers' and make some A records for 'name server hosting' then I can make a connection with those.



    However I cannot come up with configuring 'name server' and making A records in Raspberry Pi's own.



    Let's suppose that the domain provider's name server IP is 2.2.2.2. How can I solve this problem? I want to not use the domain provider's default name server config, because this cause some money expenses. I'm really confused with some networking concepts. I'll appreciate for some intuitions for solving this problem. The server can be connected by using direct IP connection(which means the server is externally open for some web ports and DNS port).



    If I gave insufficient informations, please ask to provide them.










    share|improve this question

























      1












      1








      1








      I'm a bit struggling with using a domain to connect a domain with my server. First of all, I'm using a Debian Linux(of course actually Raspbian, because the server is running on Raspberry Pi 3).



      Let's suppose my domain is lalala.co.kr(bought from a domain provider) and my IP is 1.1.1.1. I found that Raspberry Pi can have a DNS server, but I don't think the DNS will help establishing connection with those(domain and IP).



      To explain, My domain provider has some of 'name servers'. They have 'Change name server' option for a domain, and if I use their 'name servers' and make some A records for 'name server hosting' then I can make a connection with those.



      However I cannot come up with configuring 'name server' and making A records in Raspberry Pi's own.



      Let's suppose that the domain provider's name server IP is 2.2.2.2. How can I solve this problem? I want to not use the domain provider's default name server config, because this cause some money expenses. I'm really confused with some networking concepts. I'll appreciate for some intuitions for solving this problem. The server can be connected by using direct IP connection(which means the server is externally open for some web ports and DNS port).



      If I gave insufficient informations, please ask to provide them.










      share|improve this question














      I'm a bit struggling with using a domain to connect a domain with my server. First of all, I'm using a Debian Linux(of course actually Raspbian, because the server is running on Raspberry Pi 3).



      Let's suppose my domain is lalala.co.kr(bought from a domain provider) and my IP is 1.1.1.1. I found that Raspberry Pi can have a DNS server, but I don't think the DNS will help establishing connection with those(domain and IP).



      To explain, My domain provider has some of 'name servers'. They have 'Change name server' option for a domain, and if I use their 'name servers' and make some A records for 'name server hosting' then I can make a connection with those.



      However I cannot come up with configuring 'name server' and making A records in Raspberry Pi's own.



      Let's suppose that the domain provider's name server IP is 2.2.2.2. How can I solve this problem? I want to not use the domain provider's default name server config, because this cause some money expenses. I'm really confused with some networking concepts. I'll appreciate for some intuitions for solving this problem. The server can be connected by using direct IP connection(which means the server is externally open for some web ports and DNS port).



      If I gave insufficient informations, please ask to provide them.







      dns raspberry-pi raspbian nameserver






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 22 at 7:32









      Chanho JeonChanho Jeon

      82




      82






















          1 Answer
          1






          active

          oldest

          votes


















          0















          I don't think the DNS will help establishing connection with those(domain and IP).




          That's actually literally what DNS does.




          To explain, My domain provider has some of 'name servers'. They have 'Change name server' option for a domain, and if I use their 'name servers' and make some A records for 'name server hosting' then I can make a connection with those.



          However I cannot come up with configuring 'name server' and making A records in Raspberry Pi's own.




          A 'name server' is a DNS server. You can use software such as BIND 9, PowerDNS, Knot, or NSD to host your own nameserver.




          1. First install the DNS server software and create a new 'zone' for your domain.



          2. Create a 'zone file' that contains your A/AAAA/NS/etc. records. Don't forget to add an NS record pointing to the Pi's hostname. For example:



            $ORIGIN example.com.

            @ SOA ...
            @ NS mypi
            mypi A 192.0.2.1
            mypi AAAA ...


            (Some programs can keep the DNS records in a database, if you want, but nearly all of them also support a plain text-based format.)



          3. Test from outside, by using such commands as dig @<your_ip> example.com or nslookup example.com <your_ip>.



          4. Go to your domain registrar's "Change name server" page and enter your Pi's hostname there (e.g. mypi.example.com). Because it's under the same domain, you also need to enter its IP address alongside, thus creating a "glue record". For example:






          5. Wait a while for the registrar to submit your changes to the registry, and for the registry to update their nameservers, and for old cached entries on your ISP's resolvers to expire...



            This might take anywhere from minutes to several days. You can use a tool like dnstrace -s . example.com to check whether the nameserver information has been updated. (A web version is available through "DNS Auth Trace" in this page.)




          You now have a self-hosted domain.






          share|improve this answer


























          • I made a quite good DNS server with your answer but I think actually the domain port is blocked(used WireShark but the WS got no response from any other external computers). Anyway I configured the server successfully and I will have to find the solution for 53 port issue. Thank you.

            – Chanho Jeon
            Jan 22 at 10:40











          • Check your router first (DNS is primarily UDP-based, so if you use port-forwarding, be sure to forward TCP 53 and UDP 53). And try calling your ISP, they might be preemptively blocking it to avoid "open resolver" problems.

            – grawity
            Jan 22 at 11:17













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396910%2fusing-a-private-domain-to-connect-with-a-server%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0















          I don't think the DNS will help establishing connection with those(domain and IP).




          That's actually literally what DNS does.




          To explain, My domain provider has some of 'name servers'. They have 'Change name server' option for a domain, and if I use their 'name servers' and make some A records for 'name server hosting' then I can make a connection with those.



          However I cannot come up with configuring 'name server' and making A records in Raspberry Pi's own.




          A 'name server' is a DNS server. You can use software such as BIND 9, PowerDNS, Knot, or NSD to host your own nameserver.




          1. First install the DNS server software and create a new 'zone' for your domain.



          2. Create a 'zone file' that contains your A/AAAA/NS/etc. records. Don't forget to add an NS record pointing to the Pi's hostname. For example:



            $ORIGIN example.com.

            @ SOA ...
            @ NS mypi
            mypi A 192.0.2.1
            mypi AAAA ...


            (Some programs can keep the DNS records in a database, if you want, but nearly all of them also support a plain text-based format.)



          3. Test from outside, by using such commands as dig @<your_ip> example.com or nslookup example.com <your_ip>.



          4. Go to your domain registrar's "Change name server" page and enter your Pi's hostname there (e.g. mypi.example.com). Because it's under the same domain, you also need to enter its IP address alongside, thus creating a "glue record". For example:






          5. Wait a while for the registrar to submit your changes to the registry, and for the registry to update their nameservers, and for old cached entries on your ISP's resolvers to expire...



            This might take anywhere from minutes to several days. You can use a tool like dnstrace -s . example.com to check whether the nameserver information has been updated. (A web version is available through "DNS Auth Trace" in this page.)




          You now have a self-hosted domain.






          share|improve this answer


























          • I made a quite good DNS server with your answer but I think actually the domain port is blocked(used WireShark but the WS got no response from any other external computers). Anyway I configured the server successfully and I will have to find the solution for 53 port issue. Thank you.

            – Chanho Jeon
            Jan 22 at 10:40











          • Check your router first (DNS is primarily UDP-based, so if you use port-forwarding, be sure to forward TCP 53 and UDP 53). And try calling your ISP, they might be preemptively blocking it to avoid "open resolver" problems.

            – grawity
            Jan 22 at 11:17


















          0















          I don't think the DNS will help establishing connection with those(domain and IP).




          That's actually literally what DNS does.




          To explain, My domain provider has some of 'name servers'. They have 'Change name server' option for a domain, and if I use their 'name servers' and make some A records for 'name server hosting' then I can make a connection with those.



          However I cannot come up with configuring 'name server' and making A records in Raspberry Pi's own.




          A 'name server' is a DNS server. You can use software such as BIND 9, PowerDNS, Knot, or NSD to host your own nameserver.




          1. First install the DNS server software and create a new 'zone' for your domain.



          2. Create a 'zone file' that contains your A/AAAA/NS/etc. records. Don't forget to add an NS record pointing to the Pi's hostname. For example:



            $ORIGIN example.com.

            @ SOA ...
            @ NS mypi
            mypi A 192.0.2.1
            mypi AAAA ...


            (Some programs can keep the DNS records in a database, if you want, but nearly all of them also support a plain text-based format.)



          3. Test from outside, by using such commands as dig @<your_ip> example.com or nslookup example.com <your_ip>.



          4. Go to your domain registrar's "Change name server" page and enter your Pi's hostname there (e.g. mypi.example.com). Because it's under the same domain, you also need to enter its IP address alongside, thus creating a "glue record". For example:






          5. Wait a while for the registrar to submit your changes to the registry, and for the registry to update their nameservers, and for old cached entries on your ISP's resolvers to expire...



            This might take anywhere from minutes to several days. You can use a tool like dnstrace -s . example.com to check whether the nameserver information has been updated. (A web version is available through "DNS Auth Trace" in this page.)




          You now have a self-hosted domain.






          share|improve this answer


























          • I made a quite good DNS server with your answer but I think actually the domain port is blocked(used WireShark but the WS got no response from any other external computers). Anyway I configured the server successfully and I will have to find the solution for 53 port issue. Thank you.

            – Chanho Jeon
            Jan 22 at 10:40











          • Check your router first (DNS is primarily UDP-based, so if you use port-forwarding, be sure to forward TCP 53 and UDP 53). And try calling your ISP, they might be preemptively blocking it to avoid "open resolver" problems.

            – grawity
            Jan 22 at 11:17
















          0












          0








          0








          I don't think the DNS will help establishing connection with those(domain and IP).




          That's actually literally what DNS does.




          To explain, My domain provider has some of 'name servers'. They have 'Change name server' option for a domain, and if I use their 'name servers' and make some A records for 'name server hosting' then I can make a connection with those.



          However I cannot come up with configuring 'name server' and making A records in Raspberry Pi's own.




          A 'name server' is a DNS server. You can use software such as BIND 9, PowerDNS, Knot, or NSD to host your own nameserver.




          1. First install the DNS server software and create a new 'zone' for your domain.



          2. Create a 'zone file' that contains your A/AAAA/NS/etc. records. Don't forget to add an NS record pointing to the Pi's hostname. For example:



            $ORIGIN example.com.

            @ SOA ...
            @ NS mypi
            mypi A 192.0.2.1
            mypi AAAA ...


            (Some programs can keep the DNS records in a database, if you want, but nearly all of them also support a plain text-based format.)



          3. Test from outside, by using such commands as dig @<your_ip> example.com or nslookup example.com <your_ip>.



          4. Go to your domain registrar's "Change name server" page and enter your Pi's hostname there (e.g. mypi.example.com). Because it's under the same domain, you also need to enter its IP address alongside, thus creating a "glue record". For example:






          5. Wait a while for the registrar to submit your changes to the registry, and for the registry to update their nameservers, and for old cached entries on your ISP's resolvers to expire...



            This might take anywhere from minutes to several days. You can use a tool like dnstrace -s . example.com to check whether the nameserver information has been updated. (A web version is available through "DNS Auth Trace" in this page.)




          You now have a self-hosted domain.






          share|improve this answer
















          I don't think the DNS will help establishing connection with those(domain and IP).




          That's actually literally what DNS does.




          To explain, My domain provider has some of 'name servers'. They have 'Change name server' option for a domain, and if I use their 'name servers' and make some A records for 'name server hosting' then I can make a connection with those.



          However I cannot come up with configuring 'name server' and making A records in Raspberry Pi's own.




          A 'name server' is a DNS server. You can use software such as BIND 9, PowerDNS, Knot, or NSD to host your own nameserver.




          1. First install the DNS server software and create a new 'zone' for your domain.



          2. Create a 'zone file' that contains your A/AAAA/NS/etc. records. Don't forget to add an NS record pointing to the Pi's hostname. For example:



            $ORIGIN example.com.

            @ SOA ...
            @ NS mypi
            mypi A 192.0.2.1
            mypi AAAA ...


            (Some programs can keep the DNS records in a database, if you want, but nearly all of them also support a plain text-based format.)



          3. Test from outside, by using such commands as dig @<your_ip> example.com or nslookup example.com <your_ip>.



          4. Go to your domain registrar's "Change name server" page and enter your Pi's hostname there (e.g. mypi.example.com). Because it's under the same domain, you also need to enter its IP address alongside, thus creating a "glue record". For example:






          5. Wait a while for the registrar to submit your changes to the registry, and for the registry to update their nameservers, and for old cached entries on your ISP's resolvers to expire...



            This might take anywhere from minutes to several days. You can use a tool like dnstrace -s . example.com to check whether the nameserver information has been updated. (A web version is available through "DNS Auth Trace" in this page.)




          You now have a self-hosted domain.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 22 at 8:32

























          answered Jan 22 at 8:26









          grawitygrawity

          241k37508562




          241k37508562













          • I made a quite good DNS server with your answer but I think actually the domain port is blocked(used WireShark but the WS got no response from any other external computers). Anyway I configured the server successfully and I will have to find the solution for 53 port issue. Thank you.

            – Chanho Jeon
            Jan 22 at 10:40











          • Check your router first (DNS is primarily UDP-based, so if you use port-forwarding, be sure to forward TCP 53 and UDP 53). And try calling your ISP, they might be preemptively blocking it to avoid "open resolver" problems.

            – grawity
            Jan 22 at 11:17





















          • I made a quite good DNS server with your answer but I think actually the domain port is blocked(used WireShark but the WS got no response from any other external computers). Anyway I configured the server successfully and I will have to find the solution for 53 port issue. Thank you.

            – Chanho Jeon
            Jan 22 at 10:40











          • Check your router first (DNS is primarily UDP-based, so if you use port-forwarding, be sure to forward TCP 53 and UDP 53). And try calling your ISP, they might be preemptively blocking it to avoid "open resolver" problems.

            – grawity
            Jan 22 at 11:17



















          I made a quite good DNS server with your answer but I think actually the domain port is blocked(used WireShark but the WS got no response from any other external computers). Anyway I configured the server successfully and I will have to find the solution for 53 port issue. Thank you.

          – Chanho Jeon
          Jan 22 at 10:40





          I made a quite good DNS server with your answer but I think actually the domain port is blocked(used WireShark but the WS got no response from any other external computers). Anyway I configured the server successfully and I will have to find the solution for 53 port issue. Thank you.

          – Chanho Jeon
          Jan 22 at 10:40













          Check your router first (DNS is primarily UDP-based, so if you use port-forwarding, be sure to forward TCP 53 and UDP 53). And try calling your ISP, they might be preemptively blocking it to avoid "open resolver" problems.

          – grawity
          Jan 22 at 11:17







          Check your router first (DNS is primarily UDP-based, so if you use port-forwarding, be sure to forward TCP 53 and UDP 53). And try calling your ISP, they might be preemptively blocking it to avoid "open resolver" problems.

          – grawity
          Jan 22 at 11:17




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396910%2fusing-a-private-domain-to-connect-with-a-server%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          Origin of the phrase “under your belt”?