Sponsored Content
Full Discussion: Change Linux Hostname
Operating Systems Linux Change Linux Hostname Post 302230239 by etcpasswd on Thursday 28th of August 2008 10:32:31 PM
Old 08-28-2008
I had already changed the entry on both location. I still have one more question?

Do I really have to include the domain in the entry?

Please bear with me, I'm still a newbie on linux. BTW, I am using DHCP, will this affect.

I mean I had not included a domain on /etc/hosts. Does this affect my network functionality or my network functionality will fail?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

change hostname

Hi, ( running solaris 8 ) I know how to change the hostname temparily, by login in as root typing hostname = xxxxx but, this obviously goes when the system is rebooted. I'm not sure what files need changing to make this a permant change. Could anyone help me please? (9 Replies)
Discussion started by: fishman2001
9 Replies

2. UNIX for Advanced & Expert Users

Change of Hostname

Dear All. I will like to know beside the following command "hostname hostname" what other command that can change the hostname of the Unix. Thanks. (4 Replies)
Discussion started by: gelbvonn
4 Replies

3. HP-UX

Change IP and Hostname

Hello.. I wanted to know how to change IP and Hostname on HPUX system, and I don't want to make it as NIS master either. Could someone tell me the files I need to modify and make sure it's on network? Thanks! :o (3 Replies)
Discussion started by: catwomen
3 Replies

4. UNIX for Dummies Questions & Answers

change hostname

Hi, I asked this question whenI was running solaris 8 and got some very good answers. I've just uograded to Solaris 10 and there seems to quite a few changes so I need to know again. https://www.unix.com/showthread.php?t=8547 ------------ Hi (now solaris 10) I know how to change the... (2 Replies)
Discussion started by: fishman2001
2 Replies

5. 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

6. Red Hat

Change hostname

Hello, I would like to change the hostname on a Linux server (RHEL4). I try different methods in vain : - by using hostname command - by changing /etc/hosts and /etc/hostname But after restarting server, the old hostname re-appears... :confused: And the file ./proc/sys/kernel/hostname... (3 Replies)
Discussion started by: madmat
3 Replies

7. UNIX for Dummies Questions & Answers

Change HostName

How to change host name in NCR Unix version 3.0 release 4.0 I got the OS version and OS release from executing uname -v and uname -r (9 Replies)
Discussion started by: nalina
9 Replies

8. Solaris

Reg hostname change.

I want to change my solaris hostname. Tell me what are the files i have to change. Will it requires reboot to get reflect with the new name I changed in /etc/inet/hosts (3 Replies)
Discussion started by: rogerben
3 Replies

9. Solaris

change hostname in SUNOS 5.10

What file I need to edit if I need to change hostname in SUN OS 5.10 Please advice ....... (1 Reply)
Discussion started by: chuikingman1
1 Replies
getnetgrent(3yp)														  getnetgrent(3yp)

Name
       getnetgrent, setnetgrent, endnetgrent, innetgr - get network group entry

Syntax
       innetgr(netgroup, machine, user, domain)
       char *netgroup, *machine, *user, *domain;
       setnetgrent(netgroup)
       char *netgroup
       endnetgrent()
       getnetgrent(machinep, userp, domainp)
       char **machinep, **userp, **domainp;

Description
       The  routine accesses the file and checks to see if the specified input parameters match an entry in the file.  The routine returns 1 if it
       matches an entry, or 0 if it does not.  Any of the three strings; machine, user, or domain can be NULL, which signifies any string in  that
       position is valid.

       The  routine  returns  the  next  member of a network group.  After the call, will contain a pointer to a string containing the name of the
       machine part of the network group member, and similarly for userp and domainp.  If machinep,  userp  or	domainp  is  returned  as  a  NULL
       pointer,  it signifies any string is valid.  The routine allocates space for the name by using the routine.  This space is released when an
       call is made.  The routine returns 1 if it succeeds in obtaining another member of the network group, or 0 if it reaches  the  end  of  the
       group.

       The  routine  establishes  the network group from which will obtain members, and also restarts calls to from the beginning of the list.	If
       the previous call was to a different network group, an call is implied.

       The routine releases the space allocated during the calls.

Files
       /etc/netgroup
       /etc/yp/domain/netgroup
       /etc/yp/domain/netgroup.byuser
       /etc/yp/domain/netgroup.byhost

																  getnetgrent(3yp)
All times are GMT -4. The time now is 11:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy