Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I create a subdomain from a public IP and an existing domain name ?

I have a website hosted by an external hosting company.:

I have a public IP (not real):

I have a LAN.

What I want to do:

I am developing a web application (php/html/perl) that will need a lot of space for that I have planed to have my own dedicated server. I want to use my own computer and assign it a public IP but the application should be accessed from the following subdomain address:
  • Is it possible to create a subdomain from the cpanel and point it to my public IP address?

  • Do I need to set up maybe a DNS server and a client, what I predict will be tough

I don't necessarily need the step by step on how to achieve this but rather the outline.

share|improve this question
up vote 0 down vote accepted

Its just a matter to define the correct A record for this name in the DNS zone file :    IN A

But this can only be done if you are the actual owner of domain and can manage directly the DNS records. If this domain is owned by your hosting company, that you will need to ask them to do this change.

share|improve this answer

If the server running cpanel also is the primary NS server for your domain, then yes, using these instructions:

share|improve this answer

Is your public IP a fixed(static) or dynamic?.

Assuming it is a static one and your cPanel server is your primary dns server, you can simply add an "A" record to the zone file".

If you have WHM access, use the below link

If you only have the cPanel access, follow the below link

Basically what you need to do is adding the following A record to the zone file    IN A

If your public IP is dynamic and changing, the above methods will not work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.