set router hostname for the DD-WRT router itself












0














I'm trying to set the hostname of a DD-WRT router on that DD-WRT router. I can set other local hostnames (using Static Leases section) but adding the DD-WRT router hostname to it's own mapping of name → IP results in failed name lookups.






I'm able to set hostnames for other hosts on the local network. I did this using by adding entries under Static Leases (under ServicesServicesServices ManagementDHCP ServerStatic Leases). Some other settings that might affect this are:





  • LAN Domain has string "mydomain"


  • Used Domain is "LAN & WLAN"


  • DNSMasq is Enable


  • Local DNS is Enable


  • Query DNS in Strict Order is Enable


For example, there is an Static Leases entry for "PC1". From a different local host I can successfully do



ping PC1.mydomain


Yet, a similar Static Leases entry "myrouter" exists for the LAN MAC of the DD-WRT router (yes, I am aware the DD-WRT LAN will not request a LAN-side IP via DHCP. The router has a static IP 192.168.1.1. I was trying this to achieve parity with the successful case).



I unsuccessfully tried adding to Additional DNSMasq Options



local=/mydomain/
expand-hosts


Then I restarted dnsmasq



$ stopservice dnsmasq
$ startservice dnsmasq


Yet, name lookup for myrouter.mydomain still fails



$ ping myrouter.mydomain
ping: myrouter.mydomain: Name or service not known





Oddly, I did not have this name lookup problem before a recent upgrade of the DD-WRT router.









