LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-20-2004, 07:10 PM   #1
Dr_Monkey
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
Intranet Web Server


I am using Red Hat Linux 9.0 with Apache as an intranet web server. Only accessible on the intranet by either Windows 98 or XP machines.

I have everything running correctly. I added a line to the Windows HOSTS file so I can connect to the server using drmonkey.loc instead of IP numbers
I added:
192.168.1.150 drmonkey.loc

I want to be able to use sub domains of drmonkey.loc for various web pages. I got apache to work with sub domains but I could only connect to the pages if I added the sub domains to the Windows HOSTS file.
Like:
192.168.1.150 drmonkey.loc
192.168.1.150 admin.drmonkey.loc
192.168.1.150 secure.drmonkey.loc

The problems I am facing is that I don't want to update multiple Windows HOSTS files if I add or change a subdomain.

I used webmin to create a drmonkey.loc zone. I removed the entry from the windows HOSTS file. I updated the DNS on the windows machine to point to my linux box.
drmonkey.loc sends me to the correct page. But admin.drmonkey.loc give an error of admin.drmonkey.loc not found.

I added this to /etc/named.conf
zone "drmonkey.loc" {
type master;
file "/var/named/drmonkey.loc.hosts";
};

I added this to /var/named/drmonkey.loc.hosts
$ttl 38400
drmonkey.loc. IN SOA localhost.localdomain. root.localhost. (
1085097175
10800
3600
604800
38400 )
drmonkey.loc. IN NS localhost.localdomain.
drmonkey.loc. IN A 192.168.1.150

How do I get the DNS server to recognize subdomains of drmonkey.loc?
 
Old 05-20-2004, 11:32 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
If that is a complete listing of your dmonkey.loc zone file, you need to add CNAME entries for

admin.dmonkey.loc and
secure.dmonkey.loc.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Intranet web 09kevin77 Linux - Security 1 11-17-2005 09:48 AM
The best Intranet Mail Server !! hitesh_linux Linux - Networking 8 01-02-2005 09:30 AM
!?ready to use intranet web sites pudhiyavan Linux - Software 1 12-22-2004 02:30 AM
Distro recommendations for Dedicated Router + Firewall + Print Server + Intranet Web Netfreak Linux - Newbie 1 11-18-2004 11:02 AM
Intranet Web Server??? timmy_laf Mandriva 1 01-05-2004 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration