Solaris total newbie - Unknown Host - DNS?

Solaris total newbie - Unknown Host - DNS?

Post by Dave » Wed, 18 May 2005 17:38:31



Hi all

I've just got my hands on an Ultra5 and have installed Solaris 10 on it.
I'm very new to sparcs & Solaris, though I am familiar with linux.
Networking seems to be configured partially, except the box doesn't seem to
be seeing our nameservers.  I can ping IP addresses, but names are not
getting resolved, and I get "unknown host".  I've amended the
/etc/resolv.conf file, but no joy.

Can anyone give me a couple of hints of where  I need to look?  Or failing
that, any really good online resources for Solaris?

cheers

DaveB

 
 
 

Solaris total newbie - Unknown Host - DNS?

Post by Dan Foste » Wed, 18 May 2005 17:37:25



> I've just got my hands on an Ultra5 and have installed Solaris 10 on it.

Congratulations. :-) That's a good machine, and I'm about to reinstall
S10 on mine, too.

Quote:> I'm very new to sparcs & Solaris, though I am familiar with linux.
> Networking seems to be configured partially, except the box doesn't seem to
> be seeing our nameservers.  I can ping IP addresses, but names are not
> getting resolved, and I get "unknown host".  I've amended the
> /etc/resolv.conf file, but no joy.

Perhaps try:

# cp /etc/nsswitch.conf /etc/nsswitch.conf.orig
# cp /etc/nsswitch.dns /etc/nsswitch.conf

Quote:> Can anyone give me a couple of hints of where  I need to look?  Or
> failing that, any really good online resources for Solaris?

There's also http://docs.sun.com

-Dan

 
 
 

Solaris total newbie - Unknown Host - DNS?

Post by Dave » Wed, 18 May 2005 19:02:15


Hi Dan

Cheers for that.  I've had a look on docs.sun.com & check all my hosts &
conf files.  I've also copied those two files over. Workstation now
rebooted, but something still not right.

 Something funny is going on because if I do an ifconfig hme0, it reports my
IP as being 152.57.31.230 and my broadcast addr as being 152.57.255.255.
This is wrong, they should be 152.71.37.230 & 152.71.255.255.
"hostname.hme0" has the correct IP in.

I have a feeling I've seen that "57" figure before, on Windows workstations
that wouldn't connect, but can't remember what caused it.  I'm sure it was
something wrong with TCP/IP on the workstation, it wasn't just a typo.

I've also got an Ultra10 with a bit more power in it (512Mb ram) and a
larger HDD, but it's got a SUN graphics card so I can't connect a VGA
monitor to it yet.  I've just bought a F/M  connector off eBay.  Soon as
that comes through I can install on the Ultra10.  The Ultra5 is struggling a
bit!

Dave



> > I've just got my hands on an Ultra5 and have installed Solaris 10 on it.

> Congratulations. :-) That's a good machine, and I'm about to reinstall
> S10 on mine, too.

> > I'm very new to sparcs & Solaris, though I am familiar with linux.
> > Networking seems to be configured partially, except the box doesn't seem
to
> > be seeing our nameservers.  I can ping IP addresses, but names are not
> > getting resolved, and I get "unknown host".  I've amended the
> > /etc/resolv.conf file, but no joy.

> Perhaps try:

> # cp /etc/nsswitch.conf /etc/nsswitch.conf.orig
> # cp /etc/nsswitch.dns /etc/nsswitch.conf

> > Can anyone give me a couple of hints of where  I need to look?  Or
> > failing that, any really good online resources for Solaris?

> There's also http://docs.sun.com

> -Dan

 
 
 

Solaris total newbie - Unknown Host - DNS?

Post by Dave » Wed, 18 May 2005 19:23:34


Right.  So long as I type in these commands from the shell, it all works.

ifconfig hme0 152.71.37.230

route add default 152.71.0.66

DaveB

Until I reboot.

> Hi Dan

> Cheers for that.  I've had a look on docs.sun.com & check all my hosts &
> conf files.  I've also copied those two files over. Workstation now
> rebooted, but something still not right.

