Skip to content

Commit

Permalink
drop ptr
Browse files Browse the repository at this point in the history
drop ptr support
  • Loading branch information
SX-9 authored Nov 9, 2024
2 parents 7da7f40 + 537cd0d commit 276b8e9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 62 deletions.
35 changes: 2 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,9 @@
</p>
<h1 align="center">part-of.my.id</h1>

> [!WARNING]
> Project is in ALPHA. Bugs and big changes to registration format are expected.
> [!NOTE]
> Documentation is all on our website [here](https://part-of.my.id/docs#structure).
<a href="https://discord.gg/rFyRF3MMhc"><img alt="Discord Server" src="https://invidget.switchblade.xyz/rFyRF3MMhc"></a>

## registration
1. **Star** and **[Fork](https://github.com/partofmyid/register/fork)** this repository.
2. Add a new file called `your-name.json` in the `/domains` folder to register `your-name.part-of.my.id` subdomain (replace `your-name` with whatever subdomain you want).
3. Edit the file (below is just an **example**, provide a **valid** JSON file with your needs, the format is very strict.)

```json
{
"description": "Project Description (optional)",
"owner": {
"username": "github-username"
},
"record": {
"A": ["1.1.1.1", "1.0.0.1"],
"AAAA": ["::1", "::2"],
"CNAME": "example.com",
"MX": ["mx1.example.com", "mx2.example.com"],
"TXT": ["example_verification=1234567890"],
"SRV": [
{ "priority": 10, "weight": 60, "port": 5060, "target": "sipserver.example.com" },
{ "priority": 20, "weight": 10, "port": 5061, "target": "sipbackup.example.com" }
]
},
"proxied": false
}

```

4. Your pull request will be reviewed and merged. Please don't ignore the pull request checklist. If you ignore the checklist, your pull request will be ignored too. _Make sure to keep an eye on it in case we need you to make any changes!_
5. After the pull request is merged, please allow up to 24 hours for the changes to propagate _(usually, it takes 5..15 minutes)_
6. Enjoy your new domain!

*Domains used for illegal purposes will be removed and permanently banned. Please, provide a clear description of your resource in the pull request.*
16 changes: 8 additions & 8 deletions dnsconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ for (var idx in domains) {
// }
// }

if ('SRV' in domainData.record) {
for (var srv in domainData.record.SRV) {
var srvRecord = domainData.record.SRV[srv];
commits.push(
SRV(subdomain, srvRecord.priority, srvRecord.weight, srvRecord.port, srvRecord.target + ".")
);
}
}
// if ('SRV' in domainData.record) {
// for (var srv in domainData.record.SRV) {
// var srvRecord = domainData.record.SRV[srv];
// commits.push(
// SRV(subdomain, srvRecord.priority, srvRecord.weight, srvRecord.port, srvRecord.target + ".")
// );
// }
// }

// if ('PTR' in domainData.record) {
// for (var ptr in domainData.record.PTR) {
Expand Down
21 changes: 0 additions & 21 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,27 +51,6 @@
"items": {
"type": "string"
}
},
"SRV": {
"type": "array",
"items": {
"type": "object",
"properties": {
"priority": {
"type": "integer"
},
"weight": {
"type": "integer"
},
"port": {
"type": "integer"
},
"target": {
"type": "string"
}
},
"required": ["priority", "weight", "port", "target"]
}
}
},
"required": [],
Expand Down

0 comments on commit 276b8e9

Please sign in to comment.