Sponsored Content
Operating Systems Solaris Assigning two hostname to single server Post 302268216 by kumarmani on Monday 15th of December 2008 07:56:31 AM
Old 12-15-2008
Not sure as if system is going to take the hostname from /etc/hostname.xxx as per my understanding to make it persistence across the system boot we place the entry into the file /etc/nodename . not sure as in case of two name how and where entries need to be place.

Will appreciate expert’s views and ideas
 

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

DCHP server assigning a wrong Address

Pls could you help me diagnose my problem. I have a system which is a DHCP server and also the Remote Access Server. The DHCP server allocate normal address within the scope range to the LAN system. why it allocates abitrary number such as 169.254.217.90 255.255.0.0 class B address to the remote... (1 Reply)
Discussion started by: kayode
1 Replies

2. Shell Programming and Scripting

assigning a variable containing hostname

Hello.. Here is a small doubt.... I need to assign root@hostname to variable.. where hostname is the system variable... when i give variable="root@$hostname" its not working... pls help..me thanks in advance esham (4 Replies)
Discussion started by: esham
4 Replies

3. UNIX for Advanced & Expert Users

how do change hostname of a unix server

what command do you use to change a unix server name. i've tried hostname, but when the unix server is rebooted, it reverts back to the old server name. regards venhart (3 Replies)
Discussion started by: venhart
3 Replies

4. Red Hat

SEt two hostname in a linux server

Friends , Can I set two hostname in a Linux server at a time ? I want to give two hostname of my Linux server , is it possible to do ? Plz inform .. .. (2 Replies)
Discussion started by: shipon_97
2 Replies

5. UNIX for Dummies Questions & Answers

get the server's hostname

i read that if i issue : cat /etc/sysconfig/network > textfile i will be able to determine the hostname of the server that my linux workstation is connected to. but there are several other lines outputted that i do not need. i just need the hostname part. is there any other unix... (2 Replies)
Discussion started by: mbaste2
2 Replies

6. Solaris

my sun solaris 10 cannot ping and nslookup other server using hostname.

hi.... i have sun solaris 10 server, fedora 10, and Windows Server.. i cant ping my sun solaris 10, fedora 10 and Windows Server using hostname (etc: ping winserver.bengkel2.com), but i can ping all using IPV4 and IPV6 address.. can u give some suggestion to solve my problem or some idea to... (3 Replies)
Discussion started by: izuan_7657
3 Replies

7. Solaris

2 hostname in one server

Hi, We have one server originally named <SERVERA>. Now we plan to put another network card & add another hostname <SERVERB>. Later, we will need to change hostname from <SERVERB> to <SERVERC>. I know that we need to plumb a new ip & add to /etc/hosts & /etc/hostname.<interface>. Is there... (2 Replies)
Discussion started by: beginningDBA
2 Replies

8. AIX

Assigning Domain Server Breaks rlogin

Most of my Unix servers do not have access to the internet. We have a test box that I want to use to receive all root email from the other unix boxes locally. i want to then have the test box able to .forward all these emails over the internet to me. I can give the test box a dns server and it can... (10 Replies)
Discussion started by: herot
10 Replies

9. Red Hat

After umount -lf: kernel: nfs: server HOSTNAME not responding, timed out

Greetings! I'm testing a failover solution for NFSv4 on RHEL6 with latest updates. My script umounts (umount -lf /share) the faulty NFS share if it sees that's hanging on the client (the NFS daemon is down on the NFS server) and it mounts the share from another healthy NFS server. Sometimes... (4 Replies)
Discussion started by: Arsene Lupen
4 Replies

10. Shell Programming and Scripting

Perl : Assigning multile hash values to a single array

I know that @food = %fruit; Works. But how do I assign %fruit and %veggies to @food ? (2 Replies)
Discussion started by: popeye
2 Replies
XOpenDisplay()															    XOpenDisplay()

Name
  XOpenDisplay - connect a client program to an X server.

Synopsis
  Display *XOpenDisplay(display_name)
	char *display_name;

Arguments
  display_name	 Specifies the display name, which determines the server to connect to and the communications domain to be used.  See
		 Description below.

Returns
  The display structure.

Description
  The XOpenDisplay() routine connects the client to the server controlling the hardware display through TCP or DECnet communication proto-
  cols, or through some local inter-process communication protocol.

  On a POSIX-conformant system, if display_name is NULL, the value defaults to the contents of the DISPLAY environment variable on POSIX-
  based systems.  On non-UNIX-based systems, see that operating system's Xlib manual for the default display_name.  The encoding and inter-
  pretation of the display name is implementation-dependent.  Strings in the Host Portable Character Encoding are supported; support for
  other characters is implementation-dependent.  The display_name or DISPLAY environment variable is a string that has the format host-
  name:server	or   hostname:server.screen.  For example, frog:0.2 would specify screen 2 of server 0 on the machine frog.

  hostname    Specifies the name of the host machine on which the display is physically connected.  You follow the hostname with either a
	      single colon (:) or a double colon (::), which determines the communications domain to use.  Any or all of the communication
	      protocols can be used simultaneously on a server built to support them (but only one per client).

	      o  If hostname is a host machine name and a single colon (:) separates the hostname and display number, XOpenDisplay() connects
		 to the server using TCP streams.  If the hostname is not specified, Xlib uses what it believes is the fastest transport.

	      o  If hostname is a host machine name and a double colon (::) separates the hostname and display number, XOpenDisplay() con-
		 nects with the server using DECnet streams.  To use DECnet, however, you must build all software for DECnet.  A single X
		 server can accept both TCP and DECnet connections if it has been built for DECnet.

	      o  Note that support for use of the string "unix" in a display name is no longer part of the Xlib specification as of Release
		 4.

  server      Specifies the number of the server on its host machine.  This display number may be followed by a period (.).  A single CPU can
	      have more than one display; the displays are numbered starting from 0.

  screen      Specifies the number of the default screen on server.  Multiple screens can be connected to (controlled by) a single X server,
	      but they are used as a single display by a single user.  screen merely sets an internal variable that is returned by the
	      DefaultScreen() macro.  If screen is omitted, it defaults to 0.

  If successful, XOpenDisplay() returns a pointer to a Display.  This structure provides many of the specifications of the server and its
  screens.  If XOpenDisplay() does not succeed, it returns NULL.

  After a successful call to XOpenDisplay(), all of the screens on the server may be used by the application.  The screen number specified in
  the display_name argument serves only to specify the value that will be returned by the DefaultScreen() macro.  After opening the display,
  you can use the ScreenCount() macro to determine how many screens are available.  Then you can reference each screen with integer values
  between 0 and the value returned by (ScreenCount() -1).  You can access elements of the Display and Screen structures only using the infor-
  mation macros and functions listed in Appendix C, Macros.

  For more information, see Volume One, Chapter 2, X Concepts, and Chapter 3, Basic Window Program.

See Also
  XDefaultScreen(), XCloseDisplay(), XFree(), XNoOp().

Xlib - HouseKeeping														    XOpenDisplay()
All times are GMT -4. The time now is 04:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy