The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help Required: Command to find IP address and command executed of a user loggedout Security 2 3 Weeks Ago 05:12 PM
how to? launch command with string of command line options TinCanFury Shell Programming and Scripting 5 04-28-2008 03:06 PM
inconsistent ls command display at the command prompt & running as a cron job rajranibl Linux 5 07-30-2007 05:26 AM
domainname dnsdomainname....etc ?? moxxx68 UNIX for Dummies Questions & Answers 7 12-21-2004 07:07 AM
question about domainname dookeobih UNIX for Dummies Questions & Answers 1 01-29-2002 08:18 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-03-2004
Registered User
 

Join Date: Mar 2004
Posts: 92
domainname command

Hey,

I've been on this for a while... can somebody explain to me what the domainname command really does. The man pages don't tell enough. And how can i have the domain name set so it will be the same all the time when the OS boots up.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-03-2004
Registered User
 

Join Date: Mar 2004
Posts: 92
for the DOMAIN could i set it in the /etc/sysconfig/network file? And if so would i tlook like this
DOMAINNAME=THE DOMAIN NAME HERE
Reply With Quote
  #3 (permalink)  
Old 12-03-2004
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
The solaris manual page is a lot better than most at describing this command (some of the *BSD's I've seen give a terse two sentence description)...

And yes, something along the lines of
DOMAINNAME=foo.net
inside /etc/sysconfig/network should do the trick.

You may also need to specify the local domain name in /etc/resolv.conf

Cheers
ZB
Reply With Quote
  #4 (permalink)  
Old 12-03-2004
Registered User
 

Join Date: Mar 2004
Posts: 92
perfect man, that looks as if it'll do the trick! thanks.
Reply With Quote
  #5 (permalink)  
Old 12-03-2004
Registered User
 

Join Date: Mar 2004
Posts: 92
ummmmm i edited the /etc/sysconfig/network and added a domain name in there and when i type domainname it doesn't bring anything up. If i type
domainname mydomain.com
then it will work. Weird

I've got a practical test on tuesday so i'm trying to figure everything out haha. Does anybody know why this happens?
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:41 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0