Resolve host name from IP address
The command you are looking for is called nslookup, works fine for reverse lookups IFF someone has configured a reverse zone file, which they don’t always do.
The command you are looking for is called nslookup, works fine for reverse lookups IFF someone has configured a reverse zone file, which they don’t always do.
The correct way to sleep in a batch file is to use the timeout command, introduced in Windows 2000. To wait somewhere between 29 and 30 seconds: timeout /t 30 The timeout would get interrupted if the user hits any key; however, the command also accepts the optional switch /nobreak, which effectively ignores anything the … Read more
You don’t need to reboot. Any changes you make to the hosts file are immediate. You used to need to reboot for changes to take effect in Windows 9x. That is no longer the case. However, you may need to restart any applications that do internal hostname or DNS caching, such as web browsers.
Based on my own experience and what I encountered while Googling, here are some things to try: 1. Did you check that it works correctly? Changes to hosts should take effect immediately, but Windows caches name resolution data so for some time the old records may be used. Open a command line (Windows+R, cmd, Enter) … Read more
Changes to environment variables should take effect immediately, if you make the change via the main Properties dialog for the computer in question (go to My Computer | Properties | Advanced | Environment Variables). After the changes are saved, Explorer broadcasts a WM_SETTINGCHANGE message to all windows to inform them of the change. Any programs … Read more
A little known one is getmac It shows the MAC address(es) of your network adapter(s).
ping -a w.x.y.z Should resolve the name from the IP address if the reverse lookup zone has been set up properly. If the reverse lookup zone does not have an entry for the record, the -a will just ping without a name.
ctrl+alt+end is the prescribed way to do this. Coding Horror has some other shortcuts.
For Git Bash If you are running msysgit (I am assuming you are) and are looking to run Git Bash (I recommend it over TortoiseGit, but I lean to the CLI more than GUI now), you need to figure out what your home directory is for Git Bash by starting it then type pwd (On … Read more
I’ve had success with Sysinternals Process Explorer. With this, you can search to find what process(es) have a file open, and you can use it to close the handle(s) if you want. Of course, it is safer to close the whole process. Exercise caution and judgement. To find a specific file, use the menu option … Read more