Twitter Updates

Wednesday 29 July 2009

Windows DNS

On Linux and Mac OS X systems if you need/want to hard wire a computer name to an IP address so that scripts can work reliably on startup, before DNS has really kicked in, you can easily add a line to the /etc/hosts file.

I just discovered that this is also easy on Windows (XP at least). Just add a line to the file:
c:\WINDOWS\system32\drivers\etc\hosts

Some thing like
192.168.1.1 router

Then you can just type http://router in to your browser to be taken to your router login page.
Thanks to @philip_roberts

No comments: