dnsmasq redirection config rewrite to systemd-networkd configuration

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I updated my Ubuntu 16.04LTS to 18.04LTS, first I noticed that systemd-networkd is colliding with dnsmasq because it's using the port 53. After some research, I learned that the systemd-networkd is a system daemon that manages network configurations. Of course, I want to solve my problem with the native tools that come with the distro, therefore, I wanted to configure systemd-networkd to do the same thing my dnsmasq did, redirecting DNS queries to a specific name server.



For example, the configuration I was using in dnsmasq for redirecting all the request that came on 'intranet' were going over the '10.17.1.1' name server:



server=/intranet/10.17.1.1


I was trying to do something similar with the network configuration in systemd-networkd with the options "DNS" for the DNS server and "Domains" for the domain I want to resolve over the name server:



[Match]
Name=test
[Network]
DNS=10.17.1.1
Domains= ~intranet


I am not sure if its possible to actually do something like that in systemd-networkd and after reading the documentation and playing around with it I didn't come up with any solution, could someone help me with an example?







share|improve this question

























    up vote
    0
    down vote

    favorite












    I updated my Ubuntu 16.04LTS to 18.04LTS, first I noticed that systemd-networkd is colliding with dnsmasq because it's using the port 53. After some research, I learned that the systemd-networkd is a system daemon that manages network configurations. Of course, I want to solve my problem with the native tools that come with the distro, therefore, I wanted to configure systemd-networkd to do the same thing my dnsmasq did, redirecting DNS queries to a specific name server.



    For example, the configuration I was using in dnsmasq for redirecting all the request that came on 'intranet' were going over the '10.17.1.1' name server:



    server=/intranet/10.17.1.1


    I was trying to do something similar with the network configuration in systemd-networkd with the options "DNS" for the DNS server and "Domains" for the domain I want to resolve over the name server:



    [Match]
    Name=test
    [Network]
    DNS=10.17.1.1
    Domains= ~intranet


    I am not sure if its possible to actually do something like that in systemd-networkd and after reading the documentation and playing around with it I didn't come up with any solution, could someone help me with an example?







    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I updated my Ubuntu 16.04LTS to 18.04LTS, first I noticed that systemd-networkd is colliding with dnsmasq because it's using the port 53. After some research, I learned that the systemd-networkd is a system daemon that manages network configurations. Of course, I want to solve my problem with the native tools that come with the distro, therefore, I wanted to configure systemd-networkd to do the same thing my dnsmasq did, redirecting DNS queries to a specific name server.



      For example, the configuration I was using in dnsmasq for redirecting all the request that came on 'intranet' were going over the '10.17.1.1' name server:



      server=/intranet/10.17.1.1


      I was trying to do something similar with the network configuration in systemd-networkd with the options "DNS" for the DNS server and "Domains" for the domain I want to resolve over the name server:



      [Match]
      Name=test
      [Network]
      DNS=10.17.1.1
      Domains= ~intranet


      I am not sure if its possible to actually do something like that in systemd-networkd and after reading the documentation and playing around with it I didn't come up with any solution, could someone help me with an example?







      share|improve this question













      I updated my Ubuntu 16.04LTS to 18.04LTS, first I noticed that systemd-networkd is colliding with dnsmasq because it's using the port 53. After some research, I learned that the systemd-networkd is a system daemon that manages network configurations. Of course, I want to solve my problem with the native tools that come with the distro, therefore, I wanted to configure systemd-networkd to do the same thing my dnsmasq did, redirecting DNS queries to a specific name server.



      For example, the configuration I was using in dnsmasq for redirecting all the request that came on 'intranet' were going over the '10.17.1.1' name server:



      server=/intranet/10.17.1.1


      I was trying to do something similar with the network configuration in systemd-networkd with the options "DNS" for the DNS server and "Domains" for the domain I want to resolve over the name server:



      [Match]
      Name=test
      [Network]
      DNS=10.17.1.1
      Domains= ~intranet


      I am not sure if its possible to actually do something like that in systemd-networkd and after reading the documentation and playing around with it I didn't come up with any solution, could someone help me with an example?









      share|improve this question












      share|improve this question




      share|improve this question








      edited May 3 at 18:42
























      asked May 3 at 17:48









      mordax

      12




      12

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f441623%2fdnsmasq-redirection-config-rewrite-to-systemd-networkd-configuration%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f441623%2fdnsmasq-redirection-config-rewrite-to-systemd-networkd-configuration%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?