DNS Records

The DNS records of LLMHosts’ Ingresses, which the llmhost tasks create and delete.

An LLMHost whose Ingress has the hostname that Smarter chose, e.g. qwen.3141-5926-5359.api.example.com, gets a DNS A record, as an LLMClient does, when DNS records are enabled. create_dns_record() calls the DNS provider, and so runs only in the infrastructure worker, in launch_llmhost. destroy_dns_record() queues the LLMClient app’s destroy_domain_A_record task.

smarter.apps.llmhost.tasks.dns.create_dns_record(llmhost)[source]

Create the DNS A record of the LLMHost’s default Ingress hostname, if DNS is enabled.

Calls the DNS provider, e.g. Route53. Errors are logged, not raised.

Parameters:

llmhost (LLMHost) – The LLMHost.

Return type:

None

smarter.apps.llmhost.tasks.dns.destroy_dns_record(llmhost)[source]

Queue the Celery task that deletes the DNS A record of the LLMHost’s default Ingress hostname, if DNS is enabled.

Parameters:

llmhost (LLMHost) – The LLMHost.

Return type:

None

smarter.apps.llmhost.tasks.dns.dns_enabled()[source]

Whether LLMHost tasks manage DNS records, like LLMClient tasks.

Return type:

bool

smarter.apps.llmhost.tasks.dns.managed_hostname(llmhost)[source]

The Ingress hostname, if Smarter chose it, and so manages its DNS record.

Return type:

str | None