Solved

Configuring the DNS

Posted on 2001-09-05
6
179 Views
Last Modified: 2010-03-04
hi
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.
0
Comment
Question by:webmaster_prodex
  • 2
6 Comments
 
LVL 1

Expert Comment

by:Zook
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 192.168.1.1

NameVirtualHost 192.168.1.1

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

<VirtualHost 192.168.1.1>
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.
#
</VirtualHost>



This should be it.
cu
Zook
0
 
LVL 3

Expert Comment

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

Author Comment

by:webmaster_prodex
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
0
 
LVL 1

Accepted Solution

by:
Zook earned 50 total points
ID: 6505732
Use "nslookup" to verify your dns and resolver setup.
Does "nslookup my.url.com" 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 ...?

cu
Zook
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now