NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

lbermudez's avatar
lbermudez
Aspirant
Mar 26, 2021

R6120 use local dns server

How can I use my own dns server for the other computers on my network without manual setting all my devices?

 

Advanced tab

setup

Internet setup

then found the line Domain Name server (DNS) Address

made blue the radio button use these DNS Servers

Primary Dns 192.168.2.9

Apply

 

Can not get internet. How ever if I change it to 1.1.1.1 but still use my own dns server I get internet. I have tested my own dns server out and know it is working. My dns server is pihole pointing to stubby

 

Any ideas

 

3 Replies

  • > Can not get internet. [...]

     

       Do you mean that outside-world DNS look-ups fail?  Or that
    connectivity is lost, or what?

     

    > [...] How ever if I change it to 1.1.1.1 but still use my own dns
    > server I get internet. [...]

     

       Huh?  What, exactly, do you "change [...] to 1.1.1.1", and how does
    your "my own dns server" fit in?

     

       The non-psychics in your audience might not be able to see how your
    "my own dns server" is configured.

     

    > [...] I have tested my own dns server out and know it is working.
    > [...]

     

       The non-psychics in your audience might not be able to guess how you
    did this testing, or what the results were.  Copy+paste is your friend.

     

    > Any ideas

     

       Provide a clear description of what you're doing, and what happens
    when you do it?

    • lbermudez's avatar
      lbermudez
      Aspirant

      As i have stated abobe I went under internet setup if I change to my own dns server at 192.168.2.9 I have no internet for the host 192.168.2.9 As in their is no connention. Command line apt update says could not resolve and the web browser says DNS_PROBE_FINISHED_BAD_CONFIG

       

      I have tested out my own dns sever by using it for years by changeing the ipv4 setting on my wifi card dns servers and search domains to 192.168.2.9. Other computers on the network can still get the internet using my dns server but not the host 192.168.2.9.

       

      under Lan Setup i have the ip address 192.168.2.9 next to the device name and MAC address saved. 

       

      /etc/resolv.conf

      nameserver 127.0.0.53

      options edns0 trust-ad

      search 192.168.2.9 127.0.0.1

       

      pihole is on port 53 dns server

      stubby is on port  8053

       

      • antinode's avatar
        antinode
        Guru

        > As i have stated abobe I went under internet setup [...]

         

           It was unclear above, and it's unclear here.

         

        > [...] I have no internet [...]

         

           See above.  Not an improvement over:

         

        > Can not get internet. [...]

         

           Same questions (still) apply.

         

        > I have tested out my own dns sever by using it for years [...]

         

           And how, exactly, did you test it _now_?

         

        > [...] Other computers on the network can still get the internet using
        > my dns server but not the host 192.168.2.9.

         

           Huh?  I thought that "the host 192.168.2.9" _was_ your "my dns
        server".  Or do you mean that your DNS server _itself_ ("192.168.2.9")
        can't resolve addresses, or what?  At least one of us is confused.


           I don't know what that means; it's not a useful problem description.
        It does not say what you did.  It does not say what happened when you
        did it.  As usual, showing actual actions (commands) with their actual
        results (error messages, LED indicators, ...) can be more helpful than
        vague descriptions or interpretations.

         

        > under Lan Setup i have the ip address 192.168.2.9 next to the device
        > name and MAC address saved.

         

           You're talking about Address Reservation?  As in:
        ADVANCED > Setup > LAN Setup : Address Reservation?  (Did you notice
        that the most significant part of that, "Address Reservation", appears
        noplace in your description?)

         

        > /etc/resolv.conf


           On _what_?  Your name server?


        > nameserver 127.0.0.53

         

           "127.0.0.53"?  Huh?  What's at _that_ addresss?

         

        > search 192.168.2.9 127.0.0.1


           Huh?  The "search" option should specify default domain name(s),
        usually one, not multiple IP addresses.

         

              https://man7.org/linux/man-pages/man5/resolv.conf.5.html

         

           I can't tell if you don't know what you're doing, or if you can't
        type what you're really doing, or both, or what, but what you've written
        makes no sense to me.

         

           I can't (yet) see your pictures.  In-line images must be approved
        by a moderator before others can see them.  The time required varies.
        Attachments have no such limitation.  Of course, attachments have their
        own one-per-message limitation.

         

           You might try a "/etc/resolv.conf" which makes more sense, like, say:

         

        nameserver 127.0.0.1         [or: 192.168.2.9]
        options edns0 trust-ad       [If you want.]

         

           If you decide to use a local domain name, then you might add a
        "search <my_local_domain_name>" option.