Table of Contents
回复讨论(解决方案)
Home Backend Development PHP Tutorial 什么是二级域名呢

什么是二级域名呢

Jun 23, 2016 pm 01:58 PM
secondary domain

听说申请域名的时候给两个域名,一个是带www的,一个是不带的,又听说不带www的就是二级域名,不知是这样吗,还有,有没有三级域名、四级域名呢,干脆N级域名呢。


回复讨论(解决方案)

如果用各种云服务  就会提供二级域名
例如:abc.sinaapp.com

这么说吧,比如我的域名是www.abcdefg.com
那么我的二级域名可以自己定义吗,还是服务商给我确定呢

这么说吧,比如我的域名是www.abcdefg.com
那么我的二级域名可以自己定义吗,还是服务商给我确定呢



域名管理后台可以设置分类.

域名由 根域、域名 和 主机名 三部分组成
二级域名是指你向域名服务商申请的是不含主机名的域名
即 www.abcdefg.com 的 abcdefg.com 部分,加上主机名的域名由你自己解析

域名由 根域、域名 和 主机名 三部分组成
二级域名是指你向域名服务商申请的是不含主机名的域名
即 www.abcdefg.com 的 abcdefg.com 部分,加上主机名的域名由你自己解析


那如果我想再解析一个二级域名,比如cade.abcdefg.com 是不是说cade就是一台服务器名呢

是的
只要你的域名是支持二级域名的(你可以向服务商确认这一点)

是的
只要你的域名是支持二级域名的(你可以向服务商确认这一点)

那么我是不是说还要额外的交钱给域名商呢,为了这个二级域名

不知道,你该问服务商


是的
只要你的域名是支持二级域名的(你可以向服务商确认这一点)

那么我是不是说还要额外的交钱给域名商呢,为了这个二级域名
到目前为止,我还没见过需要额外交钱的。注册了一个域名,他的子域名随便你用。

只要你有个域名,二级域名解析就可以用,

比如一级域名http://www.abc.com,二级域名是在一级域名下自己定义的一个子域名,比如:http://123.abc.com或http://xyz.abc.com,都是二级域名,二级域名基于一级域名进行解析,三级域名基于二级域名解析,比如设置成功http://xyz.abc.com,再在其底下设置http://abcdefg.xyz.abc.com,就成为三级域名,N级域名层层设置,同样道理可得。

二级域名不是直接在服务器程序的配置文件中设置一下就行了吗

比如一级域名http://www.abc.com,二级域名是在一级域名下自己定义的一个子域名,比如:http://123.abc.com或http://xyz.abc.com,都是二级域名,二级域名基于一级域名进行解析,三级域名基于二级域名解析,比如设置成功http://xyz.abc.com,再在其底下设置http://abcdefg.xyz.abc.com,就成为三级域名,N级域名层层设置,同样道理可得。


如果是自己定义,那么看来使用二级或二级以上的域名就不用交钱才能使用吧?

简单的说,你这里要面对三个商家:注册商、域名解析商、空间(服务器)供应商
注册商只管注册域名如xxx.com,注册时允许你指定一个dns(域名解析商),可更改,这个收费各家区别一般不大
域名解析商帮你解析xxx.com到一个ip(服务器),也能解析前缀xxx.xxx.com到相应ip,是否收费要看服务,一般都会免费提供www这个前缀,就是www.xxx.com
空间供应商就是上面提到那个ip的拥有者,能在上面给你空间存放并开放为web(http)服务,费用也要看服务协议

你现在的状况是可能上面三个商家中的其中两个或者三个都是同一家,就出现合并收费的问题

所以你注册时 最重要是找到一家 可信的域名注册商,你 有权限更改dns,否则你的域名解析权就控制在别人手里了,当出现纠纷,他就能让你的网站找不到(无论你换什么空间,不能指定dns就是白搭),这种事我见得多了。当然,如果法律文件记录你是域名拥有者,你可以向域名管理中心申诉取回控制权,但这些是文书方面的请求,手续是相当麻烦的。

如果你想带前缀的域名不用付费,有两个方法:
1.你自己充当域名解析商这个角色,当然你要有相关的DNS服务器或类似软件,如果子域名不多,不一定要服务器硬件,但带宽和并发数响应能力是一定要满足的
2.现在有一些免费的域名解析商,你可以自己找找,因为涉及到墙的问题,这里就不多说了

