ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    FOG Server IP Keeps Changing in DNS!

    Scheduled Pinned Locked Moved IT Discussion
    42 Posts 8 Posters 5.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      If you do an nslookup command, it will show you which DNS server it queried at that time, as well.

      1 Reply Last reply Reply Quote 3
      • S
        Shuey @scottalanmiller
        last edited by

        @scottalanmiller I cat'd my /etc/resolv.conf file and there's nothing in it (except for the default two comment lines).

        I went ahead and added a DNS server and search (nothing was configured previously and I was unable to ping anything by name) and nslookups are working now.

        I've gone so far down this rabbit hole since yesterday that I'm asking myself out of confusion now: "What again does all this have to do with the fact that our AD DNS was changing?" 😄 (especially since I didn't even have DNS configured on the Ubuntu server before this morning)

        scottalanmillerS travisdh1T 2 Replies Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @Shuey
          last edited by

          @Shuey said in FOG Server IP Keeps Changing in DNS!:

          : "What again does all this have to do with the fact that our AD DNS was changing?" 😄 (especially since I didn't even have DNS configured on the Ubuntu server before this morning)

          I have no idea how or why we are looking at that other than it just needs to be fixed. The DNS settings on the Ubuntu box are definitely not related to the DNS Server entries.

          S 1 Reply Last reply Reply Quote 1
          • S
            Shuey @scottalanmiller
            last edited by Shuey

            @scottalanmiller Cool, at least it's one extra thing that was caught and fixed : )

            scottalanmillerS 1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @Shuey
              last edited by

              @Shuey said in FOG Server IP Keeps Changing in DNS!:

              @scottalanmiller Cool, at least it's one extra thing that was caught and fixed : )

              Yeah, might have led to other problems later.

              1 Reply Last reply Reply Quote 1
              • travisdh1T
                travisdh1 @Shuey
                last edited by

                @Shuey said in FOG Server IP Keeps Changing in DNS!:

                @scottalanmiller I cat'd my /etc/resolv.conf file and there's nothing in it (except for the default two comment lines).

                I went ahead and added a DNS server and search (nothing was configured previously and I was unable to ping anything by name) and nslookups are working now.

                I've gone so far down this rabbit hole since yesterday that I'm asking myself out of confusion now: "What again does all this have to do with the fact that our AD DNS was changing?" 😄 (especially since I didn't even have DNS configured on the Ubuntu server before this morning)

                Do you know if you're using network-manager or just networking? Sounds like the proper DNS config settings are missing. Why this STILL happens annoys me to no end. Anyway, fixes.

                Network Manager

                nm-tui
                

                and edit the network connection.

                Networking

                nano /etc/network/interfaces
                

                Add the following line with your preferred DNS server IP addresses

                dns-nameservers 8.8.8.8, 8.8.4.4
                

                That's all off the top of my head, so take it with the intended salt.

                1 Reply Last reply Reply Quote 1
                • S
                  Shuey
                  last edited by

                  Well, after all the things I've done since starting this thread, the IP is holding steady as the correct static IP it should be. I'll double-check one more time on Monday morning, but I have a feeling it's good to go now.

                  1 Reply Last reply Reply Quote 1
                  • DashrenderD
                    Dashrender
                    last edited by

                    Windows DHCP can be setup to register non windows clients with DNS. So if there is an active DHCP lease still in place that might explain why the DHCP IP keeps coming back to DNS.

                    When you "create" your manual DNS entry are you deleting the old one first? Or just changing the original? If you are changing, that might explain why DHCP is able to change it back
                    I would not expect a manual DNS creation to be changeable by normal MS automation.

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      Shuey @Dashrender
                      last edited by

                      @Dashrender Yep, that's how ours is setup, but I've never seen a DHCP lease cause an issue like this :-S. And yep, I completely deleted the DNS entry and verified that the deletion replicated through all servers. That's what had me so confused initially (I kept wondering how the heck it could keep coming back from the dead!).

                      1 Reply Last reply Reply Quote 0
                      • stacksofplatesS
                        stacksofplates
                        last edited by stacksofplates

                        Check and see if dhclient is running. We had an issue like this with some Pi's (with the dhcpcd client). Static address was set but dhcpcd was still pulling an address.

                        Also I didn't see it asked. Is NetworkManager and network both running? That causes issues and it seems distros don't disable one or the other

                        S 1 Reply Last reply Reply Quote 1
                        • S
                          Shuey @stacksofplates
                          last edited by

                          @stacksofplates Yep, sorry, I should've replied back about that previously. network manager is not running; it's not even installed ("nmtui is currently not installed" is the message I got when I tried running it). I also checked to see if a service with the name "dhcp" in the name was running; can't find anything.

                          stacksofplatesS 1 Reply Last reply Reply Quote 0
                          • stacksofplatesS
                            stacksofplates @Shuey
                            last edited by

                            @Shuey said in FOG Server IP Keeps Changing in DNS!:

                            @stacksofplates Yep, sorry, I should've replied back about that previously. network manager is not running; it's not even installed ("nmtui is currently not installed" is the message I got when I tried running it). I also checked to see if a service with the name "dhcp" in the name was running; can't find anything.

                            Ok. I figured it was worth acting. I haven't noticed the issue with dhclient itself, just dhcpcd.

                            1 Reply Last reply Reply Quote 1
                            • S
                              Shuey
                              last edited by

                              The IP is finally holding steady! Thanks for the feedback guys!

                              1 Reply Last reply Reply Quote 1
                              • 1
                              • 2
                              • 3
                              • 1 / 3
                              • First post
                                Last post