09-26-2012
do I need to make any changes to the hostname.bge0 or hosts files?
And no, they aren't.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello
does anybody know how to change the LC_TIME locale on solaris 8 to dd/mm/YYYY
currently it is set to.
#locale -ck LC_TIME
d_fmt="%m/%d/%y"
Thanks (1 Reply)
Discussion started by: thangorn
1 Replies
2. Solaris
I am having problems getting this to work, though it seems like it would be simple. I have a host with 2 interfaces, hme0 (192.168.0.132) for the primary interface, and hme1 (192.168.0.16) for backups. I want it to talk to the backup host, which is 192.168.0.21, across the hme1 interface.
Thanks (2 Replies)
Discussion started by: 98_1LE
2 Replies
3. UNIX for Dummies Questions & Answers
Hello.
I am trying to make work HP printer Deskjet 692C. I have
Solaris 9 x86.
I tried to use admintool:
I choosed 'HP-printer' and 'Postscript filter' options.
When I want to print something, instead of the text, the printer prints many pages of some kind of code or whatever...
... (1 Reply)
Discussion started by: Peter123456789
1 Replies
4. Solaris
I am trying to set up a DHCP on Sunblade 100. I have Dlink router that connects me to the net with my other computers. I can't seem to let my DHCP server to give out IP addresses instead of my router. I have been working on this for the last three days. I had an issue with Unknown name but i have... (4 Replies)
Discussion started by: aliban83
4 Replies
5. Solaris
Hi,
i'm about to hold a training (Solaris 10) for my colleagues. I've to plan for two days. There is a day for basics and a day (some weeks later) for advanced topics. All of them are regular solaris users (but mostly only installing + patching).
What do you guys think are interesting topics... (22 Replies)
Discussion started by: DukeNuke2
22 Replies
6. Solaris
Hi All,
I need some information on 'Alias' setting in SUN SOLARIS.:confused:
Q1. I want to know how can i set my alias here.
Q2. How to view all set 'ALIAS' for me. (say /home/jdash user)
Q3. Can i modify the set 'Alias' for me or for whole environment.
Q4. Is Alias setting can be change... (2 Replies)
Discussion started by: jdash.ps
2 Replies
7. Solaris
Hi,
i have a file which show text on window like,
insert into test values('اسيل للخدمات عبر الأثير');
but when i open this file in solaris it don't show like
insert into test values('اسيل للخدمات عبر الأثير');
i also want to see the line same as it is on windows
kindly help me (3 Replies)
Discussion started by: malikshahid85
3 Replies
8. Solaris
Hi all,
Any idea please how to:
-Change Time format from 24h format to 12h format (AM and PM)
-Turn off DST: Daylight Save Time
on a Solaris10 server
Thanks in advance (1 Reply)
Discussion started by: rafikrafik09
1 Replies
9. Solaris
Hi All
Does anybody have configured successfully nagios on a solaris 10 system?
I am having issues when running gmake all, I am having the following error:
cp: includes/rss/extlib: is a directory
*** Error code 2
make: Fatal error: Command failed for target `install'
Current working... (0 Replies)
Discussion started by: fretagi
0 Replies
10. UNIX for Advanced & Expert Users
I have Solaris-10 server and want to change default printer setting to Simplex (Instead of duplex, which is set currently). I am not able to see anything in conf file related to this setting.
Please help (2 Replies)
Discussion started by: solaris_1977
2 Replies
LEARN ABOUT CENTOS
nss-myhostname
NSS-MYHOSTNAME(8) nss-myhostname NSS-MYHOSTNAME(8)
NAME
nss-myhostname - Provide hostname resolution for the locally configured system hostname.
SYNOPSIS
nss-myhostname.la
DESCRIPTION
nss-myhostname is a plugin for the GNU Name Service Switch (NSS) functionality of the GNU C Library (glibc) providing hostname resolution
for the locally configured system hostname as returned by gethostname(2). Various software relies on an always-resolvable local hostname.
When using dynamic hostnames, this is usually achieved by patching /etc/hosts at the same time as changing the host name. This however is
not ideal since it requires a writable /etc file system and is fragile because the file might be edited by the administrator at the same
time. nss-myhostname simply returns all locally configured public IP addresses, or, if none are configured, the IPv4 address 127.0.0.2
(which is on the local loopback) and the IPv6 address ::1 (which is the local host) for whatever system hostname is configured locally.
Patching /etc/hosts is thus no longer necessary.
To activate the NSS modules, myhostname has to be added to the line starting with "hosts:" in /etc/nsswitch.conf
It is recommended to put myhostname last in the nsswitch.conf line to make sure that this mapping is only used as fallback, and any DNS or
/etc/hosts based mapping takes precedence.
EXAMPLE
# /etc/nsswitch.conf
passwd: compat
group: compat
shadow: compat
hosts: files dns myhostname
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
To test, use glibc's getent tool:
$ getent ahosts `hostname`
::1 STREAM omega
::1 DGRAM
::1 RAW
127.0.0.2 STREAM
127.0.0.2 DGRAM
127.0.0.2 RAW
In this case the local hostname is omega.
SEE ALSO
systemd(1), systemd-logind.service(8), logind.conf(5), loginctl(1), pam.conf(5), pam.d(5), pam(8), pam_loginuid(8)
systemd 208 NSS-MYHOSTNAME(8)