I enter Youtube's IP but Google opens
Youtube is blocked in my country, and I think they have blocked it from the DNS end of it, because when I run:
dig in my LINUX terminal then I get no answer, but when I run the same command targeted at another DNS server then I get some answers...The command is:
dig @8.8.8.8and the Answers are:
; <<>> DiG 9.8.1-P1 <<>> youtube.com @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23527
;; flags: qr rd ra; QUERY: 1, ANSWER: 11, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;youtube.com. IN A
;; ANSWER SECTION:
youtube.com. 300 IN A 173.194.39.38
youtube.com. 300 IN A 173.194.39.35
youtube.com. 300 IN A 173.194.39.41
youtube.com. 300 IN A 173.194.39.36
youtube.com. 300 IN A 173.194.39.39
youtube.com. 300 IN A 173.194.39.46
youtube.com. 300 IN A 173.194.39.40
youtube.com. 300 IN A 173.194.39.32
youtube.com. 300 IN A 173.194.39.34
youtube.com. 300 IN A 173.194.39.33
youtube.com. 300 IN A 173.194.39.37
;; Query time: 193 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sat Feb 9 16:22:52 2013
;; MSG SIZE rcvd: 205The problem is that whenever I copy and paste an IP from that list into my browser, google.com opens instead of youtube! Can someone explain why is this happening? and how can I open youtube from its IP so that I can bypass the DNS lookup...
36 Answers
You can use 8.8.8.8 as your regular DNS server.
Or you can add "173.194.39.38 youtube.com" to your /etc/hosts file.
As user1763532 explained, hosting architecture are now all based on loadbalancing, mutiple ISP, multiple location, so try something like this
"telnet 173.194.39.35 80"
GET / HTTP/1.1
Host:
Connection: close
post result,
if telnet on port 80 is ok, no firewall filtering
if you don't get anything with GET, maybe web filtering
try and let us know (for my curiosity which country are you from ?? is your username related ^^)
Yes, you can add google public DNS server into the system. To do that, type vi /etc/resolv.conf and then add "nameserver 8.8.8.8 to it. You also need to be root to do that.
The A entries are IP's of general Google servers, more likely load balancers or entry points to their infrastructure, all of which will have some form of virtual host policies.
The complexity of Google's infrastructure should be ignored to understand how this works, although it will function much like Apahce's virtual host files.
<VirtualHost _default_:80>
DocumentRoot /com/google/www
...
</VirtualHost>
<VirtualHost google.com:80>
DocumentRoot /com/google/www
...
</VirtualHost>
<VirtualHost youtube.com:80>
DocumentRoot /com/youtube/www
...
</VirtualHost>What your seeing is Google's default destination if no URL/Host is given (accessed directly through IP), it passes you to the content servers for Google.com.
If you had passed Youtube.com as the URL/Host to one of the A IP's you would reach Youtube.com.
Edit
In answer to your question, you cant just enter the IP. As already answered you can set your computers DNS server to 8.8.8.8 or use another DNS service.
You could also use a proxy service.
3install proxy swithcer. The website is blocked, so the only way is to create a VPN or use a proxy. use spotflux, proxy switcher or hotspot sheild
DNS Settings aren't going to work. Countries are smarter than that :)
Use a proxy, there's a good plugin for firefox and probably a couple for [sigh]chrome[/sigh]