Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2006
    Posts
    459

    how can i point all the sub-domin to another ip ?

    Hi,


    i host a website with mydomain.com on server-a,

    and there a some websites with the sub domain sub*.mydomain.com on the server,too.



    now,i want to move the websites to another server-b,

    after copy all the data,

    i want to ask how can i point the all sub domain ip to the new server-b directly on server-b?



    thanks



    PS. my server is centos with whm/cpanel

  2. #2
    go to DNS zone in WHM,there click edit DNS zone,then select ur domain name and edit it,below u can able to add A enter for that specific subdomain

  3. #3
    You can use wildcard. And create A record
    Code:
    *  IN  A  IP.ADD.RE.SS
    Or
    Code:
    *.mydomain.com.   IN  A   IP.ADD.RE.SS

    And all subdomain will have point to IP.ADD.RE.SS

  4. #4
    Join Date
    Nov 2006
    Posts
    459
    Quote Originally Posted by rathin View Post
    go to DNS zone in WHM,there click edit DNS zone,then select ur domain name and edit it,below u can able to add A enter for that specific subdomain
    Hi,

    because there are too many sub domain,

    i think this may not be the best way.thanks.


    Quote Originally Posted by ISPserver View Post
    You can use wildcard. And create A record
    Code:
    *  IN  A  IP.ADD.RE.SS
    Or
    Code:
    *.mydomain.com.   IN  A   IP.ADD.RE.SS
    And all subdomain will have point to IP.ADD.RE.SS
    Hi,

    can i ask more detail?

    which file i can edit for this?



    thanks

  5. #5
    Zone file

    at Linux it's usually

    /var/cache/bind/mydomain.com

    Ок may you have tool for manipulate zone records in your panel.

    It's file for example:

    HTML Code:
    /# cat /var/cache/bind/mydomain.com
    $TTL	3600
    mydomain.com.	IN	SOA	ns1.mydomain.com. root.mydomain.com. (2008072701 10800 3600 604800 86400)
    mydomain.com.	IN	NS	 ns1.mydomain.com.
    mydomain.com.	IN	NS	 ns2.mydomain.com.
    mydomain.com.	IN	MX	10 mail
    mydomain.com.	IN	A	 82.xx.58.216
    www	IN	A	 82.xx.58.216
    ftp	IN	A	 82.xx.58.216
    mail	  IN	A	 82.xx.58.216
    smtp	IN	A	 82.xx.58.216
    pop	IN	A	 82.xx.58.216
    mydomain.com.	IN	TXT	 "v=spf1 a mx ~all"

  6. #6
    Join Date
    Feb 2006
    Location
    Kusadasi, Turkey
    Posts
    3,379
    Edit the DNS zone via WHM. But instead of putting a single subdomain, use the wildcard * character to point all domains to an IP address.
    Fraud Record - Stop Fraud Clients, Report Abusive Customers.
    █ Combine your efforts to fight misbehaving clients.

    HarzemDesign - Highest quality, well designed and carefully coded hosting designs. Not cheap though.
    █ Large and awesome portfolio, just visit and see!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •