Sponsored Content
Operating Systems Solaris changing ip and hostname on solaris Post 302121006 by reborg on Monday 11th of June 2007 08:16:08 AM
Old 06-11-2007
Quote:
Originally Posted by zazzybob
Additionally, on Solaris 10, you'll need to modify /etc/inet/ipnodes.

Cheers,
ZB
Yes, I forgot that one.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

what happen when changing Hostname?

I 'm using RH 7.2 Genome in the Network Configuration I change therer are two places one for static hostname for my machine and in DNS hostname I don't know what happen when restarting my PC when connecting using dialer I can't browse the Internet also I can't use sendmail .......Server timeout... (2 Replies)
Discussion started by: atiato
2 Replies

2. UNIX for Dummies Questions & Answers

Hostname lost when changing user

Hello to all, Does anyone have a clue for the following problem? When I enter into a terminal console window logged as axadmin user, what I find in the prompt is: “axadmin@sunhost$”. But, when I switch to root user, with the command “su -“ and enter the correct password, user root is... (4 Replies)
Discussion started by: Pablo_BR
4 Replies

3. UNIX for Advanced & Expert Users

How to stop DHCP from changing hostname

Hi, greetings. I have installed OS 10 on sunfire 240. FOr now let dhcp to give IP address but it keeps chaning hostname. How do I stop this? thanks Jaya (3 Replies)
Discussion started by: vr76413
3 Replies

4. UNIX for Dummies Questions & Answers

Solaris - unknown hostname - how can I change hostname?

Hello, I am new to Solaris. I am using stand alone Solaris 10.0 for test/study purpose and connecting to internet via an ADSL modem which has DHCP server. My Solaris is working on VMWare within winXP. My WinXP and Solaris connects to internet by the same ADSL modem via its DHCP at the same... (1 Reply)
Discussion started by: XNOR
1 Replies

5. UNIX for Dummies Questions & Answers

Changing IP & hostname

I have to do this twice. First, A) change IP address, subnet & default gateway. then a few days later B) change IP address again (same subnet & gateway) & hostname. (why twice? To get the vlan stuff out of the way in advance) what is the best way to do A? can all be done through... (5 Replies)
Discussion started by: LisaS
5 Replies

6. Solaris

hostname on Solaris

Hi All, I am wondering how does the hostname command decides what is the actual hostname. Where does the command take the information from? (7 Replies)
Discussion started by: lmishkind
7 Replies

7. Solaris

changing hostname on Solaris 8 ?

hi, does anyone had experience changing hostname on Solaris 8 ? any idea how is it done ? (4 Replies)
Discussion started by: Exposure
4 Replies

8. Solaris

SVM - Metadevices are offline after changing hostname solaris x86

Hi , We are facing an issue on one of our solaris x86 server, After changing the hostname and a orderly reboot , all metadevices shows offline. please let us know the steps to restore back all metadevices to working state with this new hostname (3 Replies)
Discussion started by: karthick.sh
3 Replies

9. UNIX for Dummies Questions & Answers

Solaris - How to get IP Address from a hostname?

We are using Solaris as our database OS. Can you please help me to know how can i get the IP address of a solaris machine in my network from its hostname? e.g. We have a remote database server with the hostname as xyz. Without connecting to the database OS, can i get the IP address of xyz OS from... (1 Reply)
Discussion started by: Anmol Sharma
1 Replies

10. Solaris

Solaris Hostname

Hi, I am installing Solaris 11.3 as a local system using no remote connections. The installer asks for a computer name or would be used as the hostname. Can I select any name ? Like solaris 11 or localhost ? I noticed this is added into the /etc.hosts file later. ie example. localhost ... (2 Replies)
Discussion started by: dylan69
2 Replies
ipnodes(4)                                                         File Formats                                                         ipnodes(4)

