>So, this is the IP of your machine, you should have NAT enabled to
>translate this address into your fixed IP, and somewhere a DNS to
>translate www.yourdomain.com into the same fixed IP.
Now gethostbyname() and gethostbyaddr() works fine. Does it mean
my NAT is OK (Or probably I should understand NAT firstly)? I do
set the forwarding rule for 80 port in my router.
>
>It looks like your NAT doesn't work correctly or the DNS
>conversion isn't working.
Today some of my friends can access the website. My only modification
signicant is add my_public_ip
www.mywebsitename.com entry in the
/etc/hosts? Does it really matter to the outside?
>
>First check if the NAT works, then the DNS. After all, check if
>your ISP block your port 80 or something.
>
How to check NAT? BTW, I got a long traceroute output for my website.
What could it imply?
>Davide
>
>No.
>BTW, If 61.170.245.55 is your external IP, it works. I just checked and
>it can be reached from outside. So, if you have a problem is in the
>DNS resolution.
Cool. How could you get that? my website is
www.dayspot.com, it had
ever been hacked by somebody (web authentication: viking input password).
I have some ethereal records and it seems my ISP's name server has
problems to query my website name (to the dynamic DNS server).
>
>Davide
>
~
Thank You Davide. I have another thing not understood, my route output
is:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.123.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.123.254 0.0.0.0 UG 0 0 0 eth0
Why it is not 192.168.123.1 which is my private IP configured? Is there
any problem?
Best regards,
Wenjie