LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-01-2003, 04:53 AM   #1
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Associating my DNS with my box...


Hi, I've started a thread here:
http://www.linuxquestions.org/questi...threadid=62978
That explains my desire:
I want to buy a domain and have it associated with my IP for use as an http server ultimately. Now...

Where do /etc/hostname /etc/domainname /etc/hosts and entries in Postfix/Apache come into play here?
What I mean is, from my confusion I don't understand what a domainname is versus what a hostname is; also I seem to be missing the point of having those things defined since (from my assumption in the other thread) my IP should be associated with that domain name off in la-la land where all IP's are associated at (the DNS backbones I guess).

And what is a DNS versus a domain name? I was under the impression DNS = Domain Name Service. If so, why do some websites (I'm assuming they are called registrars) offer DNS service and domain name purchase as 2 seperate things?

Thanks for any clarification.

Cool
 
Old 06-01-2003, 09:32 AM   #2
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
domain name is the mydomain.net, mydomain.org, mydomain.com etc part - just a name. The bit before it is the host name mybigcar.mydomain.com which could identify a unique machine but not necessarily.

DNS is a protocol or method that links an IP to a domain name



Putting entries into /etc/hosts maps IP names to computer names without having to run your own DNS server or anything - its a convenience thing - you can refer to coputers via their name rather than IP address.

If your using Dynamic DNS to make your servers public you don't have to bother changing the names of your computers at all really - just make sure say the correct traffic makes it to the correct computer ie. for Apache make sure port 80 traffic is directed to the correct machine. You can safely just leave everything as it is aslong as whoever is doing DNS for you has your proper IP address.

You can tell Postfix and Apache explicitly what your domain name is without having to change anything on your computers - although with apache at the basic level you don't even have to bother telling it that either
 
Old 06-01-2003, 10:46 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
Thank you! I'm learning this stuff slowly but surely, and was grasping more and more, but couldn't fathom the need for a hostname and a domainname or what /etc/hosts was used for.

Thank you for the info you've provided!

Cool
 
  


Reply



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
DNS trouble w/ triple-homed box psychobyte Linux - Networking 1 11-28-2005 04:07 PM
Pri and Secondary DNS on One box matt_hannay Linux - Networking 3 03-03-2005 03:55 AM
DNS Server on my Debian Box jriis Debian 1 05-22-2004 07:29 AM
External DNS BOX dboogie Red Hat 0 05-19-2004 02:24 PM
Migrate my hosted DNS to my RH9 box wazab Linux - Newbie 2 05-09-2004 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:33 PM.

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