LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-21-2004, 12:31 PM   #1
EADTF
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Rep: Reputation: 0
Configuring Apache to Resolve Server Name


Ok so I am new and need some help, I think this should be an easy answer for a "person-in-the-know":

I am running trying to run a web server on my local intranet, on my soon to be replaced Windows 2000 Server, IIS automatically resolves my server name to my web page. Anotherwards, my server name is EADTF, IIS is running and points to the /inetpub/wwwroot/index.php file. Anytime a user types in 'eadtf' in there browser, IIS automatically resolves it.

Now I am trying to get away from Microsoft, so I loaded a full 4-disk version of Fedora-2. I installed everything so I can see what it has to offer, once I learn a bit more I will redo the install with only the components I need.

So I have installed all of the modules to include:
- Apache
- PHP
- MySql
- DNS (BIND)

I went to 'Services' and started Apache, MySQl, DNS.

I went to the config utility for Apache and named the server EADTF.

When I type in the browser (on the linux box) the following it resolves to the Apache Install Welcome Page:

- 127.0.0.1
- EADTF
- localhost

When I goto another computer on the LAN and type EADTF it goes to the standard error page for unresolved pages.

How do I get Linux, DNS, Apache, or whatever to listen for a EADTF request and resolve it to the LAMP install?

Also, if I type the I.P. address of the linux server in a browser window on the LAN it does resolve so I know it's working.

I just need to make it resolve it's name...

Also, I did take the IIS Server offline when I did all this so there is no conflict...

Thank you in advance for whoever can answer this little riddle....

Michael
 
Old 07-21-2004, 12:47 PM   #2
CleonII
Member
 
Registered: May 2003
Location: Buenos Aires, Argentina
Distribution: Debian
Posts: 61

Rep: Reputation: 15
Nothing is wrong whit your Linux. The solutions are two.
if you admin your own DNS you have to make it resolve your hostname whit your IP. take a look at some BIND howto.
Remember if you use this solution, you have to point all your machines to your DNS.
If you use some other DNS like the one your ISP provides you, you have to change in all the machines the hosts file. In linux its in /etc/hosts you have to add a line like this:
x.x.x.x nameoyourserver

where x.x.x.x is the IP of your Linux machine.

in windows you have to modify the file c:\windows\system32\drivers\etc\hosts
and add the following line:
x.x.x.x nameoyourserver

i hope this help you.
 
Old 07-21-2004, 01:30 PM   #3
EADTF
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks but the problem is I am trying to get the linux server to resolve this not the Windows DNS. Currently the Linux Server is getting it's IP dynamically from the local windows DHCP server, I want to make the Linux box use it's own DNS to resolve the EADTF request thus directing it to the Apache / PHP-Nuke Page. I can't change anythign on the current network, only add the Linux Webserver...

So how can I make the BIND program resolve this.

Thanks Again,

Michael
 
Old 07-21-2004, 01:37 PM   #4
CleonII
Member
 
Registered: May 2003
Location: Buenos Aires, Argentina
Distribution: Debian
Posts: 61

Rep: Reputation: 15
You cant because the machines of your network resolves the names in the DNS of your windows (or that i understand).
so or you modify the DNS of your windows server or change the host files of all the machines.
 
Old 07-21-2004, 01:54 PM   #5
EADTF
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Original Poster
Rep: Reputation: 0
huh?


O.k. let's assume I have a network with two computers, one is the Linux (LAMP + PHP-Nuke) the other is a simple client laptop, how can I make the Linux box resolve the Name Request for hhtp://eadtf/ ???



Michael
 
Old 07-21-2004, 02:08 PM   #6
CleonII
Member
 
Registered: May 2003
Location: Buenos Aires, Argentina
Distribution: Debian
Posts: 61

Rep: Reputation: 15
you have to add the following lines to your etc/namedb/named.conf

zone "eadtf." {
type master;
file "s/eadtf.dns";
allow-transfer { none; };
};


and create the following file in /etc/named/s/eadtf.dns

$TTL 3600

eadtf. IN SOA ns1.eadtf. admin.eadtf. (

040630 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ) ; Minimum TTL

; DNS Servers
@ IN NS ns1.eadtf.
@ IN NS ns2.eadtf.

; Machine Names
localhost IN A 127.0.0.1
ns1 IN A x.x.x.x
ns2 IN A x.x.x.x
@ IN A x.x.x.x


(x.x.x.x is the ip of your linux server machine)
and make sure to change the dns of your laptop for the ip of your machine.
for more info in how to use BIND please read some howto. is really simple.
 
Old 07-21-2004, 02:14 PM   #7
EADTF
LQ Newbie
 
Registered: Jul 2004
Posts: 4

Original Poster
Rep: Reputation: 0
O.k. thanks....

It seems as if I am getting closer, how do allow the server to use a dynamic IP address rather than a static one, as stated prior, I will be connecting to a network that runs DHCP. If I create the above files with the current IP address, tomorrow it wont work. IIS lets me do this so Linux must be able to do it. As for reading BIND pubs I have, as I said I am new to this and in the past two day's have not been able to figure it out....

Sincerely,

Michael
 
Old 07-21-2004, 02:20 PM   #8
CleonII
Member
 
Registered: May 2003
Location: Buenos Aires, Argentina
Distribution: Debian
Posts: 61

Rep: Reputation: 15
http://lists.debian.org/debian-user/.../msg01952.html
take a look at this..
 
  


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
Configuring PHP on a Redhat/Apache server Ziggie Linux - Software 8 12-22-2005 11:12 AM
Apache Error I Can't Resolve carlosinfl Linux - Networking 3 11-18-2005 08:27 PM
Configuring my web server with APACHE pkrishna10 Linux - Newbie 2 12-11-2004 07:44 AM
problem in configuring apache server halovivek Linux - Newbie 1 04-30-2004 04:53 PM
Tuts on installing/configuring Apache Web server! Jnox Linux - General 1 01-22-2002 09:38 PM


All times are GMT -5. The time now is 06:30 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration