SUMMARY (to date) Please help with DNS lookup problem

From: Rachel Polanskis (
Date: Fri May 17 1996 - 23:49:32 CDT


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. 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

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

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 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.


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

Mike (Mehran) Salehi (716) 422-2725

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

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
<>   \ spray in each corner. -A cat's guide to         \ 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 route add net default 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 Polanskis Kingswood, Greater Western Sydney, Australia "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