banner

[Rule] Rules  [Home] Main Forum  [Portal] Portal  
[Members] Member Listing  [Statistics] Statistics  [Search] Search  [Reading Room] Reading Room 
[Register] Register  
[Login] Loginhttp  | https  ]
 
Forum Index Thảo luận mạng và thiết bị mạng Cách tạo ns1.domain.com ?  XML
  [Question]   Cách tạo ns1.domain.com ? 04/09/2006 06:52:53 (+0700) | #1 | 20454
sara
Member

[Minus]    0    [Plus]
Joined: 17/05/2003 11:54:05
Messages: 6
Offline
[Profile] [PM]
Tôi có một server chạy Windows Server 2003 Standard và một domain. Tôi muốn tạo một DNS như ns1.domain.com và ns2.domain.com giống những site bán host, để sau này cung cấp host.

Hỏi: Cách làm như thế nào !?
[Up] [Print Copy]
  [Question]   Re: Cách tạo ns1.domain.com ? 04/09/2006 10:22:30 (+0700) | #2 | 20486
[Avatar]
havythoai
HVA Friend

Joined: 05/04/2004 22:59:39
Messages: 562
Offline
[Profile] [PM] [WWW]
This guide will show you the ropes in how to setup cpanel nameservers and configure them properly so you can run ns1 and ns2.yoursite.com. Once your nameservers are setup clients can then use your own private nameservers for their domains.

1. Regiser your domain
Register the domain name you would like to use, you can register a domain http://www.towerhost.com/domains if you need one.This domain will be used as your nameservers - eg ns1.yourdomain.com and ns2.yourdomain.com

2. Additional IPs
Have 2 available IP addresses for your server that aren't in use.You will need to contact you provider to obtain these IP addreses.

3. Registering the Nameservers
Now login to your domain management page for the domain you registered and register ns1.newdomain.com and ns2.newdomain.com as nameservers (registries normally have a special facility for doing that). The registry may also have a facility to propogate these nameservers around the foreign registries - if so, you should use this facility.

These registrations may take a few days to propagate (often as many as 3 days).

4. Reverse DNS
You may also need to get your data centre to enter a reverse DNS pointer for your nameservers. You'll need to let them know each nameserver and its IP address. Sometimes you can suffer non-delivery of mail if you don't so this. Reverse DNS pointers can take a while to propagate.
Setup a reverse on the IP address for your domain

5. Broken NDC/BIND
My version of WHM/CPanel came with a broken NDC. To fix this:

SSH into your box as root.

(a) Type: cd /scripts
(b) Type: ./updatenow
(c) Type: ./fixndc

Go back into WHM, go to the Restart Services section in the left menu and click DNS/Nameserver (BIND).

You will need to do this if you start getting 'ndc' errors when you are doing anything DNS related in WHM.

6. Setup Nameservers In WHM
Go into WHM (Web Host Manager) and select Edit Setup from the Server Setup menu on the left. Enter ns1.newdomain.com in the Primary Nameserver field. Hit 'Assign IP Address', then hit 'Add an A Entry for this nameserver'.
Repeat this process for the Secondary Nameserver field.

7. Tidy Up Junk Nameservers
Go into WHM (Web Host Manager) and select Manage Nameserver IPs from the Server Setup menu on the left. Remove any nameservers you don't recognise. This is just a tidy up exercise in case anyone's set anything up on the box before you.

8. Initial Nameserver Setup
Go into WHM (Web Host Manager) and select Initial NameServer Setup from the Server Setup menu on the left. Run this.

