SUMMARY (to date) Please help with DNS lookup problem

From: Rachel Polanskis (r.polanskis@nepean.uws.edu.au)
Date: Fri May 17 1996 - 23:49:32 CDT


Hello,

I originally posted with a problem regard DNS lookup
with Netscape on a SPARC IPC running SunOS 4.1.4.

The Netscape browser refuses to use a canonical Domain name (i.e.
www.virago.org.au) for mail or news or ftp, while it prefers an IP number
instead, on my internal network.

Canonical domain names work perfectly for all the hosts I tried on the
Internet.

It also complains that the hostname for the machine it runs on does not
exist, although it is (hopefully) in all the correct places.

The Sun is not connected directly to the Internet - it goes via a Linux PC
running IP MASQUERADE (a linux kernel feature to allow TCP/IP packet
wrappers).

A Solaris IPC connected to the same subnet experiences no problems.

I am not in the DNS - but run a caching named to serve addresses from the Linux
machine to the Suns.

The WWW and News servers in question are on the Linux box, and all machines are
directly connected to each other by ethernet.

I am still having trouble with SunOS 4.1.4 - but nslookup, ping, telnet,
ftp all work. telnet to www.virago.org.au 80 will respond correctly.

Standalone newsreaders (like PINE) correctly find the correct domain name
and I don't need to specify an IP address.

It is Netscape only that is having the problem.
I tried the NIS version of Netscape, and it works for the local subnet,
but not for Internet sites.

I am *not* running NIS - and I have SunOS 4.1.4 setup to use the DNS versions
of libc.

Here are the comments I have had so far, but I still have the problem.

It really is *only* Netscape and no other network application.

##
Rachel,

        I am not sure how your DNS is setup but sunos usualy requires NIS to
do DNS.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mike (Mehran) Salehi mrs@cadem.mc.xerox.com (716) 422-2725
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#

drink@sei.com

I'd have to see your named configuration files to make any kind of real
judgement.

But why not just use NIS internally, and DNS for external sites?

Most linux distributions come with NIS.

##
Check your /etc/nsswitch.conf file, the 'hosts:' line. The keyword
'dns' should appear on that line after 'files'.

-- 
Richard Pieri/Information Services \ Make your mark in the world, or at least
<ratinox@unilab.dfci.harvard.edu>   \ spray in each corner. -A cat's guide to
http://www.dfci.harvard.edu/         \ life

## Your problem might have something to do with the older SunOS, some versions do not use DNS without NIS running, hope this helps, I had a problem similar to this and the FAQ had some answers.

-=o=- -=o=- -=o=- -=o=- -=o=- -=o=- -=o=- A1C Chris Haggard ReSES System Administrator Norad System Support Facility -=o=- -=o=- -=o=- -=o=- -=o=- -=o=- -=o=-

## I think this may be the problem: By default, the SunOS host resolution routines (gethostbyname() calls) use NIS (Yellow Pages) and then refer the query onto DNS if that fails. The problem is that if you do not run NIS then you need to rebuild the C library to have routines that only use DNS for host name resolution. It is a little involved but the instructions are in the latest BIND distribution. If you want to try, you can grab a new version of the shared library from ftp.syd.dms.CSIRO.AU - use the ones in sun4.1.3_u1 directory - they should work. As you noted with Solaris 2.x you can easily switch between NIS and DNS using the config file. If you have more problem or need other help then just shout.

Regards, Shaun.

+- Shaun W. Amy. ------------------------ E-mail: Shaun.Amy@syd.its.CSIRO.AU -+ | NSW Regional Communications Support, Telephone: +61 2 887 8614 | | CSIRO Information Technology Services, Mobile: +61 41 920 9971 | +- P.O. Box 93, North Ryde. 2113. Australia. ------ Fax: +61 2 887 8155 -+

##

You can try this.

Notice that the flag for the first 'default' destination is 'UG' instead of 'U'.

for 'lyvvie', do this:

route delete default 192.168.100.111 route add net default 192.168.100.111 1

I don't have a good explanation why this might work, except for the fact that the gateway for any default address is on the network. Let me know if someone offers a better explanation.

Han Ming

###############

The last two suggestions I tried, but it made no difference, although Han's suggestion seems to be right in accordance now with the with the Solaris machine's routing table.

Thanks to all who have replied so far, but I am still searching for the answer.... I'll summarise again when the answer comes!

Rachel

-- Rachel Polanskis Kingswood, Greater Western Sydney, Australia grove@zeta.org.au http://www.zeta.org.au/~grove/grove.html r.polanskis@nepean.uws.edu.au http://www.nepean.uws.edu.au/library/ "When the revolution comes, I will be shot by both sides"



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:00 CDT