一般商家也不会太黑的,找到一家可信的,能自己设置dns,可添加一定数量name记录的就足够了

上面的兄弟说的比较清楚了:

www.baidu.com 一级 ,但是般情况下你直接在浏览器里输入 baidu.com 就可以了,也就是说 www可以省掉。
wenku.baidu.com 为二级,不可省略,最前面不能加www。
三级类似,最左边加域名,跟一个点“.”,后再跟二级。
四级可参考三级.

有点混乱

收费问题还没人解答呢

收费问题还没人解答呢


是你没有看吧?我都说的很清楚了


收费问题还没人解答呢


是你没有看吧?我都说的很清楚了
我指的是二级域名或三级域名的收费



收费问题还没人解答呢


是你没有看吧?我都说的很清楚了
我指的是二级域名或三级域名的收费
我说了要看服务,国际上没有这个收费,只是看DNS服务商是否提供,也就是说各家不同,从免费到天价都有可能
理论上~应该免费,但这个也占服务器资源,所以服务商也可能限制,大商家就有能力无限添加
如果你的注册商不提供多级域名,但可以让你修改指定DNS,你可以指定到一个另外的免费或收费的DNS服务商那里
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

11 Best PHP URL Shortener Scripts (Free and Premium) 11 Best PHP URL Shortener Scripts (Free and Premium) Mar 03, 2025 am 10:49 AM

Long URLs, often cluttered with keywords and tracking parameters, can deter visitors. A URL shortening script offers a solution, creating concise links ideal for social media and other platforms. These scripts are valuable for individual websites a

Working with Flash Session Data in Laravel Working with Flash Session Data in Laravel Mar 12, 2025 pm 05:08 PM

Laravel simplifies handling temporary session data using its intuitive flash methods. This is perfect for displaying brief messages, alerts, or notifications within your application. Data persists only for the subsequent request by default: $request-

Build a React App With a Laravel Back End: Part 2, React Build a React App With a Laravel Back End: Part 2, React Mar 04, 2025 am 09:33 AM

This is the second and final part of the series on building a React application with a Laravel back-end. In the first part of the series, we created a RESTful API using Laravel for a basic product-listing application. In this tutorial, we will be dev

Simplified HTTP Response Mocking in Laravel Tests Simplified HTTP Response Mocking in Laravel Tests Mar 12, 2025 pm 05:09 PM

Laravel provides concise HTTP response simulation syntax, simplifying HTTP interaction testing. This approach significantly reduces code redundancy while making your test simulation more intuitive. The basic implementation provides a variety of response type shortcuts: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

cURL in PHP: How to Use the PHP cURL Extension in REST APIs cURL in PHP: How to Use the PHP cURL Extension in REST APIs Mar 14, 2025 am 11:42 AM

The PHP Client URL (cURL) extension is a powerful tool for developers, enabling seamless interaction with remote servers and REST APIs. By leveraging libcurl, a well-respected multi-protocol file transfer library, PHP cURL facilitates efficient execution of various network protocols, including HTTP, HTTPS, and FTP. This extension offers granular control over HTTP requests, supports multiple concurrent operations, and provides built-in security features.

12 Best PHP Chat Scripts on CodeCanyon 12 Best PHP Chat Scripts on CodeCanyon Mar 13, 2025 pm 12:08 PM

Do you want to provide real-time, instant solutions to your customers' most pressing problems? Live chat lets you have real-time conversations with customers and resolve their problems instantly. It allows you to provide faster service to your custom

Announcement of 2025 PHP Situation Survey Announcement of 2025 PHP Situation Survey Mar 03, 2025 pm 04:20 PM

The 2025 PHP Landscape Survey investigates current PHP development trends. It explores framework usage, deployment methods, and challenges, aiming to provide insights for developers and businesses. The survey anticipates growth in modern PHP versio

Notifications in Laravel Notifications in Laravel Mar 04, 2025 am 09:22 AM

In this article, we're going to explore the notification system in the Laravel web framework. The notification system in Laravel allows you to send notifications to users over different channels. Today, we'll discuss how you can send notifications ov

See all articles