The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How do I change domain name from shell? lucas UNIX for Dummies Questions & Answers 3 05-09-2008 02:17 AM
change dns (domain name) kim_custodio SUN Solaris 4 04-28-2008 12:19 AM
Change to ksh shell irasela UNIX for Dummies Questions & Answers 2 08-03-2006 01:57 PM
How can I change my default shell milhan Shell Programming and Scripting 17 07-13-2004 04:15 PM
change user in a shell scottl UNIX for Dummies Questions & Answers 2 08-28-2003 04:15 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-08-2008
lucas lucas is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 3
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 (permalink)  
Old 05-12-2008
sumitpandya sumitpandya is offline
Registered User
  
 

Join Date: Mar 2006
Location: Ahmedabad
Posts: 125
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 (permalink)  
Old 05-12-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:11 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0