share





























    0














    I'm trying to set the hostname of a DD-WRT router on that DD-WRT router. I can set other local hostnames (using Static Leases section) but adding the DD-WRT router hostname to it's own mapping of name → IP results in failed name lookups.






    I'm able to set hostnames for other hosts on the local network. I did this using by adding entries under Static Leases (under ServicesServicesServices ManagementDHCP ServerStatic Leases). Some other settings that might affect this are:





    • LAN Domain has string "mydomain"


    • Used Domain is "LAN & WLAN"


    • DNSMasq is Enable


    • Local DNS is Enable


    • Query DNS in Strict Order is Enable


    For example, there is an Static Leases entry for "PC1". From a different local host I can successfully do



    ping PC1.mydomain


    Yet, a similar Static Leases entry "myrouter" exists for the LAN MAC of the DD-WRT router (yes, I am aware the DD-WRT LAN will not request a LAN-side IP via DHCP. The router has a static IP 192.168.1.1. I was trying this to achieve parity with the successful case).



    I unsuccessfully tried adding to Additional DNSMasq Options



    local=/mydomain/
    expand-hosts


    Then I restarted dnsmasq



    $ stopservice dnsmasq
    $ startservice dnsmasq


    Yet, name lookup for myrouter.mydomain still fails



    $ ping myrouter.mydomain
    ping: myrouter.mydomain: Name or service not known





    Oddly, I did not have this name lookup problem before a recent upgrade of the DD-WRT router.









    share



























      0












      0








      0







      I'm trying to set the hostname of a DD-WRT router on that DD-WRT router. I can set other local hostnames (using Static Leases section) but adding the DD-WRT router hostname to it's own mapping of name → IP results in failed name lookups.






      I'm able to set hostnames for other hosts on the local network. I did this using by adding entries under Static Leases (under ServicesServicesServices ManagementDHCP ServerStatic Leases). Some other settings that might affect this are:





      • LAN Domain has string "mydomain"


      • Used Domain is "LAN & WLAN"


      • DNSMasq is Enable


      • Local DNS is Enable


      • Query DNS in Strict Order is Enable


      For example, there is an Static Leases entry for "PC1". From a different local host I can successfully do



      ping PC1.mydomain


      Yet, a similar Static Leases entry "myrouter" exists for the LAN MAC of the DD-WRT router (yes, I am aware the DD-WRT LAN will not request a LAN-side IP via DHCP. The router has a static IP 192.168.1.1. I was trying this to achieve parity with the successful case).



      I unsuccessfully tried adding to Additional DNSMasq Options



      local=/mydomain/
      expand-hosts


      Then I restarted dnsmasq



      $ stopservice dnsmasq
      $ startservice dnsmasq


      Yet, name lookup for myrouter.mydomain still fails



      $ ping myrouter.mydomain
      ping: myrouter.mydomain: Name or service not known





      Oddly, I did not have this name lookup problem before a recent upgrade of the DD-WRT router.









      share















      I'm trying to set the hostname of a DD-WRT router on that DD-WRT router. I can set other local hostnames (using Static Leases section) but adding the DD-WRT router hostname to it's own mapping of name → IP results in failed name lookups.






      I'm able to set hostnames for other hosts on the local network. I did this using by adding entries under Static Leases (under ServicesServicesServices ManagementDHCP ServerStatic Leases). Some other settings that might affect this are:





      • LAN Domain has string "mydomain"


      • Used Domain is "LAN & WLAN"


      • DNSMasq is Enable


      • Local DNS is Enable


      • Query DNS in Strict Order is Enable


      For example, there is an Static Leases entry for "PC1". From a different local host I can successfully do



      ping PC1.mydomain


      Yet, a similar Static Leases entry "myrouter" exists for the LAN MAC of the DD-WRT router (yes, I am aware the DD-WRT LAN will not request a LAN-side IP via DHCP. The router has a static IP 192.168.1.1. I was trying this to achieve parity with the successful case).



      I unsuccessfully tried adding to Additional DNSMasq Options



      local=/mydomain/
      expand-hosts


      Then I restarted dnsmasq



      $ stopservice dnsmasq
      $ startservice dnsmasq


      Yet, name lookup for myrouter.mydomain still fails



      $ ping myrouter.mydomain
      ping: myrouter.mydomain: Name or service not known





      Oddly, I did not have this name lookup problem before a recent upgrade of the DD-WRT router.







      dnsmasq dd-wrt





      share














      share












      share



      share








      edited 14 secs ago







      JamesThomasMoon1979

















      asked 5 mins ago









      JamesThomasMoon1979JamesThomasMoon1979

      257210




      257210






















          1 Answer
          1






          active

          oldest

          votes


















          0














          In section Additional DNSMasq Options (under ServicesServicesServices ManagementDHCP ServerStatic Leases), add the following line



          address=/myrouter.mydomain/192.168.1.1





          Suggestion is from this old forum post Associate Host Name with IP or MAC Address..Is it Possible? at forum.dd-wrt.com.





          share





















            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2funix.stackexchange.com%2fquestions%2f493112%2fset-router-hostname-for-the-dd-wrt-router-itself%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














            In section Additional DNSMasq Options (under ServicesServicesServices ManagementDHCP ServerStatic Leases), add the following line



            address=/myrouter.mydomain/192.168.1.1





            Suggestion is from this old forum post Associate Host Name with IP or MAC Address..Is it Possible? at forum.dd-wrt.com.





            share


























              0














              In section Additional DNSMasq Options (under ServicesServicesServices ManagementDHCP ServerStatic Leases), add the following line



              address=/myrouter.mydomain/192.168.1.1





              Suggestion is from this old forum post Associate Host Name with IP or MAC Address..Is it Possible? at forum.dd-wrt.com.





              share
























                0












                0








                0






                In section Additional DNSMasq Options (under ServicesServicesServices ManagementDHCP ServerStatic Leases), add the following line



                address=/myrouter.mydomain/192.168.1.1





                Suggestion is from this old forum post Associate Host Name with IP or MAC Address..Is it Possible? at forum.dd-wrt.com.





                share












                In section Additional DNSMasq Options (under ServicesServicesServices ManagementDHCP ServerStatic Leases), add the following line



                address=/myrouter.mydomain/192.168.1.1





                Suggestion is from this old forum post Associate Host Name with IP or MAC Address..Is it Possible? at forum.dd-wrt.com.






                share











                share


                share










                answered 5 mins ago









                JamesThomasMoon1979JamesThomasMoon1979

                257210




                257210






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f493112%2fset-router-hostname-for-the-dd-wrt-router-itself%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

                    CARDNET

                    Boot-repair Failure: Unable to locate package grub-common:i386

                    濃尾地震