Facebook logo and hand pointer

How to Access Facebook When DNS is Down

Facebook’s IP Address

First, let’s look at what the IP address for Facebook is.

As of 10/5/2021, here’s a dig on facebook.com:

; <<>> DiG 9.10.6 <<>> facebook.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59062
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;facebook.com. IN A

;; ANSWER SECTION:
facebook.com. 36 IN A 157.240.2.35

;; Query time: 30 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Tue Oct 05 12:17:56 CDT 2021
;; MSG SIZE rcvd: 57

And the DNS servers:

Name Server: C.NS.FACEBOOK.COM
Name Server: B.NS.FACEBOOK.COM
Name Server: A.NS.FACEBOOK.COM
Name Server: D.NS.FACEBOOK.COM

This means the IP address for facebook.com shown on 10/5/2021 is 157.240.2.35.

Note: All the information here is available to the public and is not secret. It’s something your computer is doing in the background since computers like IP addresses rather than domain names – they look them up. This information may change and this page may not update.


Bypass DNS and Access Facebook

If you would like to access Facebook without using DNS (and if the servers are still running), then you can do that using this information (this only works with computers – not mobile devices). Even if you do this, you might not be able to see everything and everything might not work since Facebook uses more domains and subdomains to show a page than just the facebook.com domain name. I included a few of the others below.

You would just need to change your computer’s “hosts” file manually and set this IP address there. Your computer would then bypass DNS and access Facebook since it looks to that file first before going to DNS. This is something web developers do when testing a website before it goes live.

Here are the steps (from webstix.com):


For a PC / Windows Computer:

Step 1: Go to C:\WINDOWS\system32\drivers\etc

Use Windows Explorer (“My Computer”) and find this file on your hard drive.

Step 2: Open the file called “hosts”

Right click on it and choose to open it with Notepad, which is a plain text editor (don’t use Word).

Step 3: Go to the last line of that file and add the IP address and domain name that we give you.

– It will look like this (copy and paste this):

157.240.2.35. facebook.com
157.240.2.25 static.xx.fbcdn.net
157.240.18.19 scontent.xx.fbcdn.net
157.240.18.19 scontent-ort2-2.xx.fbcdn.net

– Make sure there’s a space between the IP address and the domain name. A tab is ok, too.

Step 4: Save the file.

– You will later want to go and edit this file and take out these two lines once your new website launches.


For MacOS:

Step 1: Open the terminal application. (Go to: Go > Utilities in the Finder).

Step 2: Type this in:

sudo vi /etc/hosts

– It will most likely ask you for your password. Put that in when it asks.

Step 3: Add a new line to the end and add the IP address and domain name that we give you.

– It will look like this (copy and paste this):

157.240.2.35. facebook.com
157.240.2.25 static.xx.fbcdn.net
157.240.18.19 scontent.xx.fbcdn.net
157.240.18.19 scontent-ort2-2.xx.fbcdn.net

– To do this (if you’re not familiar with the “vi” (vim) program), do the following:

Type “G” (shift + g) to go to the last line of the file.
Type “o” (lower case “o”) to add a new line.
Copy and paste in the two lines that we have given you.

Step 4: Save the file.

Press the <Esc> key (to get out of edit more) and then type “:wq” (colon + “w” for write and “q” for quit) and hit enter.

– You will later want to go and edit this file and take out these two lines once your new website launches. Here’s how to do that:

Get back into the same file with the same “sudo vi /etc/hosts” command.
Go to the line you wand to delete.
Type “dd” to delete the current line.
Save the file with “:wq” and enter.


Notes for both PCs and Macs:

Note 1: Do not include a “https://” in the file – you are using a domain name in the file, not a URL.

Note 2: If you are not seeing the new website, then try restarting your web browser or the computer. It should then take effect.


More Information

185.89.218.12 C.NS.FACEBOOK.COM
129.134.31.12 B.NS.FACEBOOK.COM
129.134.30.12 A.NS.FACEBOOK.COM
185.89.219.12 D.NS.FACEBOOK.COM
 
Next Post
it-looks-like-you-youtube-link
Scams

“It Looks Like You” on Facebook Messenger – a Scam?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.