>  Something funny is going on because if I do an ifconfig hme0, it reports
my
> IP as being 152.57.31.230 and my broadcast addr as being 152.57.255.255.
> This is wrong, they should be 152.71.37.230 & 152.71.255.255.
> "hostname.hme0" has the correct IP in.

> I have a feeling I've seen that "57" figure before, on Windows
workstations
> that wouldn't connect, but can't remember what caused it.  I'm sure it was
> something wrong with TCP/IP on the workstation, it wasn't just a typo.

> I've also got an Ultra10 with a bit more power in it (512Mb ram) and a
> larger HDD, but it's got a SUN graphics card so I can't connect a VGA
> monitor to it yet.  I've just bought a F/M  connector off eBay.  Soon as
> that comes through I can install on the Ultra10.  The Ultra5 is struggling
a
> bit!

> Dave




> > > I've just got my hands on an Ultra5 and have installed Solaris 10 on
it.

> > Congratulations. :-) That's a good machine, and I'm about to reinstall
> > S10 on mine, too.

> > > I'm very new to sparcs & Solaris, though I am familiar with linux.
> > > Networking seems to be configured partially, except the box doesn't
seem
> to
> > > be seeing our nameservers.  I can ping IP addresses, but names are not
> > > getting resolved, and I get "unknown host".  I've amended the
> > > /etc/resolv.conf file, but no joy.

> > Perhaps try:

> > # cp /etc/nsswitch.conf /etc/nsswitch.conf.orig
> > # cp /etc/nsswitch.dns /etc/nsswitch.conf

> > > Can anyone give me a couple of hints of where  I need to look?  Or
> > > failing that, any really good online resources for Solaris?

> > There's also http://docs.sun.com

> > -Dan

 
 
 

Solaris total newbie - Unknown Host - DNS?

Post by Dan Foste » Wed, 18 May 2005 19:22:08



> Cheers for that.  I've had a look on docs.sun.com & check all my hosts &
> conf files.  I've also copied those two files over. Workstation now
> rebooted, but something still not right.

>  Something funny is going on because if I do an ifconfig hme0, it reports my
> IP as being 152.57.31.230 and my broadcast addr as being 152.57.255.255.
> This is wrong, they should be 152.71.37.230 & 152.71.255.255.
> "hostname.hme0" has the correct IP in.

Is this a static IP or DHCP'd assignment?

If static, then double check the settings of:

/etc/hosts
/etc/hostname.hme0
/etc/inet/netmasks
/etc/defaultrouter

If you're not sure about proper configuration, you're more than welcome
to post the contents of these files here (or send email).

-Dan

 
 
 

Solaris total newbie - Unknown Host - DNS?

Post by Jürgen Gro » Wed, 18 May 2005 19:49:27



> Hi Dan

> Cheers for that.  I've had a look on docs.sun.com & check all my hosts &
> conf files.  I've also copied those two files over. Workstation now
> rebooted, but something still not right.

>  Something funny is going on because if I do an ifconfig hme0, it reports my
> IP as being 152.57.31.230 and my broadcast addr as being 152.57.255.255.
> This is wrong, they should be 152.71.37.230 & 152.71.255.255.
> "hostname.hme0" has the correct IP in.

Could it be you have "071" instead "71" in hostname.hme0?
71 in octal is 57 in decimal...

Juergen

--
Juergen Gross                Telephone: +49 (0) 89 636 47950
Fujitsu Siemens Computers    Telefax:   +49 (0) 89 636 40638

81739 Muenchen, Germany      Internet:  http://www.fujitsu-siemens.com

 
 
 

Solaris total newbie - Unknown Host - DNS?

Post by Dave » Wed, 18 May 2005 20:49:45


Hi Dan

Static IP.  Here's the contents of "hosts" -

#
# Internet host table
#
127.0.0.1 localhost
152.71.37.230 yultra-01 loghost
152.71.0.66

Here's contents of "defaultrouter"

152.71.0.66

Here's contents of "hostname.hme0"

yultra-01

Here's contents of "netmasks"

#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
#  network-number netmask
#
# The term network-number refers to a number obtained from the Internet
Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
#   128.32.0.0 255.255.255.0
#
152.71.0.0 255.255.000.000

