LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-24-2003, 11:34 AM   #1
arikel
LQ Newbie
 
Registered: Mar 2003
Posts: 4

Rep: Reputation: 0
Redhat 7.3, Apache, and Bind


Hi. I'm running Bind and Apache on a Redhat 7.3.
From the server, everything seems to work fine, since :
- i can see my website with "http://192.168.0.1/" in my browser's URL bar (this being the IP address i affected to my eth0)
- i can see my website with "http://localhost/" in my browser's URL bar.
- i can see my website with "http://www.mydomain.com/" in my browser's URL bar (which is the name i wanted to be resolved by Bind).

The trouble comes when i make a test with another machine : i set an XP station with the IP 192.168.0.3, connected it to the server with a hub, and i can ping my server from it, or do telnet sessions, but i can't get to see my web site, may it be with the ip of my server (192.168.0.1) or with the domain name... The browser just tell me to check my network parameters (which i did without more success). I did mention the ip address of my DNS server in the TCP/IP parameters of WinXP.

Thanks for helping.

Last edited by arikel; 03-24-2003 at 11:36 AM.
 
Old 03-24-2003, 11:56 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Do you have a firewall (iptables) installed and running? Maybe you're blocking www access from other machines? What happens when you try to
telnet 192.168.0.1 80
(it connects to www server using telnet).
 
Old 03-25-2003, 03:49 AM   #3
arikel
LQ Newbie
 
Registered: Mar 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks Mara. I had indeed iptables and ipchains running, and now i disabled both, but it didn't help. I noticed, moreover, that i can ping www.mydomain.com from the server even when my ip address is not set yet (but when i try to ping www.mydomain.com from my XP station, it can't), so i guess i have to fix my Bind configuration files... When i telnet 192.168.0.1 80, it just freezes... Here is what i have :

- in /etc/hosts :
127.0.0.1 localhost localhost.localdomain
192.168.0.1 arikel

- in /etc/resolv.conf :
domain mydomain.com
nameserver 127.0.0.1

- in /etc/named.conf :
controls {
inet 127.0.0.1 allow {localhost;} keys {rndckey;};
};
include "/etc/rndc.key";
options {
directory "/var/named/";
};
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa.zone";
};
zone "localhost" {
type master;
file "localhost.zone";
};
zone "mydomain.com" {
type master;
file "mydomain.com.zone";
};


My zone files are in /var/named/

- mydomain.com.zone :
$TTL 86400
@ IN SOA ns.mydomain.com. arikel.mydomain.com.(
1
28800
7200
604800
864000
)
IN NS ns.mydomain.com
IN MX 10 mail.mydomain.com
IN A 192.168.0.1
www IN A 192.168.0.1
mail IN A 192.168.0.1
ns IN A 192.168.0.1
arikel IN A 192.168.0.1


- localhost.zone :
$TTL 86400
@ IN SOA @ arikel.localhost(
1
28800
7200
604800
86400
)
@ IN SOA localhost.
@ IN A 127.0.0.1


I hope with all this, my mistakes and misunderstandings will seem obvious to you. Thanks for helping the real newbie i am.
 
Old 03-25-2003, 01:10 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
What happens when you try to ping 192.168.0.1 from the server. It works correctly, right?
You wrote earlier that you can ping and telnet the server from the XP machine. Using 192.168.0.1? If you still can't access www, it means something's blocking 80 port. Any router with firewalling during the way?
Last thing: have you set XP to use 192.168.0.1 as nameserver?
 
Old 03-26-2003, 02:51 AM   #5
arikel
LQ Newbie
 
Registered: Mar 2003
Posts: 4

Original Poster
Rep: Reputation: 0
I can ping 192.168.0.1 from the server, it does work correctly, and i also can telnet it using 192.168.0.1 from the XP machine.
But i can't ping arikel.mydomain.com or www.mydomain.com from the XP machine, whereas it works fine from the server. I did mention to the XP machine to use 192.168.0.1 as the nameserver. And the server and the XP station are connected together with a simple hub. No router or any manageable device during the way...
 
Old 03-27-2003, 01:58 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It may sound stupid, but are you sure your BIND is running? Try
telnet 192.168.0.1 53
What happens? Is there 'Connection refused'?
 
Old 04-01-2003, 04:13 AM   #7
arikel
LQ Newbie
 
Registered: Mar 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Hi Mara,

i'm quite sure BIND is running, since i get my website with the url www.mydomain.com in a browser on my server... The thing, someone told me elsewhere, seemed that i missed a line in my mydomain.com.zone file : mydomain.com. IN A 192.168.0.1
I've done the correction and now i think the trouble may come rather from Win XP itself... I miss time to work on it for the moment... Thanks anyway : i'm a real beginner, and any suggestion make me learn about something i didn't know at all (these days, for instance, i learnt on firewalls).
See you

Arikel
 
  


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
Partioning for Bind and Apache fail66 Debian 0 12-13-2004 03:36 PM
BIND and Apache trees Linux - Networking 4 07-27-2004 11:12 AM
Apache and BIND configuration help Darshu55 Linux - Newbie 3 11-18-2003 06:54 PM
bind and apache ethanchic Linux From Scratch 2 08-15-2002 01:11 AM
Bind 8 Apache justlinux Linux - Networking 11 07-21-2001 04:38 PM

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

All times are GMT -5. The time now is 10:03 PM.

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