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.c om
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.c om 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.mycom pany.com but i dont know how to set it up.
Please help me.
Thanking you.
Regards
Faisal
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.c om
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.c om 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.mycom pany.com but i dont know how to set it up.
Please help me.
Thanking you.
Regards
Faisal
Comment