Change DNS in a script


Recommended Posts

Some clients have problems with DHCP. I know we had to switch our 500 robots running Win95 because it was 'broken' in how it handled DHCP (or how the DHCP servers treated them, our IT people didn't make it very clear to me) on our network.

I had to request a block of IP addresses, and go around to each one and set up IP, subnet, WINS, gateway, DNS, hostname on each unit individually. It sucked!

There may be a reason for using static IPs.

  Joel said:

Why not just make the change without telling them? If they keep the same address thru DHCP reservations, then it would be transparent to them.

For most clients that would work. But there are a few out there doing things they shouldn't be doing (standing up their own networks, plugging in servers using IPs that are assigned to desktops, plugging in switches to create their own private network) that would notice and cause problems. While those people shouldn't be doing what they are doing, once it became know what we did... let's just say it is not worth the hassle.

They will complain if we lock it down by MAC if they change NICs they will have to tell us, which we don't see as an issue because really how many times does that happen. (I mean that wouldn't stop them from using that IP on another device anyway unless both are plugged in) In theory there is no reason why it should work here, but like I said before that doesn't mean it is going to happen.

We did something similar to what you mentioned in the past, they refused to let us stand up a firewall. We did anyway and told them 6 months later and they were like "oh, okay well you can keep it up because we haven't noticed any problems."

Trust me I know the benefits that come along with DHCP and everyone I work with would love for it to happen, but when it comes down to it none of the people in charge of my office are willing to lose their job because they did what should be done. They were willing to bite the bullet when it came to security (the firewall) but not for a niceity.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Article needs to be updated. X posted yesterday, after 2.5 hours that most service was back.
    • Can't say that I cared for his more recent views, but the man was an icon and will be missed.
    • I don't have a computer to play these, but kudos for them to release this stuff.
    • Even msnbc can be nice.   
    • Meta pulls political ads in the EU due to new regulations by Paul Hill Meta has announced that it will no longer allow political, electoral, or social issue ads on its platforms in the European Union starting in early October 2025. This is in direct response to the EU’s upcoming Transparency and Targeting of Political Advertising (TTPA) regulation. According to the social media giant, the TTPA introduces “unworkable requirements and legal uncertainties” that make it too hard to continue offering those ad services. The ban on these types of ads will be limited to the EU and it will continue to allow political ads on its service in other parts of the world. The company will also allow people and politicians in the EU to post and debate politics organically on its platforms, they just can’t pay to amplify it. Meta said that the TTPA places extensive restrictions on ad targeting and delivery, and will make ads less relevant to users. It also believes that the measures undermine personalized advertising which it believes is crucial for advertisers and users. The company has already introduced transparency tools for political ads back in 2018, such as requiring authorization and public disclosure in its Ad Library. Commenting on its action, Meta said: With this ban in place, it will restrict how political and social issue advertisers can reach audiences through paid promotions on Meta’s platform. It could also impact the ability of voters to get comprehensive information about the various campaigns. On this point, Meta thinks personalized ads are critical for informing voters about important social issues. It’ll be interesting to see what impact this has on political campaigns in the EU. Those politicians without deep pockets may like this move as it creates a more level playing field and prevents those with deep pockets from drowning out other candidates’ voices. On the flip side, it could see candidates use less transparent methods to get their views across to the public. Source: Meta | Image via Depositphotos.com
  • Recent Achievements

    • Dedicated
      Snake Doc earned a badge
      Dedicated
    • One Month Later
      Philsl earned a badge
      One Month Later
    • One Year In
      armandointerior640 earned a badge
      One Year In
    • One Month Later
      armandointerior640 earned a badge
      One Month Later
    • Week One Done
      Itbob513626 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      613
    2. 2
      ATLien_0
      236
    3. 3
      Xenon
      156
    4. 4
      +FloatingFatMan
      123
    5. 5
      Michael Scrip
      113
  • Tell a friend

    Love Neowin? Tell a friend!