BNeko Advanced Cheater
Reputation: 0
Joined: 11 Apr 2008 Posts: 69
|
Posted: Fri Jul 11, 2008 3:20 pm Post subject: CMD - Internet |
|
|
Would this work as a .bat file if my DNS won't configure with my internet, or my IP works but l can't connect to the Internet Explorer itself? It happened to me once, had to call.
| Code: | @echo off
TITLE IP / DNS Fixer
Color 9f
ipconfig /all
ipconfig /release
ipconfig /flushdns
pause
ipconfig /registerdns
ipconfig /renew |
o.o
|
|
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Fri Jul 11, 2008 3:56 pm Post subject: |
|
|
This line is pointless to have, it just displays the info. If you are going to be releasing and renewing, the old info is pointless to display.
Along with that you do:
| Code: | ipconfig /release
ipconfig /flushdns |
then
| Code: | | ipconfig /registerdns |
You have flushed the DNS and released the given IP. After that the DNS table is already empty. /registerdns would do nothing since it has nothing to refresh / register to the table.
Simple enough, all you really need is:
| Code: | ipconfig /release
ipconfig /flushdns
ipconfig /renew |
Keep in mind, if you are behind a router, this will do nothing. Your router gives out IPs to your network based on a DHCP table of it's own. (Assuming you are using default settings and haven't edited anything in the router configuration.)
If you are directly connected to your modem (Cable/Broadband) most likely, this wont do much for you either as the DHCP record stores the IP for the mac address of your cable modem for a given period of time, and it doesn't expire, in most cases, unless the connection is broken for an extended period of time.
_________________
- Retired. |
|