Configuring the DNS

Posted on 2001-09-05
Last Modified: 2010-03-04
iam a newbie to apache and iam palning to have a linux box with apache installed in it. Currently we are using a shared hosting i need to configure apache with our DNS i suppose that this must be configured in the httpd.conf(is it so) Is this the only place i have to do this or how should i do this. Plz tell the procedure.
Question by:webmaster_prodex
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 6463316
1. Configure your DNS to point all names to the IP of your server. This is done in the masterconfig file, which is given in named.conf (or named.boot) depending on your bind. See "man named" for details.

2. In httpd.conf you need lines like these:

BindAddress *
#or BindAddress


# then you need a VirtualHost container like this
# for every virtual site:

DocumentRoot /usr/local/httpd/site1-directory
ServerName www.domain-of.this-server.whatever
# next is just an option
ServerAlias www.another-name.whatever alocalmachinename
# other config commands for this server if needed.

This should be it.

Expert Comment

ID: 6477047
Did Zook's answer help you? If so, please accept his answer.

Author Comment

ID: 6478309
i hav done this already and still iam not able to use the url but iam able to use the ip with the port

what would be the problem

Accepted Solution

Zook earned 50 total points
ID: 6505732
Use "nslookup" to verify your dns and resolver setup.
Does "nslookup" give you the right output, i.e. does your machine ask the right nameserver and do you get the correct IP as an response?

If this doesnt help, tell us more about your configuration and what did you check ...?


Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question