Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Say I have an IP registered with domain name, and a server on this IP. Now I want to run multiple web sites on this server.

What should I do to serve and simultanesly? I know basic configuration on Apache/HTTPD, and what I need is to mapping to same IP for Should I go through some registration procedures, or some configuration on that server is enough (setup something like BIND, or resolve.conf)?

Your answer don't have to be in detail. I need a direction to look into.

share|improve this question

1 Answer 1

You need all dns records you want to serve resolve to your ip-address.

If you use your isp's domain and they arn't already resolving all subdomains to your ip, you need to get your own domain name to use.

If you already have your own domain, it is resolved by a dns-server (like bind) somewhere. You need to configure it to resolve all subdomains you need to your ip.

Once the dns resolves correctly it is just a matter of configuring your webserver.

share|improve this answer
Thanks. So you mean the DNS system will find the address of , and try to ask that host for IP address of My extremely simple experiment is when I ping or nslookup, I get no answer. (I will get an answer after setup a BIND?) –  Frozen Flame Dec 12 '13 at 7:30
The answer is to add to your DNS records. If you are using BIND, then yes, you would set them up in bind - However if you are using your registrars DNS - which seems to be adviseable here - they will probably let you add it at no cost to the zone file for –  davidgo Dec 12 '13 at 7:59
Say I am, someone nslookup, will the DNS attempt to ask me for an address? –  Frozen Flame Dec 12 '13 at 14:35
@frozen-flame: No. DNS works like this; A computer needs to look up and asks its default DNS server (A). (A) does not know the answer so it in turn asks a root DNS server for .com (B). (B) forwards the request to the DNS-server responsible for (C). IF (C) has an A-record for it will return the information. IF (C) instead has an NS-record for it will further forward the request to that DNS-server (in this case it COULD be your instance of bind). IF (C) has no record the request will return a failure. –  Mattias Åslund Dec 12 '13 at 17:08
@MattiasÅslund: Thanks a lot. So I should ask the registar to server as DNS-server for * –  Frozen Flame Dec 13 '13 at 2:07

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.