DNSmasq on 2 interfacesSetting up dnsmasq for a local networkUsing dnsmasq for accessing multiple nameservers assigned by DHCPSecuring dnsmasq - interface(s)?DNS queries fail from local machine running dnsmasqApache2 Vhosts and DnsMasq, unable to access website from another computer over LAN : ERR_CONNECTION_REFUSEDDHCP (dnsmasq) assigns wrong IP (after openSUSE upgrade)DNSMasq doesn't resolve non-routable IPs on public domain namesdnsmasq: Block manipulated dns responses pointing at captive portal siteSplit nameservers in dnsmasq configurationdnsmasq: stuck in DHCPOFFER after 29 clients

Gambler's Fallacy Dice

Can I modify the report menu?

Have GoT's showrunners reacted to the poor reception of the final season?

Good examples of "two is easy, three is hard" in computational sciences

Why would you put your input amplifier in front of your filtering for and ECG signal?

How do I balance a campaign consisting of four kobold PCs?

How come Arya Stark wasn't hurt by this in Game of Thrones Season 8 Episode 5?

Why can't I share a one use code with anyone else?

How many Dothraki are left as of Game of Thrones S8E5?

Divisor Rich and Poor Numbers

Using `printf` to print variable containing `%` percent sign results in "bash: printf: `p': invalid format character"

Why is the S-duct intake on the Tu-154 uniquely oblong?

Cycling to work - 30mile return

Are spiritual pleasures > carnal pleasures, according to Catholicism?

Shortest amud or daf in Shas?

How to get all possible paths in 0/1 matrix better way?

Error when running ((x++)) as root

Physically unpleasant work environment

Why does string strummed with finger sound different from the one strummed with pick?

Why does Taylor’s series “work”?

Combining two Lorentz boosts

The underlying space of an affine open dense subscheme

Pedaling at different gear ratios on flat terrain: what's the point?

Told to apply for UK visa before other visas



DNSmasq on 2 interfaces


Setting up dnsmasq for a local networkUsing dnsmasq for accessing multiple nameservers assigned by DHCPSecuring dnsmasq - interface(s)?DNS queries fail from local machine running dnsmasqApache2 Vhosts and DnsMasq, unable to access website from another computer over LAN : ERR_CONNECTION_REFUSEDDHCP (dnsmasq) assigns wrong IP (after openSUSE upgrade)DNSMasq doesn't resolve non-routable IPs on public domain namesdnsmasq: Block manipulated dns responses pointing at captive portal siteSplit nameservers in dnsmasq configurationdnsmasq: stuck in DHCPOFFER after 29 clients






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















SysInfo:



  • ubuntu 18.04

  • external access point (with its own internal linux system) => interface ap1, IP: 192.168.13.1

  • external access point (USB stick) => interface ap0, IP: 192.168.12.1


  • hostapd running on ap0


  • dnsmasq running without being binded to any interface bc I need it to work on both interfaces

  • DNS must work on local-network only.

The problem is that when I connect through the ap1 and type "mydomain.com" on my browser it's not working unless I have the USB stick (ap0) attached and working.



IDK if the issue is with hostapd itself or dnsmasq.



My dnsmasq.conf:



localise-queries
resolv-file=/etc/dnsmasq.resolv.conf
no-hosts
addn-hosts=/etc/my.hosts
dhcp-range=192.168.12.20,192.168.12.150,255.255.255.0,12h
dhcp-range=192.168.13.20,192.168.13.150,255.255.255.0,12h
dhcp-option=option:domain-search,local
bind-dynamic


The addresses in the my.hosts file are setup like this:



<IP>t<DOMAIN>


In that file I have all the addresses for both interfaces 192.168.12.1 and 192.168.13.1)



How do I make it work for both interfaces?



Ask for any extra information.