NAME
ipnodes - local database associating names of nodes with IP addresses SYNOPSIS
/etc/inet/ipnodes DESCRIPTION
The ipnodes file is a local database that associates the names of nodes with their Internet Protocol (IP) addresses. IP addresses can be either an IPv4 or an IPv6 address. The ipnodes file can be used in conjunction with, or instead of, other ipnodes databases, including the Domain Name System (DNS), the NIS ipnodes map, and the NIS+ ipnodes table. Programs use library interfaces to access information in the ipnodes file. The ipnodes file has one entry for each IP address of each node. If a node has more than one IP address, it will have one entry for each, on consecutive lines. The format of each line is: IP-address official-node-name nicknames... Items are separated by any number of <SPACE> and/or <TAB> characters. The first item on a line is the node's IP address. The second entry is the node's official name. Subsequent entries on the same line are alternative names for the same machine, or "nicknames." Nicknames are optional. For a node with more than one IP address, consecutive entries for these addresses may contain the same or differing nicknames. Different nicknames are useful for assigning distinct names to different addresses. A call to getipnodebyname(3SOCKET) returns a hostent structure containing the union of all addresses and nicknames from each line contain- ing a matching official name or nickname. A `#' indicates the beginning of a comment; characters up to the end of the line are not interpreted by routines that search the file. Network addresses are written in one of two ways: o The conventional "decimal dot" notation and interpreted using the inet_addr routine from the Internet address manipulation library, inet(3SOCKET). o The IP Version 6 protocol [IPV6], defined in RFC 1884 and interpreted using the inet_pton() routine from the Internet address manipu- lation library. See inet(3SOCKET). These interfaces supports node names as defined in Internet RFC 952 which states: A "name" (Net, Host, Gateway, or Domain name) is a text string up to 24 characters drawn from the alphabet (A-Z), digits (0-9), minus sign (-), and period (.). Note that periods are only allowed when they serve to delimit components of "domain style names". (See RFC 921, "Domain Name System Implementation Schedule," for background). No blank or space characters are permitted as part of a name. No distinction is made between upper and lower case. The first character must be an alpha character. The last character must not be a minus sign or period. Although the interface accepts node names longer than 24 characters for the node portion (exclusive of the domain component), choosing names for nodes that adhere to the 24 character restriction will insure maximum interoperability on the Internet. A node which serves as a GATEWAY should have "-GATEWAY" or "-GW" as part of its name. Nodes which do not serve as Internet gateways should not use "-GATEWAY" and "-GW" as part of their names. A node that is a TAC should have "-TAC" as the last part of its node name, if it is a DoD node. Single character names or nicknames are not allowed. RFC 952 has been modified by RFC 1123 to relax the restriction on the first character being a digit. EXAMPLES
Example 1: A Typical Line from the ipnodes File The following is a typical line from the ipnodes file: 2001:0db8:3c4d:55:a00:20ff:fe8e:f3ad myhost # John Smith SEE ALSO
getipnodebyname(3SOCKET), inet(3SOCKET), nsswitch.conf(4), resolv.conf(4), hosts(4) Braden, B., editor, RFC 1123, Requirements for Internet Hosts - Application and Support, Network Working Group, October, 1989. Harrenstien, K., Stahl, M., and Feinler, E., RFC 952, DOD INTERNET HOST TABLE SPECIFICATION, Network Working Group, October 1985. Hinden, R., and Deering, S., editors, RFC 1884, IP Version 6 Addressing Architecture, Network Working Group, December, 1995. Postel, Jon, RFC 921, Domain Name System Implementation Schedule -- Revised, Network Working Group, October 1984. NOTES
IPv4 addresses can be defined in the ipnodes file or in the hosts file. See hosts(4). The ipnodes file will be searched for IPv4 addresses when using the getipnodebyname(3SOCKET) API. If no matching IPv4 addresses are found in the ipnodes file, then the hosts file will be searched. To prevent delays in name resolution and to keep /etc/inet/ipnodes and /etc/inet/hosts synchronized, IPv4 addresses defined in the hosts file should be copied to the ipnodes file. SunOS 5.10 15 Dec 2004 ipnodes(4)
All times are GMT -4. The time now is 08:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy