How do I change domain name from shell?


 
Thread Tools Search this Thread
Special Forums IP Networking How do I change domain name from shell?
# 1  
Old 05-08-2008
How do I change domain name from shell?

How do I change domain name from shell?
And
How do I check the domain name from shell?

I know how to change hostname but not domain.

Please help me.

Thank you,
# 2  
Old 05-12-2008
domainname command

domainname without any argument will display current domain-name of your system. domainname new-domain-name will set domain-name to argument "new-domain-name".

also you can get and set from procfs /proc/sys/kernel/domainname
above write-up is applicable for hostname as well!!!
# 3  
Old 05-12-2008
lucas, please don't cross post and read the forum's rules. You have been answered at this thread. If you had posted pertinent details in the first place, as we kindly ask in the rules, you'd get the answer from me in my first post.
You have to change the line :
hostname="node1.domain.com"; then you have to reboot.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Is it possible to change shell icon?

I have an application that runs through bash shell and i want to change the shell icon , so when i copy my application to another computer the shell can still run , can i do that ? because i try with .desktop its failed (0 Replies)
Discussion started by: caladblog
0 Replies

2. UNIX for Dummies Questions & Answers

Unable to change domain user passwords

Hi, I'm new to this site, so my apologies if this is posted to the wrong board. I'm the student administrator of a small computer science lab (20 Win 7 PCs) at a university. The logins to the PCs are handled by samba (v. 3.5.8) on a CentOS server (kernel v. 2.6.9-100.ELsmp). Recently I ... (1 Reply)
Discussion started by: kerona
1 Replies

3. Shell Programming and Scripting

Shell script to change the ip

I am writing a simple DHCP server application that gets ip from a server at boot up ! i wrote a shell script to run the java program that obtains ip from server on another machine... The problem is when i have obtained the ip i store it in a file ! using awk i retrieve the... (1 Reply)
Discussion started by: dinesh17
1 Replies

4. UNIX for Advanced & Expert Users

useradd I want to change domain

Good morning every body When I add a new user the domain is my hostname I want to change it to my local domain EXample my computer hostname is X when I create a new user Y and he logged I see X@Y and me I want to have Y@localdomain Think (1 Reply)
Discussion started by: gone
1 Replies

5. UNIX for Dummies Questions & Answers

Samba change domain controller

Hello people i have a samba and they changed domain controller from a windows 2003 to a windows 2008, there is a problem with the version of samba maybe incompatibilities i dont know what show me this domain_client_validate: unable to validate password for user xxxx in domain xxxx to Domain... (0 Replies)
Discussion started by: enkei17
0 Replies

6. UNIX for Advanced & Expert Users

How to change file name using shell ?

Hi.. I have a list of input files as below:- NXUPM.P999309.201002011144 NXUPM.P999409.201002011145 NXUPM.P999509.201002011146 NXUPM.P999609.201002011146 NXUPM.P999682.201002011201 I want to change it as below:- NXUPM.P999309_999408 NXUPM.P999409_999508 NXUPM.P999509_999608... (5 Replies)
Discussion started by: bh_hensem
5 Replies

7. Windows & DOS: Issues & Discussions

How to: Linux BOX in Windows Domain (w/out joining the domain)

Dear Expert, i have linux box that is running in the windows domain, BUT did not being a member of the domain. as I am not the System Administrator so I have no control on the server in the network, such as modify dns entry , add the linux box in AD and domain record and so on that relevant. ... (2 Replies)
Discussion started by: regmaster
2 Replies

8. Shell Programming and Scripting

how to change shell from BASH to C

hi all, how can i change my shell from BASH to C shell? i am using cygwin. (3 Replies)
Discussion started by: npatwardhan
3 Replies

9. UNIX for Dummies Questions & Answers

How do I change domain name from shell?

How do I change domain name from shell? I know how to change hostname but not domain. Please help me. Thank you, (3 Replies)
Discussion started by: lucas
3 Replies

10. Solaris

change dns (domain name)

hi gurus, need to check other than the hosts file, what else i need to change after we have changed the domain name in our company. currently, we are using olddnsname.com and will change it to newdnsname.com. i am not sure where else in solaris i need to take a look. please advise. thank... (4 Replies)
Discussion started by: kim_custodio
4 Replies
Login or Register to Ask a Question