Member Support ~ Linux Admin User Guide ~ Applying Domain Name

Setup DNS
1. create new file db.domain.com in /var/named/ . (domain.com is the domain you want to apply).

2. Type the content of the file as below:
$TTL 86400
@ IN SOA ns1.yourserver.com. root.yourserver.com. (
                20010516 ; Serial
                10800    ; Refresh after 3 hours
                3600     ; Retry after 1 hour
                604800   ; Expire after 1 week
                86400)   ; Minimum TTL of 1 day

              IN NS ns1.yourserver.com.
              IN NS ns1.unisite.net.

localhost        IN        A         127.0.0.1
loopback         IN        CNAME     localhost.

;----------------------------------------------------------------

www                        IN        A        XXX.XXX.XXX.XXX
YYY.YYY.YYYY.YYY.in-addr   IN        PTR      www
domain.com.                IN        A        XXX.XXX.XXX.XXX

XXX.XXX.XXX.XXX : the IP of your server say. 202.181.242.158
YYY.YYY.YYY.YYY : the reverse IP of your server i.e. 158.242.181.202
yourserver.com : the original domain name of your server.

3. Edit /etc/named.conf, append the follow text into the file.

zone "domain.com" {
     type master; 
     file "db.domain.com";
};

4. Restart the DNS.

# /etc/rc.d/init.d/named restart

5. Testing The New DNS Entry.

# nslookup domain.com ns1.yourserver.com


Apply Domain Name with Internic
For Domain name .com, .net and .org, visit http://www.networksolutions.com and fill in the new domain then follow the instruction to register a new domain.

Apply Domain Name with HKNIC
For Domain name .com.hk, .net.hk and .org.hk, visit http://www.hknic.net.hk or fill in form and send the form back to domreg@hknic.net.hk. This is a sample templete

The above registration will takes about 3 ~ 7 days for process.

Note: Single Server User, please send your new Domain name to domain@unisite.net for setup Second DNS. 

Room 1619, Fortune Commercial Building, 362 Sha Tsui Road, Tsuen Wan, N.T.
Tel: (852) 2409-8602    Fax: (852) 2408-8632    E-mail: info@unisite.net