cool find.

From: Ian Primus <>
Date: Fri Jan 31 22:20:38 2003

On Sunday, January 26, 2003, at 08:59 AM,
> If you show us the contents of /etc/resolv.conf, /etc/nsswitch.conf,
> /etc/config/static-route.options (if you're going through a gateway
> like a
> local router) or if you're using PPP: /etc/ppp.conf (obscure the
> passwords!), and the output of netstat -ia, netstat -rn, and ifconfig
> -a,
> we might be able to figure it out. Is routed or gated running?
> yp/nis?
> named?

I cat'ed the files and commands, and transferred them through the
network to another machine.




# static-route.options
# The network startup script, /etc/init.d/network, invokes this
# script to set static routes. Site-dependent static routes should
# be put here.
# Because name services are not active when this file is invoked, any
# names used here should be defined in /etc/hosts.
# Read `man route`.
# Since $ROUTE and $QUIET are set in /etc/init.d/network, it is
# to use `route` commands similar to the following here:
# $ROUTE $QUIET add -net 10
# or

$ROUTE $QUIET add net default

output of netstat -ia

Name Mtu Network Address Ipkts Ierrs Opkts
Oerrs Coll
ec0 1500 192.168 sgi_indigo2 122 0 43
0 9
lo0 8304 loopback 2790 0 2790
0 0

output of netstat -rn

Routing tables

Destination Gateway Netmask Flags Refs Use
default UGS 0 0
ec0 UH 19 2
192.168 link#1 0xffffff00 UC 0 0
ec0 UGHS 0 0
192.233.228 link#1 0xffffff00 UCS 0 0
192.233.229 link#1 0xffffff00 UCS 0 0
192.233.230 link#1 0xffffff00 UCS 0 0
192.233.231 link#1 0xffffff80 UCS 0 0
ec0 link#1 0xffffffc0 UCS 0 0
ec0 link#1 0xffffffe0 UCS 0 0
224 link#1 0xf0000000 UCS 0 0
ec0 UGHS 0 0

output of ifconfig -a

        inet netmask 0xffffff00 broadcast
        inet netmask 0xff000000

> You mentioned "your router". Does your router do DNS? If you have
> /etc/resolv.conf pointing to the same nameservers as your router is,
> and
> you also list the router itself, and the router is doing some form of
> NAT,
> chances are that replies to DNS requests from your machine will get
> lost.

My router is a Netgear RT-311. It's set up to be used as a DNS, and
really doesn't do much routing, other than to route incoming traffic on
port 80 to my webserver (when it's actually running)
> What happens if you use nslookup? Can you ping other local hosts by
> name?
> Remote hosts?

I can communicate with machines on the local network via their IP
addresses, and I can also access remote servers if I manually enter the
IP address into a ping command or a netscape window. I cannot ping an
address directly, for example "ping" yields "ping:
Cannot resolve ""(Unknown host)" I have tried nslookup,
and it doesn't work. For some reason, nslookup does work on all the
machines on my network. On the Indigo2, it hangs for a while, then
eventually returns:
        *** Can't find server name for address; Timed out
        *** Can't find server name for address; Timed out
        *** Can't find server name for address; Non-existent
        *** Default servers are not available

On my PowerMac G4 (Mac OS X) I get:
        *** Can't find server name for address Non-existent
        *** Default servers are not available

On my old Linux box (Slackware 8.0 on a K6-233), I get:
        Note: nslookup is deprecated and may be removed from future releases.
        Consider using the `dig' or `host' programs instead. Run nslookup with
        the `-sil[ent]' option to prevent this message from appearing.

        Non-authoritative answer:

The odd thing is that I really didn't give the Linux box any different
information than the Mac. I just assigned an IP address, punched in
"" for a DNS server, and assigned some arbitrary host name.
In the case of the Linux box I jokingly called it "mainframe", even
though it it only used to shuffle files around and for IRC via an old
Wyse terminal. The mac is called "SarkMac" (OK, so I'm not that
creative) I am rather confused about what to use for a domain name on a
small local network. For a while I used 'home' or something. Does it
really matter? Does it have to be uniform? The ironic thing is that I
know a lot about networking and the associated technology, but there
are just a couple little areas I'm fuzzy in, or where the concepts
never quite clicked. This is further complicated by the fact that I use
so many different platforms - a couple flavors of Unix, different
versions of Mac OS and one Windows machine. Everything is called
something different in every system, and some systems have more options
and settings than others. Any help would be appreciated. This is a good
excuse to finally learn these little things I have been ignoring until
now <grin> Thanks for your help!

Ian Primus
Received on Fri Jan 31 2003 - 22:20:38 GMT

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:36:03 BST