-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
posts: docs: add lancache documentation
- Loading branch information
1 parent
fadfb53
commit 0c9996c
Showing
3 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: "LanCache" | ||
date: 2024-02-29 | ||
--- | ||
|
||
[LanCache](https://lancache.net/) is a service that caches copies of games on a fast local server and redirects traffic to/from popular game sites to provide a faster download experience for cached games. We've set up an instance in a dedicated VM so Swarthmore students and community members can take better advantage of our fancy new hardware. It's pretty easy to set this up--just requires swapping your DNS servers to `130.58.218.30`, the IP address of our VM. We'll go a bit into how it works and how to set it up in case you're curious. | ||
|
||
## How it Works | ||
|
||
The Internet uses a concept called DNS (Domain Name System) to determine the IP (Internet Protocol) address of a host given a URL. It's kinda like a distributed phone book...or a game of telephone. The idea is basically that for a given URL, there exists some "root authority" that is the source of truth for where to point, and then there are servers that are faster and spread out around the globe that cache these names so you don't have to go hunting. Those servers, hosted by companies like Google and Cloudflare, go hunting for root authorities so you don't have to (fewer bounces is better!). | ||
|
||
When you go to download a game, your PC queries DNS for the download server (i.e. `content1.steampowered.com`). It checks its own local cache, followed by the primary DNS server, followed by the secondary DNS server, until it is found. LanCache basically redirects everything to normal DNS servers other than these game sites, which it pretends to be the root authority for. Traffic for those sites is redirected to a web sever hosted on the LanCache server, which checks the cache and either downloads from there or queries the normal site (in the event of a cache miss). As you might imagine, these misses happen a lot until the cache populates. | ||
|
||
## Get Set Up | ||
|
||
Getting connected to the LanCache is pretty easy--just swap your primary DNS to `130.58.218.30` and your secondary to whichever you prefer (probably ITS's DNS at `130.58.218.18`). | ||
|
||
Windows 11: | ||
|
||
1. Open Settings | ||
2. Navigate to Network & Internet --> Wi-Fi (or Ethernet depending on your connection) --> eduroam (if on Wi-Fi) | ||
3. Hit Edit on the DNS server assignment section, swap to Manual, and set the IPv4 addresses as shown above. | ||
|
||
NOTE: DO NOT enable DNS over HTTPS. ITS disables this and we don't support it. | ||
|
||
macOS Ventura: | ||
|
||
1. Open System Settings | ||
2. Navigate to Network & Internet --> Wi-Fi (or Ethernet depending on your connection) --> Details --> DNS | ||
3. Set the DNS servers as shown above | ||
|
||
Linux: | ||
|
||
If you're using a Linux distro you probably know how to set this up. | ||
|
||
Consoles can also use this but we won't put instructions for every possible console--refer to your manufacturer's instructions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: "Using the SCCS LanCache" | ||
date: 2024-02-29 | ||
--- | ||
|
||
SCCS has deployed an instance of [LanCache](https://lancache.net/), a service that replaces your default DNS servers to redirect game downloads through a faster local server. This allows us to cache terabytes of popular games to provide a much faster download experience. Take advantage of this by setting your default DNS server to `130.58.218.30`. | ||
|
||
[Read More](https://www.sccs.swarthmore.edu/docs/lancache) |