Skip to content

v0.3.2

Latest
Compare
Choose a tag to compare
@imprvhub imprvhub released this 20 Jun 09:32
ffd5d2b

ffd5d2b: Fix: Validate domain length per TLD

Overview

This release addresses an issue where the domain availability checker incorrectly reported certain short domains (specifically two-letter domains) as available, even though they are not permitted by the rules of their respective Top-Level Domains (TLDs).

Implementation Note: Due to the lack of comprehensive, centralized documentation on minimum domain length requirements per TLD (as each local registry like DENIC has different rules), a conservative approach was implemented by setting a minimum of 3 characters for Second Level Domains (SLDs) across all TLDs. While this may not reflect the exact requirements for every TLD, it prevents false positives for clearly invalid short domains. The code architecture allows for easy updates to TLD-specific minimums as more precise information becomes available through future research.

Release Details

  • Release Date: 2025-06-18 14:54:56 UTC
  • Commit: ffd5d2b
  • Author: Iván Luna
  • Branch(es): main

Changes

This release includes a critical bug fix related to domain validation.

Bug Fixes

  • Incorrect Availability for Short Domains: Previously, the tool did not validate the length of a domain name according to TLD rules. This led to incorrect "available" results for domains that are syntactically invalid. The fix introduces pre-check validation with a conservative 3-character minimum for SLDs. Future updates will refine TLD-specific requirements as accurate data becomes available.

Modified Files

  • src/mcp_domain_availability/main.py (modified)
    • Changes: 79 total
    • Added: 74 lines
    • Removed: 5 lines

Testing

Testing focused on verifying the validation logic prevents false availability reports for short domains while maintaining functionality for valid domain queries.

What's Changed

  • fix: Validate domain length per TLD by @imprvhub in #5

New Contributors

  • @sascharucks for reporting the domain validation issue in #2 that led to this improvement

Full Changelog: 0.3.1...0.3.2