• Stars
    star
    203
  • Rank 192,890 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 11 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ’ป๐Ÿฑ A DNS server that resolves everything to cats.

cat-dns

The Internet needs more cats. DNS servers are the authority on all things Internet. Therefore, the best DNS server is the one that resolves everthing to cats. Guess what kind of DNS server this is (Hint: it's the cat kind).

Making it go

Before you do anything, you need to install node packages:

npm install

To run, start the server as a privileged process. This is because to be a DNS server, you need to be a UDP server on port 53. This is a small numbered port, which means it needs superpowers (however, these are dumped once started). This is how you run it:

sudo node cat-dns.js

By default, cat-dns will run attached to the localhost address. To bind this to a specific IP address on your host run:

sudo node cat-dns.js --address 192.168.1.10

Be careful running this on network addresses other than localhost. Other machines with access to the host you bind to can make DNS queries. For instance, binding to 0.0.0.0 and exposing your machine to the Internet will allow anyone with access to the Internet to make DNS queries to your machine.

To run on your local system, you need to somehow set your DNS server to be localhost. On a Mac, I do this by creating a new (Wi-Fi) interface (called Cats), in my Network preferences, and set its DNS server to 127.0.0.1. You could do this on your normal interface, but as a warning, while you're playing with this, pretty much nothing on your computer that requires the Internet works. Except for your browser. And then that's mostly cats. So being able to deactivate it easily is kind of key (I know. You might think 'Why would I ever want to deactivate cats?', but trust me on this one). I also recommend killing all the things that need to call the mothership (Google hangouts, Twitter feeds, Dropbox, iMessage), because they will not like your sassy cat answers, and will slow everything down.

You are ready

Go in your browser to www.google.com and wait a bit. You should see a cat. Go to a different website. Another cat. Congratulations. Your Internet is now all cats.

Wait what?

Do not panic. While I recommend you don't look at the source because it's gross, if you do look at the source, you'll notice all it does is resolve any hostname to 104.131.51.57 (or whatever cats.nanobit.org actually resolves to, as it keeps changing), which is a magical place on the Internet that has cats. You could also resolve everything to localhost, and serve your own cats on an HTTP server on port 80. But then you'd have to store your own cats locally, and that is animal cruelty. Thankfully, for now, while that magical static IP exists, you don't have to. That's it, that's all.

<3,

monica

More Repositories

1

tiny-care-terminal

๐Ÿ’–๐Ÿ’ป A little dashboard that tries to take care of you when you're using your terminal.
JavaScript
5,963
star
2

emoji-translate

๐Ÿ“š Translate text to โœจemoji โœจ!
JavaScript
1,202
star
3

font-style-matcher

โšก๏ธ๐ŸŽจ Matches the x-heights and widths of two fonts
JavaScript
509
star
4

github-canned-responses

๐Ÿ’ค (inactive) Because copy pasting isn't that great.
JavaScript
369
star
5

emojillate

๐Ÿ“ท๐ŸŽจ Pixellate an image into emoji
HTML
342
star
6

frankly

๐Ÿ”ง A Polymer dashboard of issues/PRs for any number of GitHub repos
HTML
321
star
7

emoji-rain

โ˜”๏ธโœจ A Polymer element that makes it rain emoji
HTML
217
star
8

lazy-image

A custom image element that lets you load resources on demand
HTML
213
star
9

picasso

๐ŸŽจ๐Ÿ—“ [DEPRECATED] A pretty Google Calendar theme
CSS
159
star
10

caturday-post

๐Ÿฑ๐Ÿ“ฒ Push notifications with cats and Polymer
HTML
139
star
11

flash-cards

๐Ÿ““๐Ÿ™ŠA simple flash cards app to help you learn Japanese (and other languages!)
JavaScript
137
star
12

og-emoji-font

โœจ๐Ÿ“ Emoji font based on the original DoCoMo emoji set
130
star
13

.not-quite-dotfiles

๐Ÿ’ฐ NO JUDGING
Shell
122
star
14

dear-sir-or-madam

๐Ÿ’Œ Bookmarklet that ransomifies your internets
JavaScript
103
star
15

literally

๐ŸŽž๐ŸŽ€ Literally another slide making thingie.
HTML
82
star
16

mojibrag

๐Ÿ“ข stuff. Use โœจ๐Ÿ™Š๐Ÿ˜‚๐Ÿ”ฅ.
HTML
74
star
17

doodle

๐ŸŽจ๐Ÿ‘พ Doodle with pixels and without pressure
JavaScript
68
star
18

midi-visualizer

A midi visualizer web component
JavaScript
56
star
19

is-mu-an-asleep

Electron app to find out if @muan is asleep
JavaScript
52
star
20

twemojify

๐Ÿ’ฅ Use Twitter's emoji api to fix emoji in Chrome
JavaScript
52
star
21

emoji-selector

โœ๏ธโœจ A Polymer paper-input-addon element that adds an emoji keyboard inputs
HTML
51
star
22

knit-a-stitch

๐ŸŽ€ Draw a pattern that you want to knit, and get the knitting chart for it!
JavaScript
48
star
23

diagramophone

๐ŸŽจ code your diagrams, because drawing them really sucks
JavaScript
39
star
24

muster

โ‡๏ธ A website that lets you play with overlapping patterns.
HTML
31
star
25

notwaldorf.github.com

๐Ÿ“ข I lost a bet and now I have a blog.
HTML
31
star
26

to_emoji

๐Ÿค–โœจ Twitter bot that translates every tweet you send it to emoji
JavaScript
30
star
27

ruby-eh

๐Ÿ’Ž Ruby for Canadians: an instruction manual.
Ruby
25
star
28

sparkle

โœจPixelate and sparkle an image. Any image.
JavaScript
22
star
29

example-magenta-in-ts

A demo of using @magenta/music as a dev-dependency in a TypeScript project
TypeScript
21
star
30

polymer-color-picker

[๐Ÿ’ค Deprecated: Go to https://github.com/polymerelements/paper-swatch-picker instead!] A color picker with all the Material Design colours
HTML
18
star
31

is-ie10-dead

๐Ÿ’€ Well, is it?
HTML
17
star
32

meowto

๐Ÿ”ฎ A client-side URL shortener
JavaScript
17
star
33

tensorflow-experiments

JavaScript
13
star
34

gh-wiki-to-pages

[WIP] Automatically publish a GitHub wiki to a gh-pages Jekyll site
CSS
13
star
35

polymer-gold-elements-demo

๐Ÿ’ธ A checkout form using the Polymer gold elements
HTML
10
star
36

old-research-papers

Old Reinforcement Learning research from university
9
star
37

polymer-demo-transmogrifier

[๐Ÿ’ค Deprecated: Go to https://github.com/polymerelements/iron-demo-helpers instead!] Polymer element that renders both the source and demo of a code snippet
HTML
9
star
38

emoji-web-components-art-talk

I gave a talk about web components and art and emoji and this is it.
HTML
7
star
39

bear-or-berra

[WIP, don't look] Who said it, Yogi Bear or Yogi Berra?
JavaScript
7
star
40

shrinkwrap

๐Ÿ‘” [forever unfinished] t-shirt sizing / progress tracking app for scrum planning. because sometimes you just have to. and because i have to learn websockets somehow.
JavaScript
7
star
41

fierimas

๐ŸŽ„๐ŸŽ… It's like Guy Fieri's Grocery Games but for holiday presents
JavaScript
4
star
42

fuck-yeah-css

CSS
4
star
43

shpool-stats

๐ŸŽฑ I play pool every day at lunch and stats need to be had.
JavaScript
2
star
44

ponies

๐Ÿด Here, have a pony
1
star
45

better-form

WIP - look away
HTML
1
star
46

hacknight

Montreal all-girl hack night website!
CSS
1
star
47

input-tests

Look away. Playground to test the v1 custom elements polyfill
HTML
1
star
48

hacknight-chrome-extensions

Sample Chrome Extensions for the all-girl hacknight tutorial
JavaScript
1
star