Solved

Configuring the DNS

Posted on 2001-09-05
6
181 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

822 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