LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   what's with the $myhostname and $mydomain on a linux box (https://www.linuxquestions.org/questions/linux-newbie-8/whats-with-the-%24myhostname-and-%24mydomain-on-a-linux-box-700317/)

urentity 01-27-2009 04:58 PM

what's with the $myhostname and $mydomain on a linux box
 
I have an acer aspireone linux netbook and I am setting up postfix.

Postfix asks me for $myhostname and $mydomain.

Now, the hostname seems to be fairly straightforward, it's the name of the machine, right? Actually it's in my prompt, and it's localhost.

What has me stumped is $mydomainname. This is a portable computer. I don't host a domain on it. I came across this requiremetn ebfor ein Paul Sheer's RUTE book. Domain name.

I really don't have one to give. Shouldl I choose a fake one? Stick in google.com for example. Or should I leave it blank?

DragonSlayer48DX 01-27-2009 05:23 PM

Hi, and welcome to LQ!

Here is a complete tutorial on configuring Postfix. It is an e-mail server, BTW.

If you are just looking for an e-mail client like Outlook, you might want to try Thunderbird or Evolution instead.

Hope this helps.

urentity 01-28-2009 09:57 AM

hi dragonslayer48dx,

thanks for answer ... I've dumped postfix in favour of getmail, and I'm getting on OK with it.

However I'm still not sure what domain name to give my aspire one, as the concept doesn't make sense for a portable laptop.

cheers.

Matey 01-28-2009 10:46 AM

Thanks for the link DragonSlayer.
urentity;
I believe those are just common schemes the OS uses to identify your machine in case you are on a network.
It is OK, I remmber years ago while trying to setup a windoze server (a PDC) I ran into this problem and of course the Unwritten rule in the case of MS was, to leave it as .local
otherwise it kept bugging me about a my machine's name dot domain name...

in your case I think you should leave it as local or anything you wish, like localhost.local
the $ dollar sign is usually used to point to a string or substitute a value for a string..like the name of the user would be $USER it means to get the value for that string (i think)?!so if you were logged in as Bob ,$USER or $USERNME would return Bob.

so $localhost means whatever you named your computer in Linux (I think). so like if you named it RedHat then $localhost would return RedHat.
Sorry if I am not 100% correct on these things I am trying to learn too and I appreciate other ppl correcting me.
:)
Oh since I think it is important for all of us to be familiar with the script methods here's a link I found which may be useful;

http://my.safaribooksonline.com/0672.../ch06lev1sec17
regards;

DragonSlayer48DX 01-28-2009 10:47 AM

In what context is the dialog box for domain?

I'm not familiar with Getmail, however, to set up Thunderbird or Evolution you would enter the domain of your mail server- i.e. yahoo.com, hotmail.com, etc.

farslayer 01-28-2009 11:07 AM

I just make up domain names for my local machines.. like

farslayer.dom, farsplace.dom or noplace.dom notice the ending is .dom instead of com, org, etc.. that way I shouldn't step on a real domain. so basically your domain can be anything you want it to be,,

I would suggest not using yahoo.com, google.com or any other well known used domain.. :)


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