---------------------------------------------
Hi Jrgen - 071 instead of 057? That sounds very feasible, especially since
we've seen it before on Windows workstations, so somewhere there must be a
file with "071" instead of "71" in it!

ta for all the help so far guys!

Dave




> > Cheers for that.  I've had a look on docs.sun.com & check all my hosts &
> > conf files.  I've also copied those two files over. Workstation now
> > rebooted, but something still not right.

> >  Something funny is going on because if I do an ifconfig hme0, it
reports my
> > IP as being 152.57.31.230 and my broadcast addr as being 152.57.255.255.
> > This is wrong, they should be 152.71.37.230 & 152.71.255.255.
> > "hostname.hme0" has the correct IP in.

> Is this a static IP or DHCP'd assignment?

> If static, then double check the settings of:

> /etc/hosts
> /etc/hostname.hme0
> /etc/inet/netmasks
> /etc/defaultrouter

> If you're not sure about proper configuration, you're more than welcome
> to post the contents of these files here (or send email).

> -Dan

 
 
 

Solaris total newbie - Unknown Host - DNS?

Post by Dan Foste » Wed, 18 May 2005 21:14:41



> Hi Dan

> Static IP.  Here's the contents of "hosts" -

> #
> # Internet host table
> #
> 127.0.0.1 localhost
> 152.71.37.230 yultra-01 loghost
> 152.71.0.66

Hmm, that last line should have a hostname attached to it.

Other than that... if you're still stuck after fixing /etc/hosts:

# find /etc -type f|xargs ls -l|grep ^-|awk '{print $NF}'|xargs grep '152\.'

See if anything mentions unexpected 152.x IPs or subnets.

If none of that pans out, you *could* run sys-unconfig from the console
but that's as a *final* resort and is almost never needed.

(That command undoes a lot of things, mostly relating to networking
configuration... but also includes root password zeroing and a few other
non-networking-related stuff.)

It's probably better to not do sys-unconfig and see if you can figure it
out by fixing /etc/hosts or doing the 'find', or try other suggestions
that others may have.

-Dan

 
 
 

Solaris total newbie - Unknown Host - DNS?

Post by Robert Mazu » Thu, 19 May 2005 23:21:40



> Hi Dan

> Static IP.  Here's the contents of "hosts" -

> #
> # Internet host table
> #
> 127.0.0.1 localhost
> 152.71.37.230 yultra-01 loghost
> 152.71.0.66

Have a look in your /etc/nsswitch.conf file.  If you have:

hosts:  files

...you may instead want to try:

hosts:  dns  files

Good luck,
Rob

 
 
 

Solaris total newbie - Unknown Host - DNS?

Post by Dave » Fri, 20 May 2005 19:12:47


Hi Rob

That was the missing bit of info!  I can now resolve addresses at the drop
of a hat. There, I've just resolved a couple whilst I was typing this (I am
VNC-ing from the Sun to an XP machine running Outlook).

Thanks to everyone who helped.  Now to get apache and webmin running...

cheers

DaveB



> > Hi Dan

> > Static IP.  Here's the contents of "hosts" -

> > #
> > # Internet host table
> > #
> > 127.0.0.1 localhost
> > 152.71.37.230 yultra-01 loghost
> > 152.71.0.66

> Have a look in your /etc/nsswitch.conf file.  If you have:

> hosts:  files

> ...you may instead want to try:

> hosts:  dns  files

> Good luck,
> Rob

 
 
 

Solaris total newbie - Unknown Host - DNS?

Post by Robert Mazu » Fri, 20 May 2005 22:41:01



> Hi Rob

> That was the missing bit of info!  I can now resolve addresses at the drop
> of a hat. There, I've just resolved a couple whilst I was typing this (I am
> VNC-ing from the Sun to an XP machine running Outlook).

> Thanks to everyone who helped.  Now to get apache and webmin running...

> cheers

> DaveB

Cool, ya, I was stuck on that for a bit as well upon my first encounters
with Solaris.  Glad you are up and running.

Enjoy!
Rob