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.
    • S
      Shuey
      last edited by

      When I deployed our FOG server, I chose an IP in advance and configured the server to use that static IP as I was deploying it. I created a static host entry in our AD DNS, and everything seemed fine... Until I noticed that the host record and IP reverted back to the original DHCP IP (FOG will always pick up a DHCP IP prior to setting a static IP and finishing the deployment).

      I've verified in the FOG web console that the IP is still correct (the static IP I assigned), and I also double-checked the .fogsettings file to make sure that the IP is correct there as well. One last ditch effort I did was I deleted the A and PTR records in DNS and verified that the deletion successfully replicated across all internal DNS servers, then I created a fresh A record (which automatically created a fresh PTR record). I let the addition replicate and waited a couple days to see if that fixed the issue; it did not! A couple days after doing this, the IP has reverted back to the original DHCP address, and it's not pingable. If I ping the server by the correct IP, it works (but the DNS name is obviously wrong)

      Why is this happening, and what can I do to fix it!?

      black3dynamiteB 1 Reply Last reply Reply Quote 0
      • coliverC
        coliver
        last edited by

        I've never heard of this issue. Do you have two NICs attached to the FOG server?

        The other point is to create a static assignment in your DHCP server associated with the FOG server's NIC. That will resolve the issue of grabbing an IP address other then the one statically assigned.

        S 1 Reply Last reply Reply Quote 1
        • black3dynamiteB
          black3dynamite
          last edited by

          What Linux distro is FOG installed on?

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

            @coliver Nope - only one NIC (and this server is a guest VM).

            @black3dynamite Ubuntu 16.04.1 LTS (64-bit)

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

              I went ahead and created a DHCP reservation for the server (even though the server is configured for a static IP), and as soon as that was successfully created, the A record vanished in DNS (not what I was expecting to see happen). I went ahead and manually created the A record again, and I left the DHCP reservation in place, but obviously the reservation will not be of much use unless I change the server to use a DHCP assigned IP instead of a static one (something I'd really rather not do)...

              1 Reply Last reply Reply Quote 0
              • DustinB3403D
                DustinB3403
                last edited by

                Within your server have you edited /etc/network/interfaces to be statically assigned?

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

                  @DustinB3403 Yep, prior to configuring FOG:
                  auto ens160
                  iface ens160 inet static
                  address <hidden>
                  netmask <hidden>
                  gateway <hidden>

                  DustinB3403D 1 Reply Last reply Reply Quote 0
                  • DustinB3403D
                    DustinB3403 @Shuey
                    last edited by

                    @Shuey hrm. . .

                    And it's still getting a DHCP address. Are you sure the interface is named ens160?

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

                      @DustinB3403 I thought I clearly stated in my original post that it's not getting a DHCP address; it's been configured with a static IP ever since I installed FOG. And yes, the interface is named "ens160" (confirmed with ifconfig).

                      DustinB3403D 1 Reply Last reply Reply Quote 0
                      • DustinB3403D
                        DustinB3403 @Shuey
                        last edited by

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

                        @DustinB3403 I thought I clearly stated in my original post that it's not getting a DHCP address; it's been configured with a static IP ever since I installed FOG. And yes, the interface is named "ens160" (confirmed with ifconfig).

                        You keep saying it's defaulted back to the original DHCP address.

                        This means that it is not accepting the reservation, or B you've misconfigured the interface.

                        If you've confirmed the interface is named "ens160" then the last question is why would the system revert to searching for DHCP.

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

                          @DustinB3403 The FOG SERVER is not defaulting back to the DHCP address, our AD DNS is where the IP keeps reverting back (and this is all BEFORE ever creating a dedicated reservation that matches the correct IP).

                          DustinB3403D 1 Reply Last reply Reply Quote 0
                          • DustinB3403D
                            DustinB3403 @Shuey
                            last edited by

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

                            @DustinB3403 The FOG SERVER is not defaulting back to the DHCP address, our AD DNS is where the IP keeps reverting back (and this is all BEFORE ever creating a dedicated reservation that matches the correct IP).

                            The delete all DNS records for the fog server, and let it be found the natural way.

                            With time.

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

                              @DustinB3403 If a non-domain server is configured with a static IP, the host record won't get automatically created in AD DNS... How is it supposed to be "found the natural way - with time" when it'll never be discovered automatically :-S...?

                              DustinB3403D 1 Reply Last reply Reply Quote 0
                              • DustinB3403D
                                DustinB3403 @Shuey
                                last edited by

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

                                @DustinB3403 If a non-domain server is configured with a static IP, the host record won't get automatically created in AD DNS... How is it supposed to be "found the natural way - with time" when it'll never be discovered automatically :-S...?

                                DNS isn't dependent on AD.

                                1 Reply Last reply Reply Quote 0
                                • black3dynamiteB
                                  black3dynamite @Shuey
                                  last edited by

                                  @Shuey Do you have Dynamic updates set to Secure only or Nonsecure and secure?

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

                                    @black3dynamite "Nonsecure and secure"

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

                                      Okay, so to recap... there is NO issue on the FOG system and the entire thread is actually about a problem with Windows DNS getting bad updates. The AD DC is running DNS, and DNS keeps showing an A record for the FOG server that is the old DHCP assigned address for that rather than the current statically assigned one?

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

                                        @scottalanmiller Pretty much, yep. I say "pretty much" because I'll also re-clarify that the entry in DNS is accurate for a couple of days, and then it suddenly changes to the FOG server's old DHCP address.

                                        Here's a recap of the server's DNS record:

                                        1. The Ubuntu server picked up a DHCP address when the server was first setup (prior to FOG getting installed and configured).
                                        2. That address then appeared in DNS as I would expect, but of course was the wrong IP (since it was not statically assigned yet).
                                        3. I configured the Ubuntu server with a static IP, then I updated the DNS record, making it static instead of DHCP assigned (as well as the PTR), then installed and configured FOG (using the same static IP of course).
                                        4. I thought everything was fine, but a couple days later I noticed that I couldn't ping the FOG server. I checked DNS and noticed that the static entry I had configured had changed to the original DHCP address that the Ubuntu server had picked up....
                                        1 Reply Last reply Reply Quote 0
                                        • black3dynamiteB
                                          black3dynamite @Shuey
                                          last edited by

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

                                          @black3dynamite "Nonsecure and secure"

                                          Have you already try setting it to secure only and then delete dns record?

                                          S 1 Reply Last reply Reply Quote 0
                                          • black3dynamiteB
                                            black3dynamite
                                            last edited by

                                            Your Ubuntu Server DNS setting is probably configured with your DNS Server IP.

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