Allow longer (chunked) TXT records
This commit is contained in:
1 parent
4269569302
commit
7957459e06
2 files changed
+22
-1
No files matched your search
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.1.13 on 2025-05-12 03:24
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('mdb', '0011_auto_20160325_1412'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='domaintxtrecord',
|
||||
name='target',
|
||||
field=models.CharField(max_length=2048),
|
||||
),
|
||||
]
|
||||
+4
-1
@@ -149,7 +149,10 @@ class DomainSrvRecord(models.Model):
|
||||
|
||||
class DomainTxtRecord(models.Model):
|
||||
name = models.CharField(max_length=256)
|
||||
target = models.CharField(max_length=256)
|
||||
# note that the max length of a TXT record is 255, but
|
||||
# bind allows for longer records by splitting them
|
||||
# into chunks as: "...255..." "...another 255..."
|
||||
target = models.CharField(max_length=2048)
|
||||
domain = models.ForeignKey(Domain, models.CASCADE)
|
||||
created_date = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
|
||||
Reference in new issue
Block a user