Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Stupid networking tricks

Stupid networking tricks

Scheduled Pinned Locked Moved The Lounge
sysadminhelp
23 Posts 9 Posters 4 Views 1 Watching
  • 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.
  • H Henry Minute

    DNS Cache?

    Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

    R Offline
    R Offline
    realJSOP
    wrote on last edited by
    #5

    It's a simply workgroup network - no DNS servers involved...

    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
    -----
    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
    -----
    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

    1 Reply Last reply
    0
    • R realJSOP

      So when I moved, I had to change ISPs, which meant configuring a new router. To begin with, the cable modem povided by Time-Warner doesn't let you change ANYTHING with regards to how the modem works, so that required me to buy a Motorola Surfboard modem at BestBuy (I couldn't afford the time for it to be shipped from anywhere). My router is a DHCP server, and it allows you to reserve IPs based on MAC addresses so that each machine gets the same IP address whenever the power is cycled on the router (which could happen at any time because of the occasional power outage), resulting in a renewed DHCP lease for all attached devices. I had also set this up on my previous router, but since I had to completely re-do it, I figured I'd re-organize the IPs. This meant that ALL of the machines that had dynamic IPs assigned would get new IPs. So far so good - even after doing this, the previously configured shares seemed to work fine, all machines could access the internet, and I could ping all of the newly assigned IPs. Yesterday morning, I tried to terminal service into one of the boxes by using its machine name, and it couldn't connect. I puzzled over this for most of the day, and fxed it last night when I had a thought about what might be the problem. To make this a bit more interesting, I leave it to you to deduce the problem. the first person that gueses what was wrong gets a 5.

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

      M Offline
      M Offline
      Mike Marynowski
      wrote on last edited by
      #6

      You had a DNS suffix setup on the router, so your DHCP clients had something in the "Connection-specific DNS Suffix" field when you ran ipconfig. Could also be called domain name or something like that in the router config.

      R 1 Reply Last reply
      0
      • R realJSOP

        So when I moved, I had to change ISPs, which meant configuring a new router. To begin with, the cable modem povided by Time-Warner doesn't let you change ANYTHING with regards to how the modem works, so that required me to buy a Motorola Surfboard modem at BestBuy (I couldn't afford the time for it to be shipped from anywhere). My router is a DHCP server, and it allows you to reserve IPs based on MAC addresses so that each machine gets the same IP address whenever the power is cycled on the router (which could happen at any time because of the occasional power outage), resulting in a renewed DHCP lease for all attached devices. I had also set this up on my previous router, but since I had to completely re-do it, I figured I'd re-organize the IPs. This meant that ALL of the machines that had dynamic IPs assigned would get new IPs. So far so good - even after doing this, the previously configured shares seemed to work fine, all machines could access the internet, and I could ping all of the newly assigned IPs. Yesterday morning, I tried to terminal service into one of the boxes by using its machine name, and it couldn't connect. I puzzled over this for most of the day, and fxed it last night when I had a thought about what might be the problem. To make this a bit more interesting, I leave it to you to deduce the problem. the first person that gueses what was wrong gets a 5.

        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
        -----
        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
        -----
        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

        B Offline
        B Offline
        BRShroyer
        wrote on last edited by
        #7

        There was a .45in hole in the front of it with a 3in hole in the back?

        Brad Deja Moo - When you feel like you've heard the same bull before.

        R 1 Reply Last reply
        0
        • B BRShroyer

          There was a .45in hole in the front of it with a 3in hole in the back?

          Brad Deja Moo - When you feel like you've heard the same bull before.

          R Offline
          R Offline
          realJSOP
          wrote on last edited by
          #8

          The tactical situation had not degraded to the point that gun-play was called for. :)

          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
          -----
          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
          -----
          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

          1 Reply Last reply
          0
          • M Mike Marynowski

            You had a DNS suffix setup on the router, so your DHCP clients had something in the "Connection-specific DNS Suffix" field when you ran ipconfig. Could also be called domain name or something like that in the router config.

            R Offline
            R Offline
            realJSOP
            wrote on last edited by
            #9

            Nope. But thanks for playing, and feel free to try again.

            ".45 ACP - because shooting twice is just silly" - JSOP, 2010
            -----
            You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
            -----
            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

            1 Reply Last reply
            0
            • R realJSOP

              So when I moved, I had to change ISPs, which meant configuring a new router. To begin with, the cable modem povided by Time-Warner doesn't let you change ANYTHING with regards to how the modem works, so that required me to buy a Motorola Surfboard modem at BestBuy (I couldn't afford the time for it to be shipped from anywhere). My router is a DHCP server, and it allows you to reserve IPs based on MAC addresses so that each machine gets the same IP address whenever the power is cycled on the router (which could happen at any time because of the occasional power outage), resulting in a renewed DHCP lease for all attached devices. I had also set this up on my previous router, but since I had to completely re-do it, I figured I'd re-organize the IPs. This meant that ALL of the machines that had dynamic IPs assigned would get new IPs. So far so good - even after doing this, the previously configured shares seemed to work fine, all machines could access the internet, and I could ping all of the newly assigned IPs. Yesterday morning, I tried to terminal service into one of the boxes by using its machine name, and it couldn't connect. I puzzled over this for most of the day, and fxed it last night when I had a thought about what might be the problem. To make this a bit more interesting, I leave it to you to deduce the problem. the first person that gueses what was wrong gets a 5.

              ".45 ACP - because shooting twice is just silly" - JSOP, 2010
              -----
              You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
              -----
              "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

              S Offline
              S Offline
              Slacker007
              wrote on last edited by
              #10

              John Simmons / outlaw programmer wrote:

              I tried to terminal service into one of the boxes by using its machine name, and it couldn't connect. I puzzled over this for most of the day, and fxed it last night when I had a thought about what might be the problem.

              The box in question was turned off?

              Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
              "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

              R 1 Reply Last reply
              0
              • R realJSOP

                So when I moved, I had to change ISPs, which meant configuring a new router. To begin with, the cable modem povided by Time-Warner doesn't let you change ANYTHING with regards to how the modem works, so that required me to buy a Motorola Surfboard modem at BestBuy (I couldn't afford the time for it to be shipped from anywhere). My router is a DHCP server, and it allows you to reserve IPs based on MAC addresses so that each machine gets the same IP address whenever the power is cycled on the router (which could happen at any time because of the occasional power outage), resulting in a renewed DHCP lease for all attached devices. I had also set this up on my previous router, but since I had to completely re-do it, I figured I'd re-organize the IPs. This meant that ALL of the machines that had dynamic IPs assigned would get new IPs. So far so good - even after doing this, the previously configured shares seemed to work fine, all machines could access the internet, and I could ping all of the newly assigned IPs. Yesterday morning, I tried to terminal service into one of the boxes by using its machine name, and it couldn't connect. I puzzled over this for most of the day, and fxed it last night when I had a thought about what might be the problem. To make this a bit more interesting, I leave it to you to deduce the problem. the first person that gueses what was wrong gets a 5.

                ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                -----
                You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                -----
                "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                C Offline
                C Offline
                CodyDaemon
                wrote on last edited by
                #11

                Was it you had manually set the hostname in the HOSTS file, but didn't update file(s) when you did the rejig?

                R A B 3 Replies Last reply
                0
                • S Slacker007

                  John Simmons / outlaw programmer wrote:

                  I tried to terminal service into one of the boxes by using its machine name, and it couldn't connect. I puzzled over this for most of the day, and fxed it last night when I had a thought about what might be the problem.

                  The box in question was turned off?

                  Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                  "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

                  R Offline
                  R Offline
                  realJSOP
                  wrote on last edited by
                  #12

                  Nope - all of the machines were turned on at the time.

                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                  -----
                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                  -----
                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                  1 Reply Last reply
                  0
                  • C CodyDaemon

                    Was it you had manually set the hostname in the HOSTS file, but didn't update file(s) when you did the rejig?

                    R Offline
                    R Offline
                    realJSOP
                    wrote on last edited by
                    #13

                    This is the correct answer. The IPs no longer matched what was listed in the HOSTS file.

                    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                    -----
                    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                    -----
                    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                    C M 2 Replies Last reply
                    0
                    • C CodyDaemon

                      Was it you had manually set the hostname in the HOSTS file, but didn't update file(s) when you did the rejig?

                      A Offline
                      A Offline
                      Anders Molin
                      wrote on last edited by
                      #14

                      Ah, you just beat me to it...

                      - Anders

                      1 Reply Last reply
                      0
                      • R realJSOP

                        This is the correct answer. The IPs no longer matched what was listed in the HOSTS file.

                        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                        -----
                        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                        -----
                        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                        C Offline
                        C Offline
                        CodyDaemon
                        wrote on last edited by
                        #15

                        The reason I guessed it was this is simple, I have done it before. :doh:

                        1 Reply Last reply
                        0
                        • C CodyDaemon

                          Was it you had manually set the hostname in the HOSTS file, but didn't update file(s) when you did the rejig?

                          B Offline
                          B Offline
                          BobJanova
                          wrote on last edited by
                          #16

                          This would have been one of the first places I looked, as well. HOSTS is evil.

                          R 1 Reply Last reply
                          0
                          • B BobJanova

                            This would have been one of the first places I looked, as well. HOSTS is evil.

                            R Offline
                            R Offline
                            realJSOP
                            wrote on last edited by
                            #17

                            I use the HOSTS file to prevent the prowser from visitng web sites (ads, etc) that could introdece problems on my systems. When a url in the file is found on a web page, my browser displays a hazardous waste logo where the ad would have shown up.

                            ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                            -----
                            You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                            -----
                            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                            B D 2 Replies Last reply
                            0
                            • R realJSOP

                              I use the HOSTS file to prevent the prowser from visitng web sites (ads, etc) that could introdece problems on my systems. When a url in the file is found on a web page, my browser displays a hazardous waste logo where the ad would have shown up.

                              ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                              -----
                              You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                              -----
                              "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                              B Offline
                              B Offline
                              BobJanova
                              wrote on last edited by
                              #18

                              Interesting approach. That is actually quite a good use of it, a kind of client side blacklist. I have also had to put things in the HOSTS file, as you must have done to cause this problem, to get some Windows networking stuff to operate correctly. I'm sure it shouldn't be necessary but Windows networking seems to be quite fragile, to the extent that sometimes I either email files to myself to transfer them, or host them on a local HTTP server and fetch them. TCP and DNS often work even when net view etc don't.

                              R 1 Reply Last reply
                              0
                              • R realJSOP

                                I use the HOSTS file to prevent the prowser from visitng web sites (ads, etc) that could introdece problems on my systems. When a url in the file is found on a web page, my browser displays a hazardous waste logo where the ad would have shown up.

                                ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                -----
                                You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                -----
                                "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                                D Offline
                                D Offline
                                David Crow
                                wrote on last edited by
                                #19

                                I've got hundreds of entries in my HOSTS file for just this purpose. How, then, did it affect your LAN?

                                "One man's wage rise is another man's price increase." - Harold Wilson

                                "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                                "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

                                R 1 Reply Last reply
                                0
                                • D David Crow

                                  I've got hundreds of entries in my HOSTS file for just this purpose. How, then, did it affect your LAN?

                                  "One man's wage rise is another man's price increase." - Harold Wilson

                                  "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                                  "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

                                  R Offline
                                  R Offline
                                  realJSOP
                                  wrote on last edited by
                                  #20

                                  The IPs didn't match, and it looks like Terminal Services uses what's in the HOSTS file to resolve machine names to IP addresses. If there's nothing in the hosts file, I assume that it just looks for the machine name on the network. Since the IPs were wrong in the file, it couldn't connect to the specified machine name.

                                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                  -----
                                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                  -----
                                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                                  1 Reply Last reply
                                  0
                                  • B BobJanova

                                    Interesting approach. That is actually quite a good use of it, a kind of client side blacklist. I have also had to put things in the HOSTS file, as you must have done to cause this problem, to get some Windows networking stuff to operate correctly. I'm sure it shouldn't be necessary but Windows networking seems to be quite fragile, to the extent that sometimes I either email files to myself to transfer them, or host them on a local HTTP server and fetch them. TCP and DNS often work even when net view etc don't.

                                    R Offline
                                    R Offline
                                    realJSOP
                                    wrote on last edited by
                                    #21

                                    My most annoying issue right now is that no matter what I do, some of the machines on the LAN can't map remote shares when I reboot the machine. If I go into Explorer and click on the share, it searhes for it and finds it, and then everything is good. (All machines are running the same version of windows 7 and are caught up on the latest patches.)

                                    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                    -----
                                    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                    -----
                                    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                                    1 Reply Last reply
                                    0
                                    • R realJSOP

                                      This is the correct answer. The IPs no longer matched what was listed in the HOSTS file.

                                      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                      -----
                                      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                      -----
                                      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                                      M Offline
                                      M Offline
                                      Mike Marynowski
                                      wrote on last edited by
                                      #22

                                      Why on earth are you manually entering hostnames in HOSTS? Built-in name resolution protocols not fancy enough for you? lol.

                                      R 1 Reply Last reply
                                      0
                                      • M Mike Marynowski

                                        Why on earth are you manually entering hostnames in HOSTS? Built-in name resolution protocols not fancy enough for you? lol.

                                        R Offline
                                        R Offline
                                        realJSOP
                                        wrote on last edited by
                                        #23

                                        I don't remember why I was doing it...

                                        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                        -----
                                        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                        -----
                                        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                                        1 Reply Last reply
                                        0
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes


                                        • Login

                                        • Don't have an account? Register

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • World
                                        • Users
                                        • Groups