in reply to Re: hostnamelookups in apache?
in thread hostnamelookups in apache?

Hi, It is Feodora4 on WmWare Workstatin, it is builtin apache server 2.0.54 and built in perl 5.8.6, it has NAT ip with the same external ip as my windows main computer. I tried to run that one-line script, perl -MLWP::Simple -e "getprint 'http://news.google.com/news?ned=us&topic=b&output=rss'" and got 403 on both Win and Unix but on Windows my script runs fine in IE6. Thank you for trying to help guys, i appreciate that! /Alexander

Replies are listed 'Best First'.
Re^3: hostnamelookups in apache?
by imp (Priest) on Oct 12, 2006 at 03:14 UTC
    Fedora 4 uses selinux, which adds restrictions to what httpd processes can do. One of the big restrictions is on the creation of sockets.. which could be a problem when resolving news.google.com

    If this is the case then you can configure it to allow the blocked behaviour. I don't have any personal experience with this, perhaps someone else can offer further advice.

    I am downloading the fedora4 image for vmware now so I can experiment with this further - the topic comes up often enough here.

Re^3: hostnamelookups in apache?
by shmem (Chancellor) on Oct 12, 2006 at 05:18 UTC
    I guess you mean VMware Workstation.
    got 403 on both Win and Unix

    how? running your script on the commandline? where? did the 403 error show up in a browser, the logs, inside a network sniffer?

    but on Windows my script runs fine in IE6.

    Doh! that one must have escaped me. They built a perl interpreter into IE6? Brilliant!

    Your unaccurate way to express your problems (speling negligence let aside) makes it very difficult to help you.

    • check your DNS setup
    • do some hostname lookups from the commandline in your VMware guest
    • as for SeLinux, turn that off for testing purposes (append selinux=off to the kernel line in the grub bootloader)

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
      Hi, Now it works! I used this option "httpd_can_network_connect boolean on" and it works :-) setsebool -P httpd_can_network_connect 1 Thanks everyone and especially imp :) /Alexander