What is the difference between domain name and hostname?
Linux - NewbieThis 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!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What is the difference between domain name and hostname?
Eg. A dynamic DNS service provider maps my IP address to david.redirectme.org, so when I key in http://david.redirectme.org, I get to view my homepage.
Qn: Which part of david.redirectme.org is the hostname and which part is the domain name?
hostname is the specific and unique name of the machine.
domainname is the domain in which is belongs to, where many other machines can also belong in, etc.
Ha, I just tried to check out your webpage, and it's gone. I am thinking about setting up my machine at home via my cable modem, but I'm curious about how you setup this dhcp redirection thing. Did you change it, or are you still having problems with it?
Originally posted by statmobile Ha, I just tried to check out your webpage, and it's gone. I am thinking about setting up my machine at home via my cable modem, but I'm curious about how you setup this dhcp redirection thing. Did you change it, or are you still having problems with it?
Originally posted by trickykid And to get a little more detailed:
hostname is the specific and unique name of the machine.
domainname is the domain in which is belongs to, where many other machines can also belong in, etc.
It should be userid@david.redirectme.org.
I'm not sure if that is always the case though.
And I'm not sure if you need to do something else in order for your mail to arrive at the mailserver david, such as creating an MX record in somekind of DNS or anything like that.
I prefer www.zoneedit.com as they allow you to have your own registered domain name to use, so you don't have dyndns.org or no-ip.com mixed in with your IP, etc. Its like having your own DNS server that's really easy to setup and understand.
Originally posted by trickykid I prefer www.zoneedit.com as they allow you to have your own registered domain name to use, so you don't have dyndns.org or no-ip.com mixed in with your IP, etc. Its like having your own DNS server that's really easy to setup and understand.
With this service, you need to already own the domain name. With dyndns and other sites like it, you don't need one, but you have to use their dyndns.org suffix.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.