Forcing Google Services to local (RSA) IP address

As some of you might have seen: Google, YouTube and Facebook are hosting local mirrors for most of their services.
Unfortunately the ISP's DNS servers doesn't always report the local IP addresses, even if the services work on the local mirrors!

There are 2 ways in which you can force the Google, YouTube & Facebook to work on local cap:

Forcing the hostnames to a fixed IP address with the use of the hosts file, which can be found in the %windir%\system32\drivers\etc folder.
Pros: very easy and quick to setup
Cons: doesn't support wildcards or multiple hostnames, which is why the list is so massive
* Instructions at the bottom
* NEW!!: There's a hosts file modification specific to YouTube viewers on the SAIX network too - see bottom of post
* NEW #2!!: There are also hosts file modifications for Google views on WebAfrica network - see Tinuva's post

Running your own DNS server with the use of BIND9 and then overriding the hostnames using wildcards.
Pros: supports regular expressions (wildcards); 1 server can be used for multiple PC's; would override more Google & YouTube services (Facebook zone not added yet); this technique works on some routers too
Cons: the setup takes a couple of minutes to do and might seem like its for advanced users
* Instructions can be found on my blog: http://mybroadband.co.za/vb/entry.ph...oogle-services

Modifying the hosts file can be done like follow:

Run: notepad %windir%\system32\drivers\etc\hosts
^^ Its really as simple as pressing Windows Key + R, typing in notepad %windir%\system32\drivers\etc\hosts and pressing Enter
If you don't understand that, then you can open notepad, browse to c:\windows\system32\drivers\etc folder and then open the file with the name hosts

Here's the list that you'll have to add to the bottom of the hosts file:

Replace (please make use of the Replace... [CTRL + H] function) the <Google IP>, <YouTube IP> and <Facebook IP> with the correct IP address, which I've given at the top of the list.
If I've specified multiple IP addresses, using a / to separate them, please just pick one random one from the list.Please use the IP addresses according to your local ISP: SAIX/IS !

Save the file and exit notepad. You don't need to restart for it to take effect.

If you're having trouble with either a Google, YouTube of Facebook page, then I would appreciate it if you can give me as much information as possible:

Overriding method that you're using

ISP account name

URL that's not working on local cap

ping results to the hostname specified by the URL (for intermediate/advanced users)

Quick question regarding gmail

@ Mr Pada

Why after adding the Gmail ips did mine stop working after 1 day, i only login to my TK accounts using my router (NO Dialing up as such) and only the search works however i am adding the google earth stuff now into my localhosts file to see if those work aswell.

Rather odd but i will test further otherwise thanks soo much for showing us how to do this

Edit:

I removed the previous line i created and re-added the above lines and it seems to be working, maybe a dns issue no idea but its working