Re: network traffic etherealed, need your help on the records (LONG)

From: David Efflandt (efflandt_at_xnet.com)
Date: 08/31/03


Date: Sun, 31 Aug 2003 05:26:57 +0000 (UTC)

On 30 Aug 2003 19:56:40 -0700, Wenjie <gokkog@yahoo.com> wrote:
> My friends told me that they cannot ping or access (my website) with my
> public IP. I understand if they use the website name they will have problems
> owing to the bad DNS queries and also my local settting, but why they
> cannot access the IP? For me it is most important to let me friends to
> access the website ASAP. Do you think a local DNS server will help?

Is your firewall blocking ping? Does your ISP block incoming port 80.
Local DNS is not going to help if they cannot access you by IP.

> In another thread, I got hints that my slowing startup of applications
> under KDE/Redhat8 may be caused by a bad FQDN. Do you think that there
> is a simple way to check the FQDN without a DNS server? (I use dynamic
> DNS service for my website, and I did modified /etc/hosts /etc/sysconfig/network
> to reflect the webiste name--IP mapping).

It is best not to alter the 127.0.0.1 line. Either assign hostname or
aliases to your nic IP, or an extra loopback IP like 127.0.0.2.

To see if your hostname resolves from gethostbyname (instead of just DNS)
try this Perl script (call it gethost, run it as ./gethost your_hostname):

#!/usr/bin/perl -w
use Socket;
use strict;
my ($host,$ip,$rhost);
if ($ARGV[0]) {
    $host = shift @ARGV;
} else {
    die "Enter host you want to resolve on commandline\n";
}
print "Looking up: $host\n";
$ip = join(".",unpack("C4",scalar gethostbyname($host)));
print "IP: $ip\n";
$rhost = gethostbyaddr(inet_aton($ip), AF_INET);
print "Reverse lookup: $rhost\n";

> I may have a bad NIC, but why could I access some websites quickly and
> also my website with my LAN?!

Your IP has no name so that could cause some DNS delays trying to resolve
your connecting IP. Although, that is not usually a problem for web
servers unless they have access controls based on hostnames.

> In summary, I agree that it is likely I had a bad DNS configured. As my
> first aim is to let my friends see my website ASAP, which concrete means
> should I embark on?

See if they can traceroute to your IP (check firewall logs). Set up
apache on a different port and see if they can access it with that port in
URL.

-- 
David Efflandt - All spam ignored  http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/


Relevant Pages

  • Re: Internal IIS Sites - DNS/IIS Issues
    ... when you ping ' I tried to ping the site, but it comes back as an "unknown ... point to the DNS server for dns resolution. ... So now> instead of the previous RCC website mentioned, I would like the user to type> http://rcc.simcoepart.com. ... We already had a forward lookup> zone configured, so I added a new host record to the DNS. ...
    (microsoft.public.inetserver.iis)
  • Re: Changing a site from All Assigned to Static IP....
    ... "When I ping the site, the IP I get is the webserver IP, not the IP I ... that means that the DNS server is not properly configured. ... > the website. ...
    (microsoft.public.inetserver.iis)
  • Re: Exchange, SBS and Reverse DNS - Best Practices??
    ... I'm an IT professional who's come to appreciate SBS 2003 in my own workplace, so I recommended it for a family member's business. ... Their email server's DNS records would pass normal reverse lookup checking, but a reverse lookup of their second-level domain name would resolve to another IP address; in fact, the IP address of their website. ...
    (microsoft.public.windows.server.sbs)
  • Re: Exchange, SBS and Reverse DNS - Best Practices??
    ... I am not hosting a public website nor their DNS on the SBS. ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot Access FTP or Company Website (Externally Hosted) - HELP!!!
    ... Start the DNS Management console by Start> Programs> ... Enter the external IP of the website as provided by your ISP or web ... I assume that you used CEICW to configure your SBS. ... Ethernet adapter Server Local Area Connection: ...
    (microsoft.public.windows.server.sbs)