Fail to point my domain through the resolv.conf file












0














I'm trying to connect my domain with my Ubuntu 18.04 server through the resolv.conf file.



I add the domain on cloudflare (it is already active) I create an A record to point the server IP and then I add those lines in the resolv.conf file.



resolv.conf



# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "systemd-resolve --status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

domain forrum.ro
glen.ns.cloudflare.com 62.210.69.189
zoe.ns.cloudflare.com 62.210.69.189
#search online.net


Please help me to find out why it isn't working. I did something wrong or I miss something?



Thanks :)










share|improve this question



























    0














    I'm trying to connect my domain with my Ubuntu 18.04 server through the resolv.conf file.



    I add the domain on cloudflare (it is already active) I create an A record to point the server IP and then I add those lines in the resolv.conf file.



    resolv.conf



    # This file is managed by man:systemd-resolved(8). Do not edit.
    #
    # This is a dynamic resolv.conf file for connecting local clients to the
    # internal DNS stub resolver of systemd-resolved. This file lists all
    # configured search domains.
    #
    # Run "systemd-resolve --status" to see details about the uplink DNS servers
    # currently in use.
    #
    # Third party programs must not access this file directly, but only through the
    # symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
    # replace this symlink by a static file or a different symlink.
    #
    # See man:systemd-resolved.service(8) for details about the supported modes of
    # operation for /etc/resolv.conf.

    domain forrum.ro
    glen.ns.cloudflare.com 62.210.69.189
    zoe.ns.cloudflare.com 62.210.69.189
    #search online.net


    Please help me to find out why it isn't working. I did something wrong or I miss something?



    Thanks :)










    share|improve this question

























      0












      0








      0







      I'm trying to connect my domain with my Ubuntu 18.04 server through the resolv.conf file.



      I add the domain on cloudflare (it is already active) I create an A record to point the server IP and then I add those lines in the resolv.conf file.



      resolv.conf



      # This file is managed by man:systemd-resolved(8). Do not edit.
      #
      # This is a dynamic resolv.conf file for connecting local clients to the
      # internal DNS stub resolver of systemd-resolved. This file lists all
      # configured search domains.
      #
      # Run "systemd-resolve --status" to see details about the uplink DNS servers
      # currently in use.
      #
      # Third party programs must not access this file directly, but only through the
      # symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
      # replace this symlink by a static file or a different symlink.
      #
      # See man:systemd-resolved.service(8) for details about the supported modes of
      # operation for /etc/resolv.conf.

      domain forrum.ro
      glen.ns.cloudflare.com 62.210.69.189
      zoe.ns.cloudflare.com 62.210.69.189
      #search online.net


      Please help me to find out why it isn't working. I did something wrong or I miss something?



      Thanks :)










      share|improve this question













      I'm trying to connect my domain with my Ubuntu 18.04 server through the resolv.conf file.



      I add the domain on cloudflare (it is already active) I create an A record to point the server IP and then I add those lines in the resolv.conf file.



      resolv.conf



      # This file is managed by man:systemd-resolved(8). Do not edit.
      #
      # This is a dynamic resolv.conf file for connecting local clients to the
      # internal DNS stub resolver of systemd-resolved. This file lists all
      # configured search domains.
      #
      # Run "systemd-resolve --status" to see details about the uplink DNS servers
      # currently in use.
      #
      # Third party programs must not access this file directly, but only through the
      # symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
      # replace this symlink by a static file or a different symlink.
      #
      # See man:systemd-resolved.service(8) for details about the supported modes of
      # operation for /etc/resolv.conf.

      domain forrum.ro
      glen.ns.cloudflare.com 62.210.69.189
      zoe.ns.cloudflare.com 62.210.69.189
      #search online.net


      Please help me to find out why it isn't working. I did something wrong or I miss something?



      Thanks :)







      18.04 dns resolv.conf domain-server






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 16 at 14:13









      Adrian

      12




      12






















          1 Answer
          1






          active

          oldest

          votes


















          1














          It's not working because you're adding it to /etc/resolv.conf.



          That's not how DNS works. To configure the nameservers for the domain, you should contact your registrar for information on how to configure DNS. This varies from domain registrar to domain registrar, and is a record housed in the DNS system, which you cannot modify directly. You have to go trough your registrar.



          To configure a host on DNS, you then configure a record on the nameservers you have assigned, in this case Cloudflare, that points to the IP of your server.






          share|improve this answer





















          • The domain registrat already changed the nameservers to glen and zoe.ns.cloudflare.com
            – Adrian
            Dec 16 at 15:15










          • What are you trying to achieve?
            – vidarlo
            Dec 16 at 15:16










          • To connect my domain with my server.
            – Adrian
            Dec 16 at 15:26










          • Then create an A (IPv4) or AAAA (IPv6) record at cloudflare.
            – vidarlo
            Dec 16 at 15:28










          • To point it to my server ip address right?
            – Adrian
            Dec 16 at 15:29











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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%2faskubuntu.com%2fquestions%2f1102326%2ffail-to-point-my-domain-through-the-resolv-conf-file%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









          1














          It's not working because you're adding it to /etc/resolv.conf.



          That's not how DNS works. To configure the nameservers for the domain, you should contact your registrar for information on how to configure DNS. This varies from domain registrar to domain registrar, and is a record housed in the DNS system, which you cannot modify directly. You have to go trough your registrar.



          To configure a host on DNS, you then configure a record on the nameservers you have assigned, in this case Cloudflare, that points to the IP of your server.






          share|improve this answer





















          • The domain registrat already changed the nameservers to glen and zoe.ns.cloudflare.com
            – Adrian
            Dec 16 at 15:15










          • What are you trying to achieve?
            – vidarlo
            Dec 16 at 15:16










          • To connect my domain with my server.
            – Adrian
            Dec 16 at 15:26










          • Then create an A (IPv4) or AAAA (IPv6) record at cloudflare.
            – vidarlo
            Dec 16 at 15:28










          • To point it to my server ip address right?
            – Adrian
            Dec 16 at 15:29
















          1














          It's not working because you're adding it to /etc/resolv.conf.



          That's not how DNS works. To configure the nameservers for the domain, you should contact your registrar for information on how to configure DNS. This varies from domain registrar to domain registrar, and is a record housed in the DNS system, which you cannot modify directly. You have to go trough your registrar.



          To configure a host on DNS, you then configure a record on the nameservers you have assigned, in this case Cloudflare, that points to the IP of your server.






          share|improve this answer





















          • The domain registrat already changed the nameservers to glen and zoe.ns.cloudflare.com
            – Adrian
            Dec 16 at 15:15










          • What are you trying to achieve?
            – vidarlo
            Dec 16 at 15:16










          • To connect my domain with my server.
            – Adrian
            Dec 16 at 15:26










          • Then create an A (IPv4) or AAAA (IPv6) record at cloudflare.
            – vidarlo
            Dec 16 at 15:28










          • To point it to my server ip address right?
            – Adrian
            Dec 16 at 15:29














          1












          1








          1






          It's not working because you're adding it to /etc/resolv.conf.



          That's not how DNS works. To configure the nameservers for the domain, you should contact your registrar for information on how to configure DNS. This varies from domain registrar to domain registrar, and is a record housed in the DNS system, which you cannot modify directly. You have to go trough your registrar.



          To configure a host on DNS, you then configure a record on the nameservers you have assigned, in this case Cloudflare, that points to the IP of your server.






          share|improve this answer












          It's not working because you're adding it to /etc/resolv.conf.



          That's not how DNS works. To configure the nameservers for the domain, you should contact your registrar for information on how to configure DNS. This varies from domain registrar to domain registrar, and is a record housed in the DNS system, which you cannot modify directly. You have to go trough your registrar.



          To configure a host on DNS, you then configure a record on the nameservers you have assigned, in this case Cloudflare, that points to the IP of your server.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 16 at 14:32









          vidarlo

          8,99342442




          8,99342442












          • The domain registrat already changed the nameservers to glen and zoe.ns.cloudflare.com
            – Adrian
            Dec 16 at 15:15










          • What are you trying to achieve?
            – vidarlo
            Dec 16 at 15:16










          • To connect my domain with my server.
            – Adrian
            Dec 16 at 15:26










          • Then create an A (IPv4) or AAAA (IPv6) record at cloudflare.
            – vidarlo
            Dec 16 at 15:28










          • To point it to my server ip address right?
            – Adrian
            Dec 16 at 15:29


















          • The domain registrat already changed the nameservers to glen and zoe.ns.cloudflare.com
            – Adrian
            Dec 16 at 15:15










          • What are you trying to achieve?
            – vidarlo
            Dec 16 at 15:16










          • To connect my domain with my server.
            – Adrian
            Dec 16 at 15:26










          • Then create an A (IPv4) or AAAA (IPv6) record at cloudflare.
            – vidarlo
            Dec 16 at 15:28










          • To point it to my server ip address right?
            – Adrian
            Dec 16 at 15:29
















          The domain registrat already changed the nameservers to glen and zoe.ns.cloudflare.com
          – Adrian
          Dec 16 at 15:15




          The domain registrat already changed the nameservers to glen and zoe.ns.cloudflare.com
          – Adrian
          Dec 16 at 15:15












          What are you trying to achieve?
          – vidarlo
          Dec 16 at 15:16




          What are you trying to achieve?
          – vidarlo
          Dec 16 at 15:16












          To connect my domain with my server.
          – Adrian
          Dec 16 at 15:26




          To connect my domain with my server.
          – Adrian
          Dec 16 at 15:26












          Then create an A (IPv4) or AAAA (IPv6) record at cloudflare.
          – vidarlo
          Dec 16 at 15:28




          Then create an A (IPv4) or AAAA (IPv6) record at cloudflare.
          – vidarlo
          Dec 16 at 15:28












          To point it to my server ip address right?
          – Adrian
          Dec 16 at 15:29




          To point it to my server ip address right?
          – Adrian
          Dec 16 at 15:29


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


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





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2faskubuntu.com%2fquestions%2f1102326%2ffail-to-point-my-domain-through-the-resolv-conf-file%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

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

          Eduardo VII do Reino Unido