9. Restart BIND
Restart BIND (step 7 restarts BIND, but we've known it to need a proper stop and start for it to work) from SSH with:

service named stop
service named start


10. Manual Checks
I don't know what it is about this process, but it doesn't always work, so there are some things you can check manually via SSH.

/etc/wwwacct.conf
Check that the nameservers are correctly specified on NS, NS2 etc.
EG: scroll to the name servers section.....
NS ns1.yournameserver.com
NS2 ns2.yournameserver.com

/etc/resolv.conf
Check that there are nameserver entries for each IP. There may also be one for 127.0.0.1 - this is okay. I'm led to believe (by the 'man' entry for resolv.conf) that this isn't a particularly important file, but I changed mine to read:

domain mybox.com
search mybox.com
nameserver 127.0.0.1
nameserver 111.111.111.111
nameserver 222.222.222.222

Where 'mybox.com' is the main domain of my server, and '111.111.111.111' and '222.222.222.222' are the IP addresses of my primary and secondary nameservers.

resolv.conf is used to lookup names that are not in FQDN format.

/etc/nameserverips
Check that there are entries for each IP acting as a nameserver.
EG:
IPHERE=ns1.yournameserver.com
IPHERE=ns2.yournameserver.com

http://www.webhostgear.com/11.html

Hopefully, This will help you ! :wink:
[Up] [Print Copy]
  [Question]   Cách tạo ns1.domain.com ? 04/09/2006 10:44:09 (+0700) | #3 | 20492
sara
Member

[Minus]    0    [Plus]
Joined: 17/05/2003 11:54:05
Messages: 6
Offline
[Profile] [PM]
Guide này giành cho Server chạy Linux.
Cám ơn havythoai đã quan tâm đến topic này.
[Up] [Print Copy]
  [Question]   Cách tạo ns1.domain.com ? 04/09/2006 10:44:13 (+0700) | #4 | 20493
doikengheo
HVA Friend

Joined: 31/05/2005 05:51:51
Messages: 486
Location: Đâu nhỉ?
Offline
[Profile] [PM]
sao hổng trans qua luôn đi lão , nếu bận để đêm nay trans luôn cho smilie
Đi một ngày đàng học một sàng dại

Sàng đi sàng lại lấy một tí khôn


http://vietload.com
kho phần mềm trực tuyến
[Up] [Print Copy]
  [Question]   Re: Cách tạo ns1.domain.com ? 04/09/2006 11:02:22 (+0700) | #5 | 20496
subnetwork
Member

[Minus]    0    [Plus]
Joined: 05/09/2004 06:08:09
Messages: 1666
Offline
[Profile] [PM] [WWW] [Yahoo!]

havythoai wrote:
This guide will show you the ropes in how to setup cpanel nameservers and configure them properly so you can run ns1 and ns2.yoursite.com. Once your nameservers are setup clients can then use your own private nameservers for their domains.

1. Regiser your domain
Register the domain name you would like to use, you can register a domain http://www.towerhost.com/domains if you need one.This domain will be used as your nameservers - eg ns1.yourdomain.com and ns2.yourdomain.com

2. Additional IPs
Have 2 available IP addresses for your server that aren't in use.You will need to contact you provider to obtain these IP addreses.

3. Registering the Nameservers
Now login to your domain management page for the domain you registered and register ns1.newdomain.com and ns2.newdomain.com as nameservers (registries normally have a special facility for doing that). The registry may also have a facility to propogate these nameservers around the foreign registries - if so, you should use this facility.

These registrations may take a few days to propagate (often as many as 3 days).

4. Reverse DNS
You may also need to get your data centre to enter a reverse DNS pointer for your nameservers. You'll need to let them know each nameserver and its IP address. Sometimes you can suffer non-delivery of mail if you don't so this. Reverse DNS pointers can take a while to propagate.
Setup a reverse on the IP address for your domain

5. Broken NDC/BIND
My version of WHM/CPanel came with a broken NDC. To fix this:

SSH into your box as root.

(a) Type: cd /scripts
(b) Type: ./updatenow
(c) Type: ./fixndc

Go back into WHM, go to the Restart Services section in the left menu and click DNS/Nameserver (BIND).

You will need to do this if you start getting 'ndc' errors when you are doing anything DNS related in WHM.

6. Setup Nameservers In WHM
Go into WHM (Web Host Manager) and select Edit Setup from the Server Setup menu on the left. Enter ns1.newdomain.com in the Primary Nameserver field. Hit 'Assign IP Address', then hit 'Add an A Entry for this nameserver'.
Repeat this process for the Secondary Nameserver field.

7. Tidy Up Junk Nameservers
Go into WHM (Web Host Manager) and select Manage Nameserver IPs from the Server Setup menu on the left. Remove any nameservers you don't recognise. This is just a tidy up exercise in case anyone's set anything up on the box before you.

8. Initial Nameserver Setup
Go into WHM (Web Host Manager) and select Initial NameServer Setup from the Server Setup menu on the left. Run this.

9. Restart BIND
Restart BIND (step 7 restarts BIND, but we've known it to need a proper stop and start for it to work) from SSH with:

service named stop
service named start


10. Manual Checks
I don't know what it is about this process, but it doesn't always work, so there are some things you can check manually via SSH.

/etc/wwwacct.conf
Check that the nameservers are correctly specified on NS, NS2 etc.
EG: scroll to the name servers section.....
NS ns1.yournameserver.com
NS2 ns2.yournameserver.com

/etc/resolv.conf
Check that there are nameserver entries for each IP. There may also be one for 127.0.0.1 - this is okay. I'm led to believe (by the 'man' entry for resolv.conf) that this isn't a particularly important file, but I changed mine to read:

domain mybox.com
search mybox.com
nameserver 127.0.0.1
nameserver 111.111.111.111
nameserver 222.222.222.222

Where 'mybox.com' is the main domain of my server, and '111.111.111.111' and '222.222.222.222' are the IP addresses of my primary and secondary nameservers.

resolv.conf is used to lookup names that are not in FQDN format.

/etc/nameserverips
Check that there are entries for each IP acting as a nameserver.
EG:
IPHERE=ns1.yournameserver.com
IPHERE=ns2.yournameserver.com

http://www.webhostgear.com/11.html

Hopefully, This will help you ! :wink:  


Câu hỏi trên Windows server mà em lấy BIND trên Linux thì nguy, bây giờ ít ai dám sử dụng BIND vì nó chiếm khá nhiều tài nguyên cho máy chủ .

Thân
Quản lý máy chủ, cài đặt, tư vấn, thiết kế, bảo mật hệ thống máy chủ dùng *nix
http://chamsocmaychu.com
[Up] [Print Copy]
  [Question]   Cách tạo ns1.domain.com ? 04/09/2006 11:10:30 (+0700) | #6 | 20500
[Avatar]
havythoai
HVA Friend

Joined: 05/04/2004 22:59:39
Messages: 562
Offline
[Profile] [PM] [WWW]

sara wrote:
Guide này giành cho Server chạy Linux.
Cám ơn havythoai đã quan tâm đến topic này. 

sorry smilie , đọc nhấm Windows thành Linux smilie ha ha
sao hổng trans qua luôn đi lão , nếu bận để đêm nay trans luôn cho smilie
 

Trans giùm tớ đi lão, tớ bận thi học kỳ Hè smilie , tớ thấy bài này hay, có ích cho người chưa biết (như tui :lolsmilie )
Câu hỏi trên Windows server mà em lấy BIND trên Linux thì nguy, bây giờ ít ai dám sử dụng BIND vì nó chiếm khá nhiều tài nguyên cho máy chủ .  

Thanks anh smilie
[Up] [Print Copy]
  [Question]   Cách tạo ns1.domain.com ? 04/09/2006 14:26:37 (+0700) | #7 | 20532
thangdiablo
HVA Friend

Joined: 11/05/2003 17:31:58
Messages: 734
Offline
[Profile] [PM] [WWW]

sara wrote:
Tôi có một server chạy Windows Server 2003 Standard và một domain. Tôi muốn tạo một DNS như ns1.domain.com và ns2.domain.com giống những site bán host, để sau này cung cấp host.

Hỏi: Cách làm như thế nào !? 


Thông thường những nơi bán hosting họ đều có 2DNS là primary và secondary.
Đây là quy định của RFC với các nhà cung cấp hosting.
Để làm được như vậy bạn chỉ cần tạo trên mỗi DNS server những host A record ns1.domain.com và ns2.domain.com tương ứng với staic IP của từng DNS server.
Hãy sống có Tuệ Giác.
[Up] [Print Copy]
  [Question]   Cách tạo ns1.domain.com ? 04/09/2006 16:42:51 (+0700) | #8 | 20552
sara
Member

[Minus]    0    [Plus]
Joined: 17/05/2003 11:54:05
Messages: 6
Offline
[Profile] [PM]

thangdiablo wrote:

Thông thường những nơi bán hosting họ đều có 2DNS là primary và secondary.
Đây là quy định của RFC với các nhà cung cấp hosting.
Để làm được như vậy bạn chỉ cần tạo trên mỗi DNS server những host A record ns1.domain.com và ns2.domain.com tương ứng với staic IP của từng DNS server. 

Xin lỗi không hiểu. Vì tôi chưa có kinh nghiệm về Server.
Mong nhận được giúp đỡ chi tiết hơn.

(Hiện tại, server chỉ có 1 IP)
[Up] [Print Copy]
  [Question]   Re: Cách tạo ns1.domain.com ? 04/09/2006 21:52:10 (+0700) | #9 | 20572
[Avatar]
havythoai
HVA Friend

Joined: 05/04/2004 22:59:39
Messages: 562
Offline
[Profile] [PM] [WWW]
mình cũng ko rành về setup server .

Thông thường mỗi server đều có 2 Addition IPs, nếu server bạn hiện tại chỉ có 1 IP thì bạn phải liên hệ với Provider để yêu cầu thêm 1 IP nữa (contact qua chức năng support trong server hoặc gọi điện thoại) . chắc rằng đã có 2 IP.

Sau đó đến trang web nào đó đăng ký 1 Domain name VD : http://domainbank.net . Sau khi có Domain, vào trong Control Panel của domain để Order thêm phần ns1.yourdomain.com, ns2.yourdomain.com . Có thể mất 2,3 ngày mới active.

Tiếp đó, bạn có phần mềm ControlPanel như Plesk hoặc HELM cho Windows
Có thể tìm mua và xem Demo ở đây:

Helm Demo : http://www.webhostautomation.com/products/helm/demo.aspx

Plesk Demo : http://www.sw-soft.com/en/products/plesk75win/demo/

Trong 2 trang trên đều có hướng dẫn kỹ thuật. Nghĩa là bạn vào đó để Config DNS ( nói chung add DNS của bạn, và điền IP của server trong đó)

theo mình "nghe ngóng" thì HELM nó ổn định hơn Plesk
[Up] [Print Copy]
  [Question]   Re: Cách tạo ns1.domain.com ? 04/09/2006 23:22:52 (+0700) | #10 | 20589
[Avatar]
TaGiao
Elite Member

[Minus]    0    [Plus]
Joined: 30/08/2004 15:36:37
Messages: 38
Location: Địa Giới
Offline
[Profile] [PM] [Yahoo!]

sara wrote:

thangdiablo wrote:

Thông thường những nơi bán hosting họ đều có 2DNS là primary và secondary.
Đây là quy định của RFC với các nhà cung cấp hosting.
Để làm được như vậy bạn chỉ cần tạo trên mỗi DNS server những host A record ns1.domain.com và ns2.domain.com tương ứng với staic IP của từng DNS server. 

Xin lỗi không hiểu. Vì tôi chưa có kinh nghiệm về Server.
Mong nhận được giúp đỡ chi tiết hơn.

(Hiện tại, server chỉ có 1 IP) 

Sau khi đọc các bài trên thì mình rút ra nhận xét, bạn chưa có 1 Ip tĩnh nào cả. Chỉ có domain thôi. Thực tế việc setup 1 DNS của riêng mình không có gì khó khăn cả. Bạn cần có những thứ sau:
- 1 domain
- ít nhất 1 Ip tĩnh, 2 càng tốt
- 1 Server chạy Win server
- tìm 1 nhà cung cấp DNS động ( free)
- Bạn cho nhà cung cấp đó quản lý domain bằng cách add ns1 và ns2 của domain là của nhà cung cấp đó. Ví dụ: domain gianghohiemac.net được quản lý bởi ns1.abc.com và ns2.abc.com. Tức là khi ta truy vấn đến gianghohiemac.net thì ns1 hoặc ns2 sẽ trả lời địa chỉ Ip của gianghohiemac.net là bao nhiểu để client truy cập đến.
- Bây giờ chúng ta lại vào phần quản lý DNS động của nhà cung cấp, ta tạo ns1.gianghohiemac.net và trỏ vào Ip của máy đinh làm server DNS ( tức là máy có WIn server ấy), ns2 thì sao đây, nếu không có 1 Ip nữa thì chúng ta trỏ vào ns1 smilie
- trên máy server ta cần tạo thêm ns1.gianghohiemac.net trỏ vào chính Ip củ server(Ip public, nói rõ để tránh trường hợp các bạn cài Lan lại lấy Ip Lan thì khốn khổ). ns2 làm tương tự.
----> ta sẽ có tên miền ns1, ns2.gianghohiemac.net. Với gianghohiemac.net có dns là ns1,ns2.abc.com. Với các domain sau này mà ta quản lý có thể add dns là ns1, ns2.gianghohiemac.net.
Happy for you!
[Up] [Print Copy]
  [Question]   Re: Cách tạo ns1.domain.com ? 05/09/2006 00:18:52 (+0700) | #11 | 20603
subnetwork
Member

[Minus]    0    [Plus]
Joined: 05/09/2004 06:08:09
Messages: 1666
Offline
[Profile] [PM] [WWW] [Yahoo!]
Trở lại câu hỏi của tác giả bài viết
Tôi có một server chạy Windows Server 2003 Standard và một domain. Tôi muốn tạo một DNS như ns1.domain.com và ns2.domain.com giống những site bán host, để sau này cung cấp host.  


Yêu cầu bro phải có ít nhất 1 IP tỉnh
đọc ở đây
Code:
http://support.microsoft.com/kb/323445/en-us


Bro cứ việc set up DNS xong sau đó chọn This is the first DNS server on this network, chọn tiếp Yes, create a foward lookup zone nhấn chọn vào dòng Standard primary trong phần Zone name xuất hiện . Nhập tên server của bro vào đây ví dụ tatcavibaxa.org
Chọn dòng Create a new file with this file name, lại chọn yes, create a reverse lookup zone đến đây chọn Standard Primary, ở phần Network ID nhập vào IP tỉnh . Cứ Next cho đến khi hoàn tất .

Câu hỏi đặt ra, cơ quan của vợ tui có IP động không hà, IP tỉnh lấy ở đâu ra . .
Mở DNS ra chọn cái server ở phần Foward lookup nhập vào tatcavibaxa.org , chọn phần Automatic Dynamic update
Lại đến phần Reverse lookup Zone nhập dzô đây cái IP tỉnh, cũng chọn Automatic Dynamic Update . Để cho chắc cú , refresh cái DNS .

Đến đây rồi thì làm cái gì nữa thì ử dụng nslookup để xem cái DNS trên nó OK hay không ? Nếu OK mời tác giả đọc bài viết từ KB của Microsoft tiếp theo vậy . smilie
Quản lý máy chủ, cài đặt, tư vấn, thiết kế, bảo mật hệ thống máy chủ dùng *nix
http://chamsocmaychu.com
[Up] [Print Copy]
  [Question]   Cách tạo ns1.domain.com ? 05/09/2006 01:01:42 (+0700) | #12 | 20613
sara
Member

[Minus]    0    [Plus]
Joined: 17/05/2003 11:54:05
Messages: 6
Offline
[Profile] [PM]
Đây thật sự là một dedicate server nên có IP tĩnh.
Cám ơn câu trả lời của AE, tôi sẽ nghiên cứu thêm. Khi nào potay sẽ post hỏi.
Thanks!
[Up] [Print Copy]
[digg] [delicious] [google] [yahoo] [technorati] [reddit] [stumbleupon]
Go to: 
 Users currently in here 
1 Anonymous

Powered by JForum - Extended by HVAOnline
 hvaonline.net  |  hvaforum.net  |  hvazone.net  |  hvanews.net  |  vnhacker.org
1999 - 2013 © v2012|0504|218|