Skip to content

Commit

Permalink
changing ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
neex committed Feb 27, 2021
1 parent e079c5b commit 827842c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 21 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The tool does not employ any novel techniques and is not unique in any sense. Al

The service is currently run at the `1u.ms` domain (and its' subdomains).

If you're reading this on github, you're going to have very hard time trying to self-host it. The code is shitty as hell. Start with `records.go` and `mydns.go`. Pull requests are welcome :)

## Usage

#### A-record
Expand Down Expand Up @@ -145,7 +147,7 @@ The log of all DNS requests is public. There are the following endpoints:
* http://1u.ms/log?grep=<regexp> — same as above, but show only matching lines
## Contacts & FAQ

If you have any questions or suggestions in mind, feel free to contact me via [@neexemil](https://t.me/neexemil) on Telegram.
If you have any questions or suggestions in mind, feel free to contact me via [@neexemil](https://t.me/neexemil) on Telegram or [@emil_lerner](https://twitter.com/emil_lerner) on Twitter.

#### Is this tool free for any type of usage?

Expand Down
31 changes: 11 additions & 20 deletions records.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,45 @@ package main
import "github.com/miekg/dns"

var records = map[query][]string{
{t: dns.TypeSOA, name: "airbnb-photos1s37amazonaws.com."}: {
"airbnb-photos1s37amazonaws.com. 0 IN SOA hui.sh.je. root.hui.sh.je. 12321838 0 0 0 1",
},

{t: dns.TypeNS, name: "airbnb-photos1s37amazonaws.com."}: {
"airbnb-photos1s37amazonaws.com. 0 IN NS hui.sh.je.",
"airbnb-photos1s37amazonaws.com. 0 IN NS hui.sub.sh.je.",
},

{t: dns.TypeSOA, name: "sub.sh.je."}: {
"sub.sh.je. 0 IN SOA hui.sh.je. root.hui.sh.je. 12321839 0 0 0 1",
"sub.sh.je. 1 IN SOA hui.sh.je. root.hui.sh.je. 12321839 0 0 0 1",
},

{t: dns.TypeNS, name: "sub.sh.je."}: {
"sub.sh.je. 0 IN NS hui.sh.je.",
"sub.sh.je. 1 IN NS hui.sh.je.",
},

{t: dns.TypeA, name: "hui.sub.sh.je."}: {
"hui.sub.sh.je. 0 IN A 206.81.28.151",
"hui.sub.sh.je. 1 IN A 206.81.28.151",
},

{t: dns.TypeA, name: "local.sub.sh.je."}: {
"local.sub.sh.je. 0 IN A 127.0.0.1",
"local.sub.sh.je. 1 IN A 127.0.0.1",
},

{t: dns.TypeA, name: "meta.sub.sh.je."}: {
"meta.sub.sh.je. 0 IN A 169.254.169.254",
"meta.sub.sh.je. 1 IN A 169.254.169.254",
},

{t: dns.TypeA, name: "this.sub.sh.je."}: {
"this.sub.sh.je. 0 IN A 206.81.28.151",
"this.sub.sh.je. 1 IN A 206.81.28.151",
},

{t: dns.TypeSOA, name: "1u.ms."}: {
"1u.ms. 0 IN SOA a.make-this.rr.sub.sh.je. root.localhost. 12321833 0 0 0 1",
"1u.ms. 1 IN SOA a.make-this.rr.sub.sh.je. root.localhost. 12321833 0 0 0 1",
},

{t: dns.TypeNS, name: "1u.ms."}: {
"1u.ms. 0 IN NS a.make-this.rr.sub.sh.je.",
"1u.ms. 0 IN NS b.make-this.rr.sub.sh.je.",
"1u.ms. 1 IN NS a.make-this.rr.sub.sh.je.",
"1u.ms. 1 IN NS b.make-this.rr.sub.sh.je.",
},

{t: dns.TypeA, name: "1u.ms."}: {
"1u.ms. 0 IN CNAME this.sub.sh.je.",
"1u.ms. 1 IN CNAME this.sub.sh.je.",
},

{t: dns.TypeA, name: "rec.sub.sh.je."}: {
"rec.sub.sh.je. 0 IN CNAME rec.sub.sh.je.",
"rec.sub.sh.je. 1 IN CNAME rec.sub.sh.je.",
},
}

Expand Down

0 comments on commit 827842c

Please sign in to comment.