If you have your own DNS server, you can block domains from resolving. Here's a guide to blocking domains in a Bind DNS server.
There is no way to get all the IP addresses. What you can do is install dig . Its available on Linux, but not on windows.
Then enter dig yoututbe.com from time to time, it will show you all the allowed IP addresses from the DNS cache.
See my result
$ dig youtube.com A ; <<>> DiG 9.7.0-P1 <<>> youtube.com A ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13442 ;; flags: qr rd ra; QUERY: 1, ANSWER: 16, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;youtube.com. IN A ;; ANSWER SECTION: youtube.com. 83 IN A 74.125.235.47 youtube.com. 83 IN A 74.125.235.46 youtube.com. 83 IN A 74.125.235.45 youtube.com. 83 IN A 74.125.235.44 youtube.com. 83 IN A 74.125.235.43 youtube.com. 83 IN A 74.125.235.42 youtube.com. 83 IN A 74.125.235.41 youtube.com. 83 IN A 74.125.235.40 youtube.com. 83 IN A 74.125.235.39 youtube.com. 83 IN A 74.125.235.38 youtube.com. 83 IN A 74.125.235.37 youtube.com. 83 IN A 74.125.235.36 youtube.com. 83 IN A 74.125.235.35 youtube.com. 83 IN A 74.125.235.34 youtube.com. 83 IN A 74.125.235.33 youtube.com. 83 IN A 74.125.235.32 ;; Query time: 0 msec ;; SERVER: 127.0.0.1
Shiplu mokaddim
source share