Merge branch 'dev' into vhs

This commit is contained in:
Malin Freeborn 2023-07-12 03:23:28 +02:00
commit fd2c44f49b
Signed by: andonome
GPG Key ID: 52295D2377F4D70F
3 changed files with 89 additions and 10 deletions

44
networking/servers/dns.md Normal file
View File

@ -0,0 +1,44 @@
---
title: "dns"
tags: [ "networking", "host" ]
---
| Record | Type | Example |
|:-----------:|:--------------------|:---------------------------------------|
| A Record | IPv4 Address | "$domain".com |
| AAAA Record | IPv4 Address | "$domain".com |
| CNAME | Alternative Address | "$domain".rs, "$subdomain.$domain".com |
| NS | Nameserver | ns1.fastname.com |
| MX | Email server | "$domain".com |
| TXT | Literally anything,including ownership of a domain | |
| | | |
Query a host with the `host` command.
```bash
host $domain.$tld
```
```bash
host $domain.$tld 9.9.9.9
```
> dmz.rs has address 77.105.27.232
> dmz.rs mail is handled by 10 kralizec.dmz.rs.
> dmz.rs mail is handled by 20 splint.rs.
This shows the MX record has a secondary handler, called splint.rs.
You can also add a specific nameserver:
Request a specific record type (`CNAME`, `TXT`, et c.):
```bash
torsocks host -T -t $RECORD_TYPE $domain
```
## Troubleshooting
The `host` command uses UDP.
You can change to TCP by using `host -T`.

View File

@ -4,14 +4,7 @@ tags: [ "Documentation", "Networking", "Torrenting" ]
---
# Torrench
Torrench searches for torrents.
It breaks a lot, so if it's not working, the problem is probably in the program.
Search for 'sita sings the blues' with:
```bash
torrench 'sita sings the blues'
```
Search for a torrent, e.g. 'sita sings the blues'.
Copy the magnet link.
It looks like this:
@ -20,7 +13,7 @@ It looks like this:
But you only need this bit (up until the `&` character):
`magnet:?xt=urn:btih:05547db7c0c5fbbe50f00212ee43e9cec5b006fa`
> magnet:?xt=urn:btih:05547db7c0c5fbbe50f00212ee43e9cec5b006fa
# Transmission
@ -93,3 +86,45 @@ Next, find the torrent's number. You can use multiple numbers, separated with a
transmission-remote -t 3,5,8 --move /home/alice/music
```
## Change Default Location
The `transmission` user has a home configuration file, like any other user, with all the transmission settings.
```bash
cd /var/lib/transmission/.config/transmission-daemon/
$EDITOR settings.json
```
Change the `download-dir` value to wherever you want the torrents to go.
# Creating Torrents
Create a torrent of file or directory `Memes` with:
> transmission-create Memes
Add a tracker to the torrent, to make sure others can find you easily:
> transmission-create --comment 'My Memes collection' -t 'udp://tracker.publicbt.com:80' -t 'udp://tracker.openbittorrent.com:80' --anonymize Memes
Without the `--anonymize` flag, the torrent file output will have a 'created by' and 'created date'.
## Open Trackers
- udp://tracker.opentrackr.org:1337/announce
- udp://opentracker.i2p.rocks:6969/announce
- https://opentracker.i2p.rocks:443/announce
- udp://tracker.openbittorrent.com:6969/announce
- http://tracker.openbittorrent.com:80/announce
- udp://9.rarbg.com:2810/announce
- udp://open.demonii.com:1337/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.moeking.me:6969/announce
- https://tracker.tamersunion.org:443/announce
- udp://tracker1.bt.moack.co.kr:80/announce
- udp://tracker.bitsearch.to:1337/announce
- udp://p4p.arenabg.com:1337/announce
- udp://explodie.org:6969/announce
- https://tracker.gbitt.info:443/announce
- http://tracker.gbitt.info:80/announce

2
new.sh
View File

@ -10,7 +10,7 @@ echo Select a name
read name
filePath="$category/$name.md"
filePath="$category/$(echo $name | sed 's/ /_/g').md"
tagsList="$(echo \"$category | sed 's#\/#", "#g')\""