HeadlinesBriefing favicon HeadlinesBriefing.com

DNS @ Symbol Explained for Developers

DEV Community •
×

A developer with a decade of experience recently forgot what the @ symbol means when setting up DNS for a new SaaS product. While configuring Google Search Console, they stared blankly at the 'Host Name' field, realizing that infrequent use of DNS leads to knowledge gaps. This common experience prompted them to share a refresher on fundamental DNS concepts.

The key answer is simple: using @ or leaving the host field blank targets the root of your DNS zone. For Google Search Console verification, you add a TXT record with `@` as the host. Common mistakes include entering your full domain (creating a duplicate) or `www` (which is for subdomains). Understanding that `@` equals your root domain clarifies most DNS management interfaces.

Beyond the @ symbol, developers should know five core record types: A (IPv4 address), AAAA (IPv6), CNAME (alias), TXT (verification), and MX (email). Setting up both `www` and the root domain is necessary because Google treats them as separate sites. The best practice is picking one as the canonical URL and implementing a 301 redirect for the other to maintain consistency and SEO integrity.