Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-07-2003, 11:19 AM   #1
Senior Member
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,690
Blog Entries: 9

Rep: Reputation: 45
Naming conventions ???

Just so I understand correctly, could someone please explain the difference between hostname, dnsdomainname and nisdomainname ?

My mandrake install, is currently

[john@localhost john]$

but I would eventually like to change this for something more original and less "default" (oh and it would come in handy for when I manage to get my gentoo install running as well.

I just don't understand which bit is which ?


Old 12-07-2003, 11:25 AM   #2
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253

Rep: Reputation: 31
Re: Naming conventions ???

Originally posted by bigjohn
Just so I understand correctly, could someone please explain the difference between hostname, dnsdomainname and nisdomainname ?
hostname = the hostname of your current machine, localhost. This is what you want to change.

dnsdomainname = the name of your domain (whether this is a real .com or .org, etc. domain or just one you use on your internal network)

nisdomainname = is if you're using NFS, which is a Unix network file system...

To change your hostname you can run, as root, the command "hostname" change that to whatever you want. This won't be a permanent change though. I'm not sure where Mandrake does this, but on Redhat it's in /etc/sysconfig/network change that file to what you want and the next time you reboot it will be the same.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Naming Conventions logosys Programming 0 11-10-2005 09:21 PM
Supermount naming conventions --- how to edit??? esteeven Mandriva 0 08-31-2004 03:43 PM
Samba file naming conventions ElectroLinux Linux - Newbie 3 03-10-2004 03:42 AM
variable naming conventions patpawlowski Programming 6 02-25-2004 02:49 PM
File Naming Conventions mooreted Linux - Software 4 08-23-2003 11:00 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration