Operating System - HP-UX
1851206 Members
2645 Online
104057 Solutions
New Discussion

thank you and domain name ????

 
Eric_83
Occasional Advisor

thank you and domain name ????

I changed the hostname ..

but you didn't tell me how to change domain name .
cool_boy
5 REPLIES 5
Animesh Chakraborty
Honored Contributor

Re: thank you and domain name ????

hi,
Just type
#domainname hp.com

see the link below

http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0xd9637d4cf554d611abdb0090277a778c,00.html
Did you take a backup?
KCS_1
Respected Contributor

Re: thank you and domain name ????

modify the /etc/resolv.conf and you can change your domain name and nameserver

method1)

# vi /etc/resolv.conf

domain hp.com

nameserver x.x.x.x


method2)

# set_parms



good luck!!


Easy going at all.
U.SivaKumar_2
Honored Contributor

Re: thank you and domain name ????

Hi,
domainname command is for NIS domain.
For DNS do this,
In /etc/resolv.conf
domain yourdomain.com
NO need to reboot.

and other way to set different domain name for different users logging from different domain is setting LOCALDOMAIN shell variable.

eg:
$export LOCALDOMAIN=yourdomain.com


regards,
U.SivaKumar
Innovations are made when conventions are broken
Michael Tully
Honored Contributor

Re: thank you and domain name ????

The best and simplest method is to use the 'set_parms' script. It will do everything for you. Just answer the questions provided.
e.g.
# set_parms
Usage: set_parms
Where can be:
hostname
timezone
date_time
root_passwd
ip_address
addl_netwrk
or initial (for entire initial boot-time dialog sequence)

# set_parms addl_netwrk (will set the domain information.)
Anyone for a Mutiny ?
T G Manikandan
Honored Contributor

Re: thank you and domain name ????

The best way to set the domainname is by using

#set_parms addl_netwrk


It will automatically make entries in the /etc/resolv.conf file.

It can be changed on the fly.

Thanks