NIS + DNS
hello
I am running a NIS service for internal host resolution. I have configured it to fall back to DNS for other hosts by setting B=-b in the Makefile.
The NIS server has /etc/resolv.conf which contains nameserver xx.xx.xx.xx
nameserver yy.yy.yy.yy
where xx is an external resolver for internet hosts
and yy is a resolver for another network to which we connect.
ypserv runs with the -d option and all machines are Solaris 8.
The NIS server will only resolve for internal and yy hosts, not xx.
If i swap their position in /etc/resolv.conf then it will resolve for internal and xx but not yy.
Is my setup correct?
nslookup using either xx or yy resolver as server will return correct addresses.
do you want to resolve using DNS or NIS?
Similar Messages
-
NIS+, DNS server, DHCP
I have installed Solaris 2.8 with all the patches on a PC. I installed NIS+ populating the tables from the files included into the folder /nis+files. Now I want to install DNS server for a small local network made up by two hosts: a Window2000PC and a Solaris 2.8 PC. I want to use DNS server of Solaris 2.8 to test the functionality of a DNS client of the PC. And after I want to install DHCP to test the same funcionality . I should like to make things step by step, first with DNS server and after with DNS server together to DHCP server too, both installed on Solaris 2.8, coexisting .
On the network i have another host ,a router, that gives me the acces to Internet
How do i install DNS server on Solaris 2.8, and DHCP server ? Can someone help me ?
Thank you in advance
MarcelloHi Guys,
I want to thank all for the valuable information.
I thought of sharing my own comments.
I have two SunSparc Ultra10 machines. I want to network them together using a Linksys router (Cisco) so they could communicate and also to be able to access the Internet. I let the router to do the (DHCP) work, however; since the routher doesn't send hostname I always got 'unknown' and I need to have proper hostname to do my training work. So, I've read this page and I thought I could contribute the result of my work.
(assuming my hostname= sys41)
On Solaris 10, all what I did,
1. On /etc/hostname.hme0 .. I've added,
inet sys41
2. I've created /etc/nodename .. and added,
sys41
3. On /etc/default/dhcpagent .. added,
REQUEST_HOSTNAME=yes
actualy, it was there, I just removed the comment (#) and changed it from no to yes
and double checked that I have ,
PARAM_LIST=1,3,6,12,15,28,43
That's all, I didn't need to change anything else nor add any script file or anything.
The following files where not there on my Solaris10 machine,
/etc/init.d/network
/etc/init.d/inetsvc
On Solaris 9,
1. On /etc/hostname.hme0 .. I've added,
inet sys41
2. I've created /etc/nodename .. and added,
sys41
3. On /etc/default/dhcpagent .. added,
REQUEST_HOSTNAME=yes
actualy, it was there, I just removed the comment (#) and changed it from no to yes
and double checked that I have ,
PARAM_LIST=1,3,6,12,15,28,43
I had to add 15,6,28 on my Solaris 9
4. /etc/init.d/network
changed all 'unknown' to 'sys41' which is my hostname
5. couldn't find /etc/init.d/inetsvc !
Then I've deleted /etc/nodename on Solaris 9.0 and still worked fine ..
On Solaris 10, I've deleted /etc/nodename and it didn't work.
So, I guess for Solaris 10 /etc/nodename is very important .. For the Solaris 9, /etc/inet.d/network did the job !!
Hope my comments were helpful... Regards .. -
Database reacting very slowly when enable dns
Hi frennds,
Now i have installed RHEL 5.5 on my server. And installed Oracle Database 11g Enterprise Edition Release 11.2.0.1.0.
My problem is when we set DNS values in network settings for getting connected with internet, application taken too long time to retrieve values from database. If we remove values from DNS and made the server disconnected from internet, then no issue. But we need internet connection in our server.
Previously i have installed RHEL 5.3 and Oracle 10g.. at that time i didn't faced this type of problem.
Please help me to overcome this problem
Thanks in advanceThank u for reply friend.
In network proxy, I have chosen "Direct internet connection". And in "Advanced configuration" tab, ip addresses in Ignore Host List are "localhost" and 127.0.0.0/8.
content in my "resove.conf" file
; generated by /sbin/dhclient-script
nameserver 202.160.161.3
nameserver 202.138.96.2
nameserver 202.138.100.103
content in my "nsswitch.conf" file
# /etc/nsswitch.conf
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
# Legal entries are:
# nisplus or nis+ Use NIS+ (NIS version 3)
# nis or yp Use NIS (NIS version 2), also called YP
# dns Use DNS (Domain Name Service)
# files Use the local files
# db Use the local database (.db) files
# compat Use NIS on compat mode
# hesiod Use Hesiod for user lookups
# [NOTFOUND=return] Stop searching if not found so far
# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
# Example:
#passwd: db files nisplus nis
#shadow: db files nisplus nis
#group: db files nisplus nis
passwd: files
shadow: files
group: files
#hosts: db files nisplus nis dns
hosts: files dns
# Example - obey only what nisplus tells us...
#services: nisplus [NOTFOUND=return] files
#networks: nisplus [NOTFOUND=return] files
#protocols: nisplus [NOTFOUND=return] files
#rpc: nisplus [NOTFOUND=return] files
#ethers: nisplus [NOTFOUND=return] files
#netmasks: nisplus [NOTFOUND=return] files
bootparams: nisplus [NOTFOUND=return] files
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files
netgroup: nisplus
publickey: nisplus
automount: files nisplus
aliases: files nisplus
Result by $netstat -ap | grep '[0-9]\.[0-9]'
[oracle@myserver ~]$ netstat -ap | grep '[0-9]\.[0-9]'
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 192.168.0.197:61266 maa03s16-in-f0.1e100.:https ESTABLISHED -
tcp 0 0 192.168.0.197:16566 par03s12-in-f15.1e100:https TIME_WAIT -
tcp 0 0 192.168.0.197:27660 bom03s02-in-f21.1e100:https ESTABLISHED -
tcp 0 0 ::ffff:192.168.0.197:16355 ::ffff:192.168.0:ricardo-lm ESTABLISHED -
tcp 0 0 ::ffff:192.168.0.197:39622 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39621 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39618 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39619 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39616 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39598 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39597 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39595 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39614 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39613 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39611 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39608 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39609 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39606 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39605 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39603 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39600 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.168.0.197:39601 ::ffff:192.168.0.1:ncube-lm TIME_WAIT -
tcp 0 0 ::ffff:192.1:personal-agent ::ffff:192.168.0.212:44151 ESTABLISHED -
tcp 0 0 ::ffff:192.1:personal-agent ::ffff:192.168.0.212:44152 ESTABLISHED -
unix 2 [ ACC ] STREAM LISTENING 866187 9776/tnslsnr /var/tmp/.oracle/s#9776.1
unix 2 [ ACC ] STREAM LISTENING 866192 9776/tnslsnr /var/tmp/.oracle/s#9776.2
unix 2 [ ACC ] STREAM LISTENING 12186 - /tmp/scim-bridge-0.3.0.socket-0@localhost:0.0
unix 3 [ ] STREAM CONNECTED 997577 - /tmp/scim-bridge-0.3.0.socket-0@localhost:0.0
unix 3 [ ] STREAM CONNECTED 867200 - /tmp/scim-bridge-0.3.0.socket-0@localhost:0.0
unix 3 [ ] STREAM CONNECTED 328869 - /tmp/scim-bridge-0.3.0.socket-0@localhost:0.0
unix 3 [ ] STREAM CONNECTED 166231 - /tmp/scim-bridge-0.3.0.socket-0@localhost:0.0
unix 3 [ ] STREAM CONNECTED 12192 - /tmp/scim-bridge-0.3.0.socket-0@localhost:0.0
while i was trying "$netstat -ap | grep '[0-9]\.[0-9]' | grep ':1521'" , following information was displayed
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
And i had logged in as root and try for netstat -ap | grep '[0-9]\.[0-9]' | grep ':1521... No one result came.
I have installed Apache tomcat and oracle database in same server. Then In my case should i include anything in hosts file?
Edited by: 931246 on Feb 27, 2013 11:45 PM -
How to connect sun solaris 10 on sparc to the internet?
hello all. i don't know anything about sun solaris 10.
after installing sun solaris 10 into my sparc pc, i need to register it through internet.
but i don't know how to connect to internet through LAN at my campus. =(
Please help me & give me details how to connect to internet?Go to docs.sun.com and get the "system administration guide: IP services". This will give you info on how to configure the network card and tcp/ip config files. Since you just installed this, you must have told the install process that the system was not connected to the network, otherwise it would have asked you for name service, hostname, etc. and configured this info for you.
First you need to get info from your network/lan admin on an ip address, netmask, gateway, NIS/NIS+/DNS server, etc.
If the LAN uses DHCP, then see the "DHCP" section of the IP Services guide.
If the LAN uses issued IP addresses, then with the info provided by your network admin in hand, you can do 1.) sys-unconfig to force the system to return to the part of the install where it will ask you for the info and configure it for your -OR- take the info provided and configure the appropriate files specified in the IP Services guide. -
Solaris 2.6 upgrade to version 8 on SUN ULTRA 10
Dear Mr. or Mrs:
I met the same question as uxdms who left the message on Dec 20,2001.
When I was trying to upgrade from solaris 2.6 to 8 release , there is "failed" warning and the upgrade isn't created.
There is a detailed info:
Mechine: SUN ULTRA 10
Media:
Solaris 8 installation -- SPARC Platform Edition
Solaris 8 software 1 of 2 -- SPARC Platform Edition
Solaris 8 software 2 of 2 -- SPARC Platform Edition
Installation step:
Accordidng to the guide of installation, run step by step,
and there are some special steps below:
(1) use the /dev/dsk /c0t0d0s4 as disk slice to upgrade.
(2) selet networked
(3) don't use DHCP
(4) disable IPv6
(5) no NIS+, NIS, DNS ..
.... displaying the wolcome to solaris dialog box
(1) Solaris 8 installation SPARC Platform Edition is ejected.
(2) prompted to insert the Solaris 8 software 1 of 2.
(3)After selecting serial the dialog box of the upgrade..
(4)system prompted upgrading...
initialation is done.
Checking file system is done.
(5) There is a installation summary displayed:
installation summary
The solaris installation status is shown below
product status infor.
Solaris 8 software Failed Detailed(button)
After click the Detailed button, there is a dialog box
Failed:
Log file: /a/var/sadm.system/logs/upgrade_log
Question is:
I can't find the file of upgrade_log , and the webstart install stops on it.
I appreciate for your kind help
Melanie
the webstart install stops on initalization -- with 'failed' warningHi,
If this problem is reproduceable, provide me the exact console error (failed) message to further investigate on this issue.
Senthilkumar
Developer Technical Support
Sun Microsystems, Inc.
http://www.sun.com/developers/support -
Make nslookup read /etc/hosts file
Dear,
OS: OUL5x64
my nslookup resolve the name thru dns server.
question :
how to make nslookup resolves name through /etc/hosts file.
i do have /etc/resolv.conf and /etc/nsswitch.conf file
here is my nsswitch.conf
/etc/nsswitch.conf
#hosts: db files nisplus nis dns
hosts: files
but it never uses the file to resolve the name.
how can i force it to read /etc/hosts file first
Thanks in advance!Perhaps it would help to elaborate on WHY you want nslookup to use the /etc/hosts file?
If you look at the the name of the nslookup utility, it quite probably is an abbreviation of "nameserver lookup". That strongly suggests it is a tool for querying nameservers.
NOT a tool to debug the name lookups of your operating system.
On the platforms I use (I don't use HPUX), you can query and set the nameserver nslookup uses. I would consider it a bug if the nslookup tool uses /etc/hosts if set in nsswitch.conf.
this is how I lookup what server is set for the utility:
$ nslookup
serverDefault server: 10.0.1.1
Address: 10.0.1.1#53this is how nslookup responds to a query:
nu.nlServer: 10.0.1.1
Address: 10.0.1.1#53
Non-authoritative answer:
Name: nu.nl
Address: 62.69.184.53
Name: nu.nl
Address: 62.69.179.198(I don't know how the "jive quote" comes in, it is supposed to be a "bigger than" sign) -
Hi there,
I've been reinstalling 11.1.0.7 from scratch on a CentOS-5.3 x86-64 system:
- Install 11.1.0.6
- Patch 6890831 : 11g Release 1 (11.1.0.7) Patch Set 1 for Linux x86-64
- Patch 7486407 : OLAP A PATCH FOR 11.1.0.7
- Patch 8290478 : Critical Patch Update April 2009
The DB works fine, however OEM crashes after a few seconds. I've tried to reinstall the reposistory:
# emca -deconfig dbcontrol db -repos drop
# emca -config dbcontrol db -repos create
... blah blah ...
Do you wish to continue? [yes(Y)/no(N)]: y
Apr 30, 2009 2:03:28 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/oracle/cfgtoollogs/emca/csi/emca_2009_04_30_02_02_40.lo g.
Apr 30, 2009 2:03:29 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Apr 30, 2009 2:08:14 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Apr 30, 2009 2:08:22 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Apr 30, 2009 2:09:36 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Apr 30, 2009 2:09:38 AM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
INFO: Software library configured successfully.
Apr 30, 2009 2:09:38 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Deploying Provisioning archives ...
Apr 30, 2009 2:10:03 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Provisioning archives deployed successfully.
Apr 30, 2009 2:10:03 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Apr 30, 2009 2:10:27 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Apr 30, 2009 2:10:27 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Apr 30, 2009 2:13:33 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Apr 30, 2009 2:13:33 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://csipe:5500/em <<<<<<<<<<<
Apr 30, 2009 2:13:56 AM oracle.sysman.emcp.EMDBPostConfig invoke
Enterprise Manager configuration completed successfully
FINISHED EMCA at Apr 30, 2009 2:13:56 AMEM Agent seems to think everything is ok :
# emctl status agent
Oracle Enterprise Manager 11g Database Control Release 11.1.0.7.0
Copyright (c) 1996, 2008 Oracle Corporation. All rights reserved.
Agent Version : 10.2.0.4.0
OMS Version : 10.2.0.4.0
Protocol Version : 10.2.0.4.0
Agent Home : /opt/oracle/db11g/csipe_csi
Agent binaries : /opt/oracle/db11g
Agent Process ID : 17226
Parent Process ID : 17173
Agent URL : https://csipe:3938/emd/main
Repository URL : https://csipe:5500/em/upload/
Started at : 2009-04-30 02:10:29
Started by user : oracle
Last Reload : 2009-04-30 02:10:29
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 62
Size of XML files pending upload(MB) : 8.36
Available disk space on upload filesystem : 89.84%
Data channel upload directory : /opt/oracle/db11g/csipe_csi/sysman/recv
Last attempted heartbeat to OMS : 2009-04-30 02:38:04
Last successful heartbeat to OMS : 2009-04-30 02:11:19
---------------------------------------------------------------However dbconsole has crashed, and I have the following errors in log files (btw iptables and selinux are off):
In emagent.trc :
2009-04-30 02:10:29,281 Thread-1168533360 WARN http: snmehl_connect: connect failed to (csipe:5500): Connection refused (error = 111)
2009-04-30 02:10:29,281 Thread-1168533360 ERROR pingManager: nmepm_pingReposURL: Cannot connect to https://csipe:5500/em/upload/: retStatus=-32In emdctl.trc:
2009-04-30 02:10:13,572 Thread-4105176992 WARN http: snmehl_connect: connect failed to (csipe:3938): Connection refused (error = 111)
2009-04-30 02:10:13,573 Thread-4105176992 ERROR main: nmectla_agentctl: Error connecting to http://csipe:3938/emd/main. Returning status code 1
2009-04-30 02:10:32,637 Thread-2027689888 WARN http: snmehl_connect: connect failed to (csipe:5500): Connection refused (error = 111)
2009-04-30 02:10:34,676 Thread-29771680 WARN http: snmehl_connect: connect failed to (csipe:5500): Connection refused (error = 111)In emoms.log:
2009-04-30 02:10:55,986 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.422 - Integration Class not found: oracle.sysman.pp.sidb.ui.intg.SIDBP
rovisioningIntegration
2009-04-30 02:10:56,149 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.422 - Integration Class not found: oracle.sysman.pp.racprov.ui.intg.RA
CProvIntegration
2009-04-30 02:10:56,150 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.422 - Integration Class not found: oracle.sysman.pp.ec.ui.intg.ExtendC
lusterIntegration
2009-04-30 02:10:56,151 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.422 - Integration Class not found: oracle.sysman.pp.dn.ui.intg.DltNode
Integration
2009-04-30 02:10:56,152 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.422 - Integration Class not found: oracle.sysman.pp.common.ui.intg.Pro
vCommonIntegration
2009-04-30 02:10:56,153 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.422 - Integration Class not found: oracle.sysman.pp.bpelprov.ui.intg.B
PELProvisioningIntegration
2009-04-30 02:10:58,741 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.422 - Integration Class not found: oracle.sysman.emCLI.CLIIntg
2009-04-30 02:10:58,742 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.422 - Integration Class not found: oracle.sysman.emCLI.CLIDownloadIntg
2009-04-30 02:10:59,753 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.422 - Integration Class not found: oracle.sysman.eml.target.slb.common
.SLBIntegration
2009-04-30 02:11:00,585 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.422 - Integration Class not found: oracle.sysman.pp.paf.sample.ui.intg
.PAFDemoIntegration
2009-04-30 02:11:00,586 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.422 - Integration Class not found: oracle.sysman.pp.asprov.ui.intg.ASP
rovisioningIntegration
2009-04-30 02:11:11,168 [PAFDaemon] WARN jdbc.ConnectionCache _getConnection.352 - Io exception: Socket read timed out
java.sql.SQLException: Io exception: Socket read timed out
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:77)In alert.log, lots of:
Fatal NI connect error 12537, connecting to:
(LOCAL=NO)
VERSION INFORMATION:
TNS for Linux: Version 11.1.0.7.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
Time: 30-APR-2009 02:15:17
Tracing not turned on.
Tns error struct:
ns main err code: 12537
TNS-12537: TNS:connection closed
ns secondary err code: 12560
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
ORA-609 : opiodr aborting process unknown ospid (18649_47289593456608)I've found nothing similar anywhere on the net. Does anyone here have an idea ? This is driving me nuts, please help if you can !
Thanks,
ChrisHi Hub,
I think you got it just right ! :-)
You wrote:
Doc ID: 430200.1
Subject: EM Throws Core Dumps and EMAgent is Thrashing
The article says:Cause
The nscd daemon may have gone rogue causing EM Agent to crash. The nscd is a OS daemon that provides a cache for the most common name service requests to improve performance (eg. LDAP, NIS, DNS etc...)The nscd server was stopped on this system for whatever reason, probably me being overzealous in stopping unneeded services:
# chkconfig --list|grep nscd
nscd 0:off 1:off 2:off 3:off 4:off 5:off 6:offSo I just had to start nscd and everything seems to be working perfectly now.
Thanks a lot for your help (you saved my sanity for today) !
Chris -
Query on gethostbyname_r
I am executing the following code and call to gethostbyname_r is populating the variable "err" with error 22( einval)
// get host address
char namebuf[1024];
int err = 0;
struct hostent host;
struct hostent * hostpointer = &host;
gethostbyname_r(hostname, hostpointer, namebuf, 1024, &err);
//hostname is a valid "const char*" with value "master".
//The file /etc/nsswitch.conf has the entry
hosts: files nis dns
//Also there exists an entry for "master" in /etc/hosts file.
Does returning an errno 22 (EINVAL) mean that the call to gethostbyname_r() has failed?
What could be the probable reasons for gethostbyname_r() returning EINVAL error code?I am executing the following code and call to gethostbyname_r is populating the variable "err" with error 22( einval)
// get host address
char namebuf[1024];
int err = 0;
struct hostent host;
struct hostent * hostpointer = &host;
gethostbyname_r(hostname, hostpointer, namebuf, 1024, &err); -
Solaris 10 Milestone Dependency
Hi all,
I am running Oracle Solaris 10u8 on a x86 Machine.
I have read in Solaris Admin 2 document and see that there is a special service in Solaris 10 named "Milestone".
SA2 document saids:
"A milestone is a special type of service which is made up of a defined set of other services.
A milestone can be regarded as a system state to reach. This system state requires a defined set of services to be running. These services depend on other services being available. Hence, there is a hierarchy of dependency relationships."
In my machine, I tried to issue below command to find all the milestones in Solaris OS:
root@x4150 # svcs | grep milestone
online Oct_14 svc:/milestone/name-services:default
online Oct_14 svc:/milestone/devices:default
online Oct_14 svc:/milestone/network:default
online Oct_14 svc:/milestone/single-user:default
online Oct_14 svc:/milestone/sysconfig:default
online Oct_14 svc:/milestone/multi-user:default
online Oct_14 svc:/milestone/multi-user-server:default
However, I see that the "svc:/milestone/name-services:default" milestone is ONLINE despite of the services on which it depends are all disabled.
root@x4150 # svcs -d svc:/milestone/name-services:default
STATE STIME FMRI
disabled Oct_14 svc:/network/rpc/nisplus:default
disabled Oct_14 svc:/network/nis/client:default
disabled Oct_14 svc:/network/dns/client:default
disabled Oct_14 svc:/network/ldap/client:default
I do not understand why the "svc:/milestone/name-services:default" milestone can be ONLINE. I think that all 4 services (nisplus, nis, dns and ldap) should be ONLINE before this milestone can be ONLINE.
Please help me to understand this situation. Is the any misunderstand of me about Milestone in Solaris here?
Thanks so much for any help and suggestion.
BR,
HuyNQ.The service manifest for milestone/name-services defines that the grouping for all 4 services it depends on is "optional_all".
That means these services must be online, disabled or in maintenance. The other types of grouping are require_all, require_any and exclude_all.
# svcs -l milestone/name-services
fmri svc:/milestone/name-services:default
name name services milestone
enabled true
state online
next_state none
state_time Sun Aug 01 16:17:38 2010
logfile /var/svc/log/milestone-name-services:default.log
restarter svc:/system/svc/restarter:default
dependency optional_all/none svc:/network/dns/client (online)
dependency optional_all/none svc:/network/ldap/client (disabled)
dependency optional_all/none svc:/network/nis/client (disabled)
dependency optional_all/none svc:/network/rpc/nisplus (disabled) -
Solairs 10 installation did not start inetd
Has anyone experienced this and/or knows why it happens or how to solve the issue?
Have recently installed Solaris 10 on an E450 with no visable issues. Everything went through smoothly:
Chose to use the Full Installation with OEM support.
Manually configured the disk layouts.
Manually configured the network information.
Chose not to use any protocols like NIS, DNS etc...
The system came up cleanly. I could ping the default router and connect to other servers from this one. However, I could not connect to this server from anywhere else.
I found that /network/telnet was labelled as uninitialized and /network/inetd was offline.
Nothing I did seem to make them work.
I tried svcadm enable -r /network/inetd which didn't report any errors but didn't make any difference either.
In the end, and reading something from a post on this forum, I did a sys-unconfig, booted the system back up, answered all the network config questions again with the same answers as on the initial install.
The system same back up, I checked for inetd and telnet and they were both online this time.
So, can anyone shed any light on this?
Regards
MattYou probably should have tested with "svcs -x" which services
didn't start correctly.
The inetd service depends on a few other services, and I guess one
of them had a problem. -
Boot gives error message "RPC: Timed out"
All,
I had to configure my solaris 2.7 machine for networkring.
I used the sys-unconfig command because I was not sure about which files I had to modify.
The sys-unconfig did not work and I ended up modifiing the files anyway.
However now when I reboot I get:
RPC: TImed out and the system hangs and goes into the config questions.
Can anyone tell me how to get rid of this hang and stop the config questions ( NIS+, NIS, DNS, NONE ) from comming up.
How can I get the rpc time out error to stopHi
Try booting cdrom into single user and mounting the root filesystem. Then
check the following files:
/etc/hosts -- should have your hostname and ip address in it
/etc/nsswitch.conf -- if you don't want DNS, NIS etc, make sure this looks like nsswitch.files
/etc/nodename -- this should have your host name in it
/etc/rc2.d
etc/rc3.d -- check that the start scripts for NIS, NIS+ are disabled from here
/etc/netmask -- check you have the correct netmask set in here
/etc/hostname.hme0 -- this should have just the hostname in it
Also look for a default router being correctly set ( if your using files )
Reboot again and see if it comes up OK, there maybe some other things that need fixing,
in which case you may have to boot cdrom again.
regards -
Microsoft Windows 2000 Server and Solaris8 Interoperability?
My main server is a Windows NT based.
The Windows Services for UNIX2.0 is already installed in it.
I would like to know how am I able to access the Solaris machine from here.
I have problems trying to figure out which naming service for the Solaris machine (NIS, NIS+, DNS or Others). Which should I select?
Thanks in advance.
Tony.Then I'd recommend 2003 SP 1
Note, if you do have to slice and then re-assemble the volumes on your 2K server, be sure to do concatenated sets, NOT striped sets, from within Disk Administrator. If you stripe slices on the same RAID set, you're going to cause TONS of extra head seeking, as it tries to read from stripes on different sections of the SAME disk. There will be no performance penalty with concatenated slices, because it will always be reading off all 7 spindles. -
How can I dump this installation parameters from other systems ?
Hi there !
I'm currently installing a new Solaris 10 system (Sun fire), but I'm not sure about some parameters that are asked during the installation.
I'd like to check what those parameters are on another SUN system installed in my LAB.
Those parameters are the Locale, Default route and Name service :
Select a Locale
0. English (C - 7-bit ASCII)
1. Canada (English) (UTF-8)
2. Canada-English (ISO8859-1)
3. U.S.A. (en_US.ISO8859-1)
4. U.S.A. (en_US.ISO8859-15)
5. Go Back to Previous Screen
Default Route for bge0 ??
Name service
������������������������
[ ] NIS+
[ ] NIS
[ ] DNS
[ ] LDAP
[X] None
Is it possible to check what was selected on another SUN server I have here ?
Running which commands on the server ?
Many thanks !chrisfromgoodworth clatford wrote:
How can I import music into iTunes from another media.
I have a library downloaded from a Sony Ericsson W715 into "Media Go" and I want to transfer to iTunes and then into my iPhone 4.
Is this possible ?
Chris
Possibly. Media Go supports a variety of music formats, some of which can be imported in to iTunes and then synced on to an iPhone, however some of its formats cannot be imported in to iTunes.
See http://mediago.sony.com/enu/supported-file-formats/ for a list of formats supported by Media Go. iTunes for Windows supports MP3, AAC, WAV, and can import and convert WMA files as well. However iTunes does not support ATRAC, or FLAC.
Furthermore, if some of your music has been bought from an Internet music store it might be procted by DRM. If so it cannot be imported in to iTunes.
To do the importing you would either drag the music files in to iTunes, or tell iTunes to open them. See http://support.apple.com/kb/ht1347 -
The files are in /export/home/username and I want to move them across the network to a new server -- soon to be an LDAP Directory server. I ftp'd from the new server, solaris 10, to the nis/dns/nfs/ftp server, solaris 9.
Would it be best to use ftp or nfs? I have tried both, but both have failed.
What are the possible causes of the ftp failure? Is more information needed? Any suggestions as to how to handle this? Maybe there's a how-to available?
ftp> passive
Passive mode on.
ftp> get printers
227 Entering Passive Mode (nn,nn,nn,nn,216,255)
150 Opening BINARY mode data connection for printers
(1252 bytes).
printers: Operation not applicable
226 Transfer complete.
225 ABOR command successful.
ftp> get solaris-nis-ldap.pdf
227 Entering Passive Mode (nn,nn,nn,nn,164,95)
150 Opening BINARY mode data connection for
solaris-nis-ldap.pdf (51126 bytes).
solaris-nis-ldap.pdf: Operation not applicable
226 Transfer complete.
225 ABOR command successful.
ftp> get openldap-2.3.21-sol10-sparc-local.gz
227 Entering Passive Mode (nn,nn,nn,nn,234,63)
150 Opening BINARY mode data connection for
openldap-2.3.21-sol10-sparc-local.gz (9613279 bytes).
openldap-2.3.21-sol10-sparc-local.gz: Operation not
applicable
426 Transfer aborted. Data connection closed.
226 Abort successful
ftp>What about "scp"?
scp <file> <user>@<remote host>:<remote path>
Maybe your ftp session fails because you don't have write access to the local directory on your local machine?
.7/M. -
Nsswitch behavior -vs- man page?
I have a question about Solaris 10's /etc/nsswitch.conf
functionality. It seems like it does not work as it use to, say in
Solaris 8 or 9, yet the man page for nsswitch.conf indicates that for
DNS, NIS, and "all other sources" that the DEFAULT criteria should be
"NOTFOUND=continue".
Yet for the past few years it seems I must manually put something like
the lines below in the nsswitch file for "continue" to work
correctly? Is this a bug, or am I completely misunderstanding the man
page and/or how nsswitch REALLY works? Very possible!
hosts: files [NOTFOUND=continue] dns [NOTFOUND=continue] nis
ipnodes: files [NOTFOUND=continue] dns [NOTFOUND=continue] nis
If I use the "default sample file for NIS (/etc/nsswitch.nis) which
may contain something like "hosts: nis [NOTFOUND=return] files" and
yet I want to add DNS, what might the line look like?
I know I have to copy the sample file to the .conf file extension.
Thanks,Your question is a little fuzzy, but I'll try to answer anyway...
nsswitch.conf file is responsible for specifying the name services that are to be used when trying to find a particular piece of information.
In Solaris, there are 5 possible sources (name services): files, nis, nisplus, dns and ldap.
You may specify multiple (even all) sources to be used. All sources are checked in the order they are written on a line.
Every source may return 4 status values: SUCCESS, NOTFOUND, UNAVAIL or TRYAGAIN.
For every return status, there are 2 possible actions: continue and return. continue means "try the next source", return means "don't look any further". The default action for every status is continue, except for the SUCCESS status, when action is *return", obviously...
One can overwrite the default action for each status, by specifying what action should be taken for any return status.
Let's take for instance this line:
hosts: files dns [NOTFOUND=continue] nis [NOTFOUND=return] ldapThis is interpreted as follows:
- first check "files" (i.e. check /etc/inet/inpnodes, /etc/inet/hosts); no action is specified for any return status, so default actions are in place: if the entry is found on files (SUCCESS), then action is return" , if status is anything else, then action is continue* and next source is checked
- next source is "dns"; if SUCCESS, program will return; if NOTFOUND , then continue to the next source (this is also the default action, but it doesn't matter - this line is just for teaching purposes...); if UNAVAIL (service dns is not configured) or TRYAGAIN (server was too busy to respond to request), then apply default action: *continue"
- next source is nis; if SUCCESS ,then default action (*return*); if NOTFOUND then overwrite default action and return ; so, if the entry is found or not found in nis, the next source (ldap) will not be checked.
and so on....
>
If I use the "default sample file for NIS (/etc/nsswitch.nis) which
may contain something like "hosts: nis [NOTFOUND=return] files" and
yet I want to add DNS, what might the line look like?
{quote}
Well, it depends; suppose you want to check dns after nis and before files. The line may look like this:
{code}
hosts: nis dns files
{code}
The above entry will check dns even if nis returns NOTFOUND.
Hope you got the idea...
kido
Maybe you are looking for
-
my ipod wont charge i have replaced the cord and everything, all it does is show the apple icon then go to a battery sign of red then back to the sign its a constant repeating session what is wrong with it???
-
Holiday Entitlement in Oracle HRMS
Hi, Please could anyone point me in the direction of the DB table(s) where an employees annual leave entitlement is recorded in Oracle HRMS? Thanks
-
Time Series Graph Show Inappropriate Data for Continuous Analysis
Hi All, I have marked Month as the Chronological Key in my BMM Layer but still I am unable to view the data correctly in my Time Series graph because it shows Inappropriate Data for Continuous Analysis at the time of creating the Graph. Can anybody h
-
XML data definitions in R12 Vision instance
In Oracle Vision instance, Oracle provides many reports with XML templates. But, some of the reports do not have any data definitions at all. So, when we run the report it raises error. For example, Account Analysis report has template definition but
-
Can't update 10.2.1 to 10.2.8
Hi, after suffering a severe crash (in 10.2.8) I have got my system up and running again by re-installing from my 10.2.1 discs, however, neither software update or downloading the .dmg file from the apple site will update my system to 10.2.8. Softwar