Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to stop DHCP from changing hostname Post 302102483 by reborg on Wednesday 10th of January 2007 06:46:47 PM
Old 01-10-2007
To call your machine "myHostname"

Code:
echo myHostname > /etc/nodename

 

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. IP Networking

How do I stop my DHCP ???

Hi, I have a Sun Enterprise 450 with Unix Solaris 5.8. This was recently reconfigured and it now has a DHCP service running. However I want to give it a fixed IP. I have added the IP address in '/etc/hosts and have run 'dhcpconfig' and have followed the simple instructions to switch off DHCP... (1 Reply)
Discussion started by: brettwalmsley
1 Replies

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

4. Solaris

Stop DHCP in Solaris 10

Can any one tell me how to stop DHCP service on Solaris 10 so that it should not start nextime when the system is rebooted. (2 Replies)
Discussion started by: shabu
2 Replies

5. HP-UX

HP-UX 10.xx Changing from static IP to DHCP

***Newbie alert*** What's the easiest way to accomplish this? An admin left our company and I have taken over his HP Workstation and moved it to a different location that is on a different IP segment. I have performed a number of google searches but the steps I have followed haven't worked. ... (1 Reply)
Discussion started by: Steelysteel
1 Replies

6. Solaris

changing ip and hostname on solaris

dears does any one know in steps how can i change ip and hostname on solaris (10 Replies)
Discussion started by: murad.jaber
10 Replies

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

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

9. Red Hat

dhcp not setting dns and changing to garbage

I have 2 problems. Dhcp is not setting dns and after I manually set my dns it changes to garbage. I literally just used command to set dns which is a good copy of resolv.conf: sudo cp /home/bob/Desktop/scripts_9-12-2011/resolv.conf /etc/resolv.confHere is a copy of my resolv.conf. #... (5 Replies)
Discussion started by: cokedude
5 Replies

10. SCO

SCO openserver: dhcp hostname

Simple question: how to send full dhcp hostname to dhcp server? Dchp server is linux,client is sco openserver6. (4 Replies)
Discussion started by: Linusolaradm1
4 Replies
DNET_GETNODE(3) 					     Library Functions Manual						   DNET_GETNODE(3)

NAME
dnet_getnode, dnet_nextnode, dnet_endnode - Get nodes from DECnet database SYNOPSIS
#include <netdnet/dn.h> #include <netdnet/dnetdb.h> void *dnet_getnode (void) char *dnet_nextnode (void *) void dnet_endnode (void *) DESCRIPTION
dnet_getnode() Starts the search of the DECnet nodes database (/etc/decnet.conf). It returns an opaque pointer which is passed to the other two functions. dnet_nextnode() returns the next node name in the list. The pointer is private to the library and will be overwritten at the next dnet_nextnode call. dnet_endnode() ends the search. It must be called when you have finished with this group of functions or a memory leak will result. EXAMPLE
#include <netdnet/dn.h> #include <netdnet/dnetdb.h> #include <sys/socket.h> main(void) { void *nodelist; char *nodename; nodelist = dnet_getnode(); nodename = dnet_nextnode(nodelist); while(nodename) { printf("Found node %s ", nodename); nodename = dnet_nextnode(nodelist); } dnet_endnode(nodelist); } SEE ALSO
dnet_addr(3), dnet_ntoa(3), dnet_conn(3), getnodeadd(3), getnodebyname(3), getnodebyaddr(3), setnodeent(3) DECnet database functions April 3, 1999 DNET_GETNODE(3)
All times are GMT -4. The time now is 02:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy