ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What would the Windows equivalent be for the following commands?
ifconfig eth0 down && ifconfig eth0 up && /etc/init.d/named restart
Essentially, there is a Windows 2000 server that has two NICs, named "Inside" and "Outside". "Inside" has a static IP, and "Outside" gets an IP via DHCP from an ISP. Whenever it renews its IP address, the routing table gets mucked up. The simplest way to fix it is to disable "Inside" and the re-enable it. Since the DNS service binds to "Inside", that needs to be restarted as well.
Originally posted by marghorp HEhe, maybe you should be asking this in some MS forum, if there are any, or googling it.
Well, I have tried other forums, but so far no bites. Googling is a great idea, I always start off by googling when I have a question.
I understood that this forum was not limited to Linux? If I am wrong I will take my silly problem elsewhere, but I hope I am not because there are some really, really smart people here!
Originally posted by deiussum
ipconfig /renew <adapter>
Thanks for the reply, deissum, but I am not trying to renew my IP address. What I am trying to do is disable the adapter. Once it is disabled, I want to re-enable it. For whatever reason, this fixes the routing table. Finally, after the two previous things are done, I need to restart DNS Server since it is bound to the adapter that I will be disabling. I know that the executable is DNS.EXE, but I simply don't know how to restart it through a script.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.