share|improve this question




























    0















    SysInfo:



    • ubuntu 18.04

    • external access point (with its own internal linux system) => interface ap1, IP: 192.168.13.1

    • external access point (USB stick) => interface ap0, IP: 192.168.12.1


    • hostapd running on ap0


    • dnsmasq running without being binded to any interface bc I need it to work on both interfaces

    • DNS must work on local-network only.

    The problem is that when I connect through the ap1 and type "mydomain.com" on my browser it's not working unless I have the USB stick (ap0) attached and working.



    IDK if the issue is with hostapd itself or dnsmasq.



    My dnsmasq.conf:



    localise-queries
    resolv-file=/etc/dnsmasq.resolv.conf
    no-hosts
    addn-hosts=/etc/my.hosts
    dhcp-range=192.168.12.20,192.168.12.150,255.255.255.0,12h
    dhcp-range=192.168.13.20,192.168.13.150,255.255.255.0,12h
    dhcp-option=option:domain-search,local
    bind-dynamic


    The addresses in the my.hosts file are setup like this:



    <IP>t<DOMAIN>


    In that file I have all the addresses for both interfaces 192.168.12.1 and 192.168.13.1)



    How do I make it work for both interfaces?



    Ask for any extra information.










    share|improve this question
























      0












      0








      0








      SysInfo:



      • ubuntu 18.04

      • external access point (with its own internal linux system) => interface ap1, IP: 192.168.13.1

      • external access point (USB stick) => interface ap0, IP: 192.168.12.1


      • hostapd running on ap0


      • dnsmasq running without being binded to any interface bc I need it to work on both interfaces

      • DNS must work on local-network only.

      The problem is that when I connect through the ap1 and type "mydomain.com" on my browser it's not working unless I have the USB stick (ap0) attached and working.



      IDK if the issue is with hostapd itself or dnsmasq.



      My dnsmasq.conf:



      localise-queries
      resolv-file=/etc/dnsmasq.resolv.conf
      no-hosts
      addn-hosts=/etc/my.hosts
      dhcp-range=192.168.12.20,192.168.12.150,255.255.255.0,12h
      dhcp-range=192.168.13.20,192.168.13.150,255.255.255.0,12h
      dhcp-option=option:domain-search,local
      bind-dynamic


      The addresses in the my.hosts file are setup like this:



      <IP>t<DOMAIN>


      In that file I have all the addresses for both interfaces 192.168.12.1 and 192.168.13.1)



      How do I make it work for both interfaces?



      Ask for any extra information.










      share|improve this question














      SysInfo:



      • ubuntu 18.04

      • external access point (with its own internal linux system) => interface ap1, IP: 192.168.13.1

      • external access point (USB stick) => interface ap0, IP: 192.168.12.1


      • hostapd running on ap0


      • dnsmasq running without being binded to any interface bc I need it to work on both interfaces

      • DNS must work on local-network only.

      The problem is that when I connect through the ap1 and type "mydomain.com" on my browser it's not working unless I have the USB stick (ap0) attached and working.



      IDK if the issue is with hostapd itself or dnsmasq.



      My dnsmasq.conf:



      localise-queries
      resolv-file=/etc/dnsmasq.resolv.conf
      no-hosts
      addn-hosts=/etc/my.hosts
      dhcp-range=192.168.12.20,192.168.12.150,255.255.255.0,12h
      dhcp-range=192.168.13.20,192.168.13.150,255.255.255.0,12h
      dhcp-option=option:domain-search,local
      bind-dynamic


      The addresses in the my.hosts file are setup like this:



      <IP>t<DOMAIN>


      In that file I have all the addresses for both interfaces 192.168.12.1 and 192.168.13.1)



      How do I make it work for both interfaces?



      Ask for any extra information.







      local-area-network dnsmasq hostapd






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 4 at 12:23









      ZioCainZioCain

      34




      34




















          1 Answer
          1






          active

          oldest

          votes


















          0














          You need to specify dnsmasq which interface to use what network. You can do this with below change in your dnsmasq.conf file:



          dhcp-range=ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
          dhcp-range=ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h


          or,



          dhcp-range=interface:ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
          dhcp-range=interface:ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h





          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "2"
            ;
            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%2fserverfault.com%2fquestions%2f952220%2fdnsmasq-on-2-interfaces%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














            You need to specify dnsmasq which interface to use what network. You can do this with below change in your dnsmasq.conf file:



            dhcp-range=ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
            dhcp-range=ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h


            or,



            dhcp-range=interface:ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
            dhcp-range=interface:ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h





            share|improve this answer



























              0














              You need to specify dnsmasq which interface to use what network. You can do this with below change in your dnsmasq.conf file:



              dhcp-range=ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
              dhcp-range=ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h


              or,



              dhcp-range=interface:ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
              dhcp-range=interface:ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h





              share|improve this answer

























                0












                0








                0







                You need to specify dnsmasq which interface to use what network. You can do this with below change in your dnsmasq.conf file:



                dhcp-range=ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
                dhcp-range=ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h


                or,



                dhcp-range=interface:ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
                dhcp-range=interface:ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h





                share|improve this answer













                You need to specify dnsmasq which interface to use what network. You can do this with below change in your dnsmasq.conf file:



                dhcp-range=ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
                dhcp-range=ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h


                or,



                dhcp-range=interface:ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
                dhcp-range=interface:ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 6 at 0:59









                ChandanKChandanK

                1913




                1913



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Server Fault!


                    • 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%2fserverfault.com%2fquestions%2f952220%2fdnsmasq-on-2-interfaces%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

                    How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

                    What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

                    Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos