LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Redhat 7.3, Apache, and Bind (https://www.linuxquestions.org/questions/linux-networking-3/redhat-7-3-apache-and-bind-51479/)

arikel 03-24-2003 11:34 AM

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.

Mara 03-24-2003 11:56 AM

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).

arikel 03-25-2003 03:49 AM

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.

Mara 03-25-2003 01:10 PM

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?

arikel 03-26-2003 02:51 AM

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...

Mara 03-27-2003 01:58 PM

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'?

arikel 04-01-2003 04:13 AM

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


All times are GMT -5. The time now is 09:12 PM.