Thanks for your help so far...
did you put in a search line ?
No - I'm not sure what I should put there... do I need one? after I
rebooted I lost all my changes in here anyway... maybe I should switch
off automatic DNS?
This is a simple way, go here and run a scan:
http://scan.sygatetech.com/stealthscan.html
HA! Remember I'm trying to diagnose http not working, so I can't goto
that page! What I would say is that I don't think this is a firewall
issue since I can manually telnet to port 80 of the IP address of a
webserver - it seems more like an application problem - do web clients
do their DNS differently?
what does # netstat -nr tell you ?
shows two routes:
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
I think the second entry there is definitely correct as this is the
gateway for my other Linux machine (where I'm typing this e-mail).
So guessing but is the service running ? try look for
[EMAIL PROTECTED]:/etc # lsof -i -n | egrep 'COMMAND|LISTEN'
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
...
mDNSRespo 5588 nobody 7u IPv4 13156 TCP 127.0.0.1:5335 (LISTEN)
...
Yep, it's running - just like yours.
or
[EMAIL PROTECTED]:/etc # netstat -luntp
Again, similatr output for the DNS stuff.
Is your hosts file setup ? can this box resolv itself ?
/etc/hosts looks just like this:
127.0.0.1 io localhost
I can ping 'io' and it pings localhost, so that's ok.
I ran an strace on "telnet www.yahoo.com 80" and that showed telnet
opening /etc/host.conf and reading the order line (which is
"hosts,bind") - and sure enough it has a look in my hosts file then
tries the lookup:
open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or
directory)
uname({sys="Linux", node="io", ...}) = 0
gettimeofday({1145124365, 54517}, NULL) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("192.168.0.1")}, 28) = 0
fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
gettimeofday({1145124365, 54641}, NULL) = 0
poll([{fd=3, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1
send(3, "\255\310\1\0\0\1\0\0\0\0\0\0\3www\5yahoo\3com\0\0\1\0\1"...,
31, 0) = 31
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
ioctl(3, FIONREAD, [47]) = 0
recvfrom(3,
"\255\310\201\0\0\1\0\1\0\0\0\0\3www\5yahoo\3com\0\0\1\0"..., 1024, 0,
{sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("192.168.0.1")}, [16]) = 47
close(3) = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 2), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fe4000
write(1, "Trying 1.0.0.0...\r\n", 19Trying 1.0.0.0...
) = 19
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
setsockopt(3, SOL_IP, IP_TOS, [16], 4) = 0
connect(3, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("1.0.0.0")}, 16) = -1 ETIMEDOUT (Connection timed out)
write(2, "telnet: connect to address 1.0.0"..., 57telnet: connect to
address 1.0.0.0: Connection timed out
I'm not clever enough to see what's immediately wrong from this...
Thanks,
David.
____________________________________________________
Want to buy your Pack or Services from Mandriva?
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________