473,396 Members | 1,852 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,396 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 2449
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: 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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.