diff --git a/mdb/migrations/0012_alter_domaintxtrecord_target.py b/mdb/migrations/0012_alter_domaintxtrecord_target.py new file mode 100644 index 0000000..0d03fc6 --- /dev/null +++ b/mdb/migrations/0012_alter_domaintxtrecord_target.py @@ -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), + ), + ] diff --git a/mdb/models.py b/mdb/models.py index 5cf0da7..c7a7569 100644 --- a/mdb/models.py +++ b/mdb/models.py @@ -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)