From 9a6165250c46f733620a4605bc9a4b92e55bf890 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sat, 8 Jul 2023 17:38:18 +0200 Subject: [PATCH 1/3] add dns notes --- networking/servers/dns.md | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 networking/servers/dns.md diff --git a/networking/servers/dns.md b/networking/servers/dns.md new file mode 100644 index 0000000..324144d --- /dev/null +++ b/networking/servers/dns.md @@ -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`. From 74e826af1e811915bc5e9f27e744fc3834c36cef Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sat, 8 Jul 2023 20:02:11 +0200 Subject: [PATCH 2/3] remove spaces from new filenames --- new.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new.sh b/new.sh index 16867d0..f9227bb 100755 --- a/new.sh +++ b/new.sh @@ -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')\"" From 140c8e38d4d37753477d3e444c02b1b0f0b84f07 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Fri, 5 May 2023 19:24:52 +0200 Subject: [PATCH 3/3] show torrent creation --- networking/transmission.md | 53 +++++++++++++++++++++++++++++++------- 1 file changed, 44 insertions(+), 9 deletions(-) diff --git a/networking/transmission.md b/networking/transmission.md index fbc8dc6..a664031 100644 --- a/networking/transmission.md +++ b/networking/transmission.md @@ -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