Domains, DNS and whois in code – with PHP examples that run.
Developer guides: check domain availability via API, query RDAP and whois in PHP, read DNS records, validate domains, IDN and punycode.
Most read
- PHP: Check Domain Availability the Right Way
How to check domain availability in PHP: why DNS lookups give false positives, when RDAP returns 404, and a free API with 30 requests per minute.
- PHP dns_get_record(): Return Values, Errors, Limits
PHP dns_get_record() explained with real output: fields per record type, empty array vs false, why DNS_ANY returns nothing, and how to handle resolver errors.
- PHP Email Validation: filter_var, MX Checks and IDNs
PHP email validation that works: what FILTER_VALIDATE_EMAIL rejects, handling IDN domains and null MX, and when egulias/email-validator is worth it. 10 tests.
- Whois in PHP: Port 43 Lookups with fsockopen
Whois with PHP: find the right server via whois.iana.org, follow thin-registry referrals, detect free domains. Tested code for .com, .io and .eu.
Domain APIs
More on Domain APIsAvailability, pricing and registration in code.
DNS in PHP
More on DNS in PHPReading, checking and monitoring records.
Validation
More on ValidationValidating domain names, IDNs and email addresses.
Current yearly prices
| Ending | Good for | Price/year |
|---|---|---|
| .de | First choice for anything aimed at people in Germany. Highest trust with German users. | €2.99 |
| .com | The best-known ending of all. Good for international brands; short names are almost all taken. | €14.99 |
| .dev | Developer portfolios, documentation, tools. | €22.99 |
| .io | Start-ups, developer tools, SaaS. Pricey by comparison but established in tech. | €61.99 |
| .app | Landing pages and web apps; HTTPS is enforced by design. | €22.99 |
| .tech | Tech companies and products; some registrars use a low teaser price for the first year. | €67.99 |
Yearly price at betadomain incl. renewal, as of 18 October 2026. compare domain prices