The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Access Solaris machine over http by hostname dpillay SUN Solaris 1 07-09-2007 06:29 AM
Solaris - unknown hostname - how can I change hostname? XNOR UNIX for Dummies Questions & Answers 1 03-29-2007 10:52 PM
DHCP and Hostnames mr16ga IP Networking 5 05-26-2006 03:17 PM
How to reach to the end of the file? videsh77 UNIX for Dummies Questions & Answers 4 12-08-2004 09:18 PM
newbie question about hostnames angelfly UNIX for Dummies Questions & Answers 1 02-17-2002 08:25 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-26-2008
isellapples isellapples is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 4
Cannot access Sun 10 using Hostname and sun10 cant reach other hostnames

Hi all,

I'm setting up a VM on our ESX server using Sun 10 x86. I've configured the hostname in Sun 10, but no other machine is able to use the hostname to communicate with it (i can however use its IP address)

hostname is set in the /etc/nodename file

my resolv.conf looks like

Code:
domain ent.ad.xyz.com
search xyz.com
nameserver 142.88.nn.nn
nameserver 142.88.nn.yy
nameserver 10.67.nn.nn
I have also replaced the default /etc/nsswitch.conf with /etc/nsswitch.dns so it reads

Code:
..
hosts:        files dns
ipnodes:     files dns
..
with everything else followed by files

I know Ive missed something obvious, because I can't access other machines on the network from the Sun 10 machine using their hostnames either... all other machines are running varying versions of windows

thanks for any help
  #2 (permalink)  
Old 09-26-2008
vishwanathhcl vishwanathhcl is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 12
Hi

follows this steps this could help you out

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

Create a /etc/resolv.conf file specifying the domain this host is in and where the name server is:

domain chocolate.com.
nameserver 192.168.1.1

Remove all lines from your /etc/hosts file, except the localhost and the IP addresses of any local interfaces.

#
# Internet host table
#
127.0.0.1 localhost loghost
192.168.1.1 twix

Check the dependencies of the DNS server service are running:

# svcs -d dns/server
STATE STIME FMRI
online 7:42:27 svc:/network/loopback:default
online 7:42:28 svc:/milestone/network:default
online 7:42:31 svc:/system/filesystem/minimal:default

Start the DNS server service:

# svcadm enable dns/server
# svcs dns/server
STATE STIME FMRI
online 20:43:22 svc:/network/dns/server:default
# pgrep -lf named
712 /usr/sbin/named

Check for errors reported in the /var/adm/messages file. The ::1#953 error relates to security keys and can be ignored:

# tail /var/adm/messages
borrelly named[712]: [daemon.notice] starting BIND 9.2.4
borrelly named[712]: [ID 873579 daemon.notice] command channel listening on 127.0.0.1#953
borrelly named[712]: [daemon.notice] couldn't add command channel ::1#953: address not available
borrelly named[712]: [daemon.notice] running
  #3 (permalink)  
Old 09-26-2008
isellapples isellapples is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 4
thanks, ill work through that and let you know how it goes (though im now randomly getting a 'Failed to Configure IPv4 DHCP interface" error that im gonna have to fix first!)

NB - where ive put xyz.com, nn.yy and all that in my resolv.conf output - they do represent correct values ive made for our network that need to be used, just i didnt want to plaster them all over a public forum

Last edited by isellapples; 09-26-2008 at 06:14 AM..
  #4 (permalink)  
Old 09-26-2008
isellapples isellapples is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 4
No joy I'm afraid

I started again with a fresh, complete installation, then:

-Replaced nsswitch.conf with nsswitch.dns
-created /etc/nodename file, containing hostname (vbracs-sun10)
-configured resolv.conf using my settings from above (obv with numbers instead of letters)

The contents of /etc/hosts

Code:
#
# Internet host table
#
::1             localhost
127.0.0.1       localhost
142.88.130.64   vbracs-sun10    # Added by DHCP
The output of running "svcs -d dns/server"

Code:
STATE          STIME    FMRI
online         15:24:33 svc:/network/loopback:default
online         15:24:39 svc:/milestone/network:default
online         15:24:42 svc:/system/filesystem/local:default
Enabled dns using "svcadm enable dns/server" as suggested

The output of running "svcs dns/server"

Code:
STATE          STIME    FMRI
maintenance    15:34:11 svc:/network/dns/server:default
"pgrep -ld named" gave no output

The output of "tail /var/adm/messages" with several file not found errors...

Code:
Sep 26 15:34:10 vbracs-sun10 named[8294]: [ID 873579 daemon.error] none:0: open: /etc/named.conf: file not found
Sep 26 15:34:10 vbracs-sun10 named[8294]: [ID 873579 daemon.crit] loading configuration: file not found
Sep 26 15:34:10 vbracs-sun10 named[8294]: [ID 873579 daemon.crit] exiting (due to fatal error)
Sep 26 15:34:10 vbracs-sun10 svc.startd[7]: [ID 652011 daemon.warning] svc:/network/dns/server:default: Method "/lib/svc/method/dns-server start default" failed with exit status 1.
Sep 26 15:34:11 vbracs-sun10 named[8305]: [ID 873579 daemon.notice] starting BIND 9.3.4-P1
Sep 26 15:34:11 vbracs-sun10 named[8305]: [ID 873579 daemon.error] none:0: open: /etc/named.conf: file not found
Sep 26 15:34:11 vbracs-sun10 named[8305]: [ID 873579 daemon.crit] loading configuration: file not found
Sep 26 15:34:11 vbracs-sun10 named[8305]: [ID 873579 daemon.crit] exiting (due to fatal error)
Sep 26 15:34:11 vbracs-sun10 svc.startd[7]: [ID 652011 daemon.warning] svc:/network/dns/server:default: Method "/lib/svc/method/dns-server start default" failed with exit status 1.
Sep 26 15:34:11 vbracs-sun10 svc.startd[7]: [ID 748625 daemon.error] network/dns/server:default failed: transitioned to maintenance (see 'svcs -xv' for details)
I've done a search on named.conf all i can find refers to how it is used to configure a DNS server - but as there are already DNS servers configured on our networks (to which I have no access), wouldnt using this cause conflicts? is there not another way? (here's where I say whilst Ive used Linux, I know very little about how Unix works)
  #5 (permalink)  
Old 09-26-2008
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,416
What name service are these other machines using ?

If they can't access the Solaris box by its name but can with its IP address, then it is the name service, presumarily DNS, that isn't properly configured.

If your Solaris box cannot access other machines by their name, then your resolv.conf contains incorrect information.

I'm missing why you are trying to install a DNS server on your Solaris machine given it obtains its address by DHCP.
  #6 (permalink)  
Old 09-29-2008
isellapples isellapples is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 4
hi jlliagre

i wasnt trying to install DNS, as - like you say - its illogical. Its just the line vishwana was going down. The resolv.conf is also configured correctly without question (details are taken from a seperate working Sun 10 machine we have, and are the same as every other machine on our network)

However, i have found the problem - basically, i didn't realise that unix doesnt broadcast the hostname to the network, and as a result our DNS servers wont register it so won't allow it access to the dns services (a security feature). So i just need a way to broadcast the hostname to the network or, failing that, convince IT to manually register the system.

Thanks for your help

Last edited by isellapples; 09-29-2008 at 05:50 AM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0