Domain Name คืออะไร? Domains, TLDs และ WHOIS ทำงานอย่างไร
Domain name คือที่อยู่ของเว็บไซต์แบบอ่านง่าย เช่น google.com เบื้องหลังมีระบบ DNS, registrar, registry, WHOIS/RDAP, การต่ออายุ และมาตรการความปลอดภัยที่ทำให้อินเทอร์เน็ตทำงานได้
สารบัญ
Domain Name คืออะไร?
Domain name คือชื่อที่อ่านง่ายสำหรับระบุเว็บไซต์หรือ resource บนอินเทอร์เน็ต แทนที่จะพิมพ์ IP address อย่าง 142.250.80.46 เราพิมพ์ google.com แทน
Domain ทำงานผ่าน Domain Name System (DNS) ซึ่งเป็นระบบชื่อระดับโลกที่แปลงชื่อเป็น IP addresses และ records อื่น ๆ
โดเมนที่จดทะเบียนแล้วต้องไม่ซ้ำกันในช่วงเวลาเดียวกัน ผู้จดสองรายไม่สามารถถือครอง domain name เดียวกันพร้อมกันได้
โครงสร้างของ Domain Name
DNS เป็นระบบแบบลำดับชั้น Domain name ถูกตีความจากขวาไปซ้ายผ่านระดับต่าง ๆ เช่น TLD, domain และ subdomain
Full URL: https://blog.example.com/article
Protocol: https://
Subdomain: blog
Domain: example
TLD: .com
The registered domain is usually:
example.com
More examples:
mail.google.com -> subdomain: mail, domain: google.com
en.wikipedia.org -> subdomain: en, domain: wikipedia.org
bbc.co.uk -> name: bbc, public suffix: co.uk
docs.github.io -> subdomain: docs, domain: github.ioประเภทของ Top-Level Domains
Top-level domain หรือ TLD คือส่วนสุดท้ายของชื่อโดเมนหลังจุดตัวสุดท้าย
| หมวดหมู่ | ตัวอย่าง | หมายเหตุ |
|---|---|---|
| Generic TLDs (gTLD) | .com, .org, .net | extension ทั่วไปหรือเดิมถูกออกแบบตามหมวดหมู่ |
| Restricted TLDs | .edu, .gov, .mil | จำกัดเฉพาะสถาบันหรือหน่วยงานที่มีสิทธิ์ |
| Country-code TLDs (ccTLD) | .uk, .de, .jp, .th | รหัสประเทศหรือดินแดน 2 ตัวอักษร |
| Repurposed ccTLDs | .io, .ai, .tv | รหัสประเทศที่นิยมใช้ใน branding ด้าน tech, AI หรือ media |
| New gTLDs | .app, .dev, .shop, .blog | extension ใหม่เชิงคำอธิบายจำนวนมาก |
Industry-specific: .tech .dev .design .app .cloud
Geographic: .nyc .london .tokyo .berlin
Brand TLDs: .google .apple .amazon .microsoft
Generic: .site .online .store .blog .xyz
Community: .school .club .team .socialรู้ไหม?
.com ยังเป็น TLD ที่ผู้ใช้จดจำมากที่สุด แต่หลายโปรเจกต์เริ่มใช้ TLD เชิงอธิบายอย่าง .app, .dev, .store และ .blog
การจดโดเมนทำงานอย่างไร
เราไม่ได้ซื้อโดเมนถาวร แต่เป็นการ จดทะเบียน สิทธิ์ในการใช้ชื่อโดเมนนั้นเป็นระยะเวลา โดยทั่วไป 1 ถึง 10 ปี
Registry ดูแล TLD, registrar ขายการจดทะเบียน และ registrant คือบุคคลหรือองค์กรที่ควบคุมโดเมน
ถ้าต้องการถือครองโดเมนต่อ ต้องต่ออายุก่อนหมดอายุ สำหรับโดเมนสำคัญควรเปิด auto-renewal
Registration hierarchy:
ICANN
-> Registry manages a TLD such as .com or .org
-> Registrar sells domain registrations to customers
-> Registrant owns the right to use the domain for a term
You do not permanently buy a domain.
You register the exclusive right to use it for 1-10 years.WHOIS และ RDAP Records
WHOIS คือ protocol รุ่นเก่าสำหรับค้นหาข้อมูลการจดทะเบียนและเจ้าของโดเมน ส่วน RDAP เป็นระบบใหม่ที่มีโครงสร้างชัดเจนและส่งข้อมูลเป็น JSON
ข้อมูลสาธารณะอาจแสดง registrar, วันที่สร้าง, วันหมดอายุ, nameservers, status codes และบางกรณีข้อมูลผู้จดทะเบียน ขึ้นอยู่กับนโยบาย privacy
WHOIS privacy ช่วยซ่อนข้อมูลติดต่อส่วนตัว ลด spam และลดความเสี่ยง social engineering
Example WHOIS/RDAP fields:
Domain Name: example.com
Registrar: Example Registrar, Inc.
Created: 1995-08-14
Expires: 2027-08-13
Nameservers: ns1.example.net, ns2.example.net
Status: clientTransferProhibited
Privacy protection often hides personal registrant details.Domain Age
Domain age คือระยะเวลาตั้งแต่โดเมนถูกจดทะเบียนครั้งแรก หรือจาก record การจดทะเบียนปัจจุบัน
โดเมนเก่าอาจมีประวัติ backlinks หรือ trust signals แต่ความเก่าเพียงอย่างเดียวไม่ได้รับประกันคุณภาพหรือ SEO value
ก่อนซื้อโดเมนเก่า ควรตรวจประวัติการใช้งาน backlink profile บทลงโทษจาก search engine และว่าถูกใช้ทำ spam มาก่อนหรือไม่
วงจรชีวิตของ Domain
โดเมนมีวงจรชีวิตของมัน หากพลาดการต่ออายุ สุดท้ายโดเมนอาจกลับไปเปิดให้คนอื่นจดได้
Typical domain lifecycle:
Available
-> Registered
-> Active registration period
-> Expired
-> Renewal grace period
-> Redemption grace period
-> Pending delete
-> Available again
Exact timing depends on the TLD and registrar policy.อย่าปล่อยให้โดเมนสำคัญหมดอายุ
โดเมนที่หมดอายุอาจถูกซื้อโดยคู่แข่ง นักลงทุนโดเมน หรือผู้ไม่หวังดี เปิด auto-renewal และอัปเดตข้อมูลชำระเงินเสมอ
การ Transfer Domain
Domain transfer คือการย้ายโดเมนจาก registrar หนึ่งไปอีกแห่งหนึ่ง มักทำเพื่อราคา ฟีเจอร์ DNS การสนับสนุน หรือรวมโดเมนไว้ที่เดียว
Registrar transfer process:
1. Unlock the domain at the current registrar
2. Get the EPP/auth code
3. Start transfer at the new registrar
4. Confirm the transfer by email or dashboard
5. Wait for completion, often 5-7 days
Common restrictions:
Cannot transfer within 60 days of registration
Cannot transfer within 60 days of a previous transfer
Domain must be unlocked
EPP/auth code must be validSubdomains
Subdomain คือ prefix หน้าชื่อโดเมนหลัก สร้างได้ผ่าน DNS records และสามารถชี้ไปยังระบบต่าง ๆ ได้
Common subdomain patterns:
www.example.com classic website alias
blog.example.com separate blog
shop.example.com ecommerce storefront
api.example.com API endpoints
staging.example.com pre-production environment
docs.example.com documentation
mail.example.com webmail
app.example.com web applicationDomain เทียบกับ Hosting
Domain name และ web hosting เกี่ยวข้องกัน แต่เป็นคนละสิ่ง
| หัวข้อ | Domain Name | Web Hosting |
|---|---|---|
| คืออะไร? | ที่อยู่ของเว็บไซต์ | server ที่เก็บไฟล์หรือรันแอป |
| เปรียบเทียบ | ที่อยู่บ้าน | บ้านหรืออาคารตามที่อยู่นั้น |
| ซื้อจาก | domain registrar | hosting provider หรือ cloud platform |
| เชื่อมด้วย | DNS records | IP addresses, CNAME และ platform settings |
| แยกกันได้ไหม? | ได้ | ได้ |
คุณจดโดเมนกับบริษัทหนึ่งและ host เว็บไซต์กับอีกบริษัทได้ DNS records คือสิ่งที่เชื่อมทั้งสองเข้าด้วยกัน
แนวทางเลือก Domain ที่ดี
- สั้นและจำง่าย เพื่อให้พิมพ์ พูด และแชร์ได้ง่าย
- เลือก .com เมื่อเหมาะสม เพราะผู้ใช้จำนวนมากยังเดาว่าเว็บคือ .com โดยอัตโนมัติ
- หลีกเลี่ยง hyphens และตัวเลขที่สับสน โดยเฉพาะเมื่อพูดชื่อโดเมนออกเสียง
- สะกดง่าย และหลีกเลี่ยงการสะกดแปลก ๆ ที่คนจำยาก
- ตรวจ trademark ก่อนจดชื่อที่เกี่ยวกับแบรนด์
- คิดถึงการเติบโตในอนาคต เพื่อไม่ให้ชื่อจำกัดทิศทางของโปรเจกต์ภายหลัง
ความปลอดภัยของ Domain
Domain เป็นสินทรัพย์ดิจิทัลที่สำคัญมาก หากเสียการควบคุมอาจทำให้ email, website, app และความน่าเชื่อถือของแบรนด์เสียหาย
| มาตรการ | ป้องกันอะไร | เปิดใช้อย่างไร |
|---|---|---|
| Registrar lock | การ transfer โดยไม่ได้รับอนุญาต | เปิดใน registrar dashboard |
| 2FA | การยึดบัญชี registrar | เปิดใน account security settings |
| WHOIS privacy | การเปิดเผยข้อมูลติดต่อส่วนตัว | เปิด privacy protection หากมี |
| DNSSEC | DNS spoofing และ cache poisoning | ตั้งค่าที่ registrar และ DNS provider |
| Auto-renewal | การหมดอายุโดยไม่ตั้งใจ | เปิดใน billing settings |
| Registry lock | การเปลี่ยนแปลงระดับ registry สำหรับโดเมนสำคัญ | ติดต่อ registrar มักเป็นฟีเจอร์ enterprise |
Domain hijacking เกิดขึ้นจริง
ใช้รหัสผ่านที่แข็งแรงและไม่ซ้ำ เปิด 2FA ใช้ registrar lock ปกป้องอีเมล และจำกัดสิทธิ์บัญชีสำหรับโดเมนสำคัญ
ตรวจอายุ Domain ได้ทันที
ใช้เครื่องมือ Domain Age Checker ฟรีของเราเพื่อดูวันที่จดทะเบียน วันหมดอายุ registrar, nameservers และ WHOIS data ได้ในไม่กี่วินาที
ลองใช้ Domain Age Checkerแหล่งอ้างอิง
- Mockapetris, P. (1987). RFC 1034 - Domain Names: Concepts and Facilities. https://datatracker.ietf.org/doc/html/rfc1034
- Daigle, L. (2004). RFC 3912 - WHOIS Protocol Specification. https://datatracker.ietf.org/doc/html/rfc3912
- Newton, A., et al. (2019). RFC 7483 - JSON Responses for RDAP. https://datatracker.ietf.org/doc/html/rfc7483
- ICANN. Domain Name Registration Process. https://www.icann.org/resources/pages/register-domain-name-2017-06-20-en
- Verisign. Domain Name Industry Brief. https://www.verisign.com/en_US/domain-names/dnib/index.xhtml