How to stop DHCP from changing hostname


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to stop DHCP from changing hostname
# 1  
Old 01-10-2007
Power 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
# 2  
Old 01-10-2007
To call your machine "myHostname"

Code:
echo myHostname > /etc/nodename

# 3  
Old 01-20-2007
I think beside changing in /etc/nodename You also need to make entry of hostname in /etc/hostname.interfacename
where interface name stands for your primary interface name like hme0 or ce0
or the interface for which dhcp is assigning the hostname.

thanks
prasad
# 4  
Old 01-20-2007
No, you don't.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

10. 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
Login or Register to Ask a Question