473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to setup DNS for apache

194 100+
I have successfully setup my DNS Server (BIND) on a IP which is a static ip i.e. at 192.168.1.d (on a CentOS 6 machine)

I have a small network in my office and previously I have to change entry for everyone host on network in /etc/hosts file. But now I have changed their name server to the above IP Address.

I made a domain mycompany.com and added entries for each host in both forward and reverse zone files which is working fine.

I have also installed apache webserver at 192.168.1.d. Previously I was making an entry into the /etc/hosts file for example

192.168.1.d www.mywebsite.com

Now i have setup DNS Server but i dont know how I host websites at my local network. For example if anyone in my network request for a website www.mywebsite.com then they should be redirected to above DNS server and that DNS will tell apache to serve the request.

What changes should i made to get it working? I have tried to make a subdomain like mywebsite.mycompany.com but i dont know how to set it up.

Please help me.

Thanking you.
Regards

Faisal
Apr 1 '12 #1
1 2448
Luuk
1,047 Expert 1GB
you should define an CNAME record for your webserver in your DNS
(link)
Apr 1 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: berehneh | last post by:
i can install apache in windows 2000 professional but when i was to install it in a LAN it cant run correctly when i type http://localhost/ in browser i recieve The page can not find why?
3
by: Andrew Benjamin | last post by:
Hi I have a standalone machine running Mandrake 10 with apache server and PHP installed. The PHP mail() function is working but very slowly. It takes about 10-20 seconds to send a single...
2
by: Mike | last post by:
Hello I'm hoping someone can help me with the following. My son is learning PHP and wants to install an apache test server on our XP pro home computer so he can test his code before uploading...
0
by: Dave Pham | last post by:
I just cleaned my comp, and I am trying to re-config my webserver... I am trying to setup apache 2 so it runs both php4 and php5, I also have two instances of mysql running. I know this can be...
1
by: Joshua McCulloch | last post by:
I have setup Apache 2.0.50 and JBoss 3.2.5 using mod_jk2. My application is defined to operate in the root context (http://servername/) by creating a WEB-INF/jboss-web.xml I am serving static...
7
by: itpcl | last post by:
I have just installed Apache web server and Tomcat. The windows server now can show Servlet/JSP file. What next components should I download and install in order to make the Apache web server to...
3
by: Terry Jones | last post by:
I am trying to setup an Apache web server to accept XML document and use a CGI to process the content of the XML file. My questions are: * When a client performs a POST to the server; assume that...
12
usafshah
by: usafshah | last post by:
HI all, i have a domain abc.info on a remote server and its files are hosted on let say 217.56.34.12, and a subdomain subdomain.abc.info hosted on let say 80.45.1.26 ("/docs/www/") and another...
1
by: Gowri | last post by:
Hello, I am new to Python and am trying to setup Apache to serve Python using mod_python. I'm using a Windows XP box. here is a list of steps i followed for the installation: 1. Installed...
0
Claus Mygind
by: Claus Mygind | last post by:
I am trying to setup Apache 2.2.11.0 on a W2003 server. Nothing fancy just a plain setup. I have installed the same version of Apache on two XP machines with no problem as services. The server...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.