DNSとネームサーバーとは?ドメインとサーバーをつなげる
Webサイトを始める際、必ず出会う「DNS」と「ネームサーバ」。これらが何であるか、どのように機能するのかを理解することは、サイト運営の成功に不可欠です。
この記事では、初心者にも分かりやすくこれらの基本を解説し、スムーズなWebサイト運営のための知識を提供します。
The Complete Comparison of 32 WordPress Hosting Services: Best Picks for Individuals, Businesses, and Overseas Use

「WordPressを始めたい」と思い「WordPress おすすめ」と検索すると、個人用や法人・中小企業向けから海外サーバーや安いサーバーまで、本当にいろいろな記事がヒットします。正直なところ、
- どのサイトを見れば良いのだろう。
- シンプルにわかりやすくサーバーを選びたい!
- 今すぐWordPressを始められるように教えて。
don’t you feel that way? That is why this article carefully introduces handpicked recommendations from 32 hosting services for individuals, companies, domestic use, and overseas use. It is explained by the SEO lead of an app development company that uses hosting services every day.
DNSとは?
DNS(Domain Name System)は、インターネットのアドレス帳とも言えるシステムです。
It converts the domain names we can easily remember into IP addresses that computers can easily understand. Because of this process, you can access a site simply by entering its website address into a browser.
ネームサーバとは?
ネームサーバは、DNSシステム内でドメイン名とIPアドレスの対応関係を保持するサーバです。
ドメインを購入した際、そのドメインがインターネット上で機能するためには、ネームサーバが必須になります。これがあることで、世界中の誰もがあなたのサイトを見つけられるようになるのです。
DNSとネームサーバの設定方法
ドメイン登録
Webサイトを立ち上げる最初のステップは、希望するドメイン名を登録することから始まります。
ネームサーバ指定
ドメインを登録したら、そのドメインで使用するネームサーバを指定する必要があります。レンタルサーバー契約時には、サーバー会社からネームサーバの情報を受け取ることができます。
DNS設定の調整
最後に、ドメイン名とIPアドレスの対応付けを行います。これには、AレコードやMXレコードの設定が含まれます。
Aレコードの設定
Aレコード(Address Record)は、ドメイン名をIPアドレスに対応付けるためのレコードです。例えば、あなたのウェブサイトのドメイン名をウェブサーバーのIPアドレスに紐付ける場合に使用します。
- Access the DNS control panel: Log in to the control panel of the registrar managing the domain or the hosting service.
- Go to the DNS settings: Move to the DNS-related settings section, such as “DNS management” or “DNS settings.”
- Add the A record: Choose the option to add an A record and enter the required information.
Host name: Usually the domain name or subdomain name, such as www.
IP address: Enter the IP address of the server hosting the website. - Save the changes: Save the settings and apply the changes.
MXレコードの設定
MXレコード(Mail Exchange Record)は、ドメイン名で受け取るメールを処理するメールサーバーを指定するためのレコードです。
- Access the DNS control panel: Again, log in to the control panel of the registrar or hosting service managing the domain.
- Go to the DNS settings: Move to the DNS-related settings section.
- Add the MX record: Choose the option to add an MX record and enter the required information.
Priority: If you configure multiple mail servers, this number determines which server receives mail first. The lower the number, the higher the priority.
Mail server address: Enter the domain name of the server that handles the mail, such as mail.example.com. - Save the changes: Save the settings and apply the changes.
注意点と費用
伝播時間

ネームサーバやDNSの設定変更後、その変更がネット上に反映されるまでには時間がかかります。通常、数時間から48時間ほど見ておくと良いでしょう。
セキュリティ
DNSハイジャックのリスクもあるため、信頼できるサービスを選択することが重要です。
費用

ドメイン登録には年間数百円から数千円(ドメインによる)、ネームサーバサービスはレンタルサーバー契約に含まれることが多いですが、専門のDNSサービスを利用する場合は追加費用がかかることがあります。
まとめ
DNSとネームサーバは、Webサイトを運営する上での基礎的な部分です。
これらの知識を身につけることで、Webサイトの立ち上げや管理がぐっとスムーズになります。この記事が、あなたのWebサイト運営の一助となれば幸いです。