LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   adding a purchased domain to your network? (https://www.linuxquestions.org/questions/general-10/adding-a-purchased-domain-to-your-network-4175539225/)

willc86 04-09-2015 10:54 AM

adding a purchased domain to your network?
 
Hey guys, this might be a really dumb, or a really good question.
I have a question about domain names and networks
lets take a school for example. I dont know, lets say FIU.

obviously, they purchased a business domain so when you go to fiu.edu, its a webserver. you go to cs.fiu.edu its another web server

so how does it get multiple host names pointed to the fiu.edu name

lets say they have 20 servers. some windows some linux. so outside of their network, you can rdesktop or ssh to certain machines. (if you are on their AD server and know the credentials)

adserver.fiu.edu
apple.fiu.edu
pear.fiu.edu
orange.fiu.edu


my question is, if i purchase a domain, lets say www.chaps.pw
how do I point all of my hosts to chaps.pw so example, I can
ssh or rdesktop into (btw I have a /30 network) so all ips are public. ( i also know security is a big issue but its just for knowledge purposes )

venus.chaps.pw
skyline.chaps.pw
pluto.chaps.pw

etc...

if you take a look at fiu, im sure they dont have a records on the hosted site pointed to every host. So i will need a DNS server, DHCP server

what other steps?

TenTenths 04-09-2015 11:13 AM

Quote:

Originally Posted by willc86 (Post 5344957)
my question is, if i purchase a domain, lets say www.chaps.pw

That's not a domain, that a host within chaps.pw domain. Important difference (see below)


Quote:

Originally Posted by willc86 (Post 5344957)
how do I point all of my hosts to chaps.pw so example, I can
ssh or rdesktop into (btw I have a /30 network) so all ips are public. ( i also know security is a big issue but its just for knowledge purposes )

venus.chaps.pw
skyline.chaps.pw
pluto.chaps.pw

etc...

In your DNS service create A records for each host and point it the appropriate IP address.

In "Classic" BIND this would look like:

Code:

venus.chaps.pw.      IN A    123.123.111.240
skyline.chaps.pw.    IN A    123.123.111.241
pluto.chaps.pw.      IN A    123.123.111.243

Yes, the chaps.pw. is correct, the trailing . says to NOT append the default domain, so you can leave it off and use:
Code:

venus      IN A    123.123.111.240
skyline    IN A    123.123.111.241
pluto      IN A    123.123.111.243


willc86 05-11-2015 01:16 PM

Quote:

Originally Posted by TenTenths (Post 5344964)
That's not a domain, that a host within chaps.pw domain. Important difference (see below)




In your DNS service create A records for each host and point it the appropriate IP address.

In "Classic" BIND this would look like:

Code:

venus.chaps.pw.      IN A    123.123.111.240
skyline.chaps.pw.    IN A    123.123.111.241
pluto.chaps.pw.      IN A    123.123.111.243

Yes, the chaps.pw. is correct, the trailing . says to NOT append the default domain, so you can leave it off and use:
Code:

venus      IN A    123.123.111.240
skyline    IN A    123.123.111.241
pluto      IN A    123.123.111.243



awesome!! i am actually reading about DNS

so before I begin, I will need to install BIND correct? And will be located in the /etc/bind/named.conf? that is where I store the A records

TenTenths 05-14-2015 01:56 AM

Quote:

Originally Posted by willc86 (Post 5360987)
awesome!! i am actually reading about DNS

so before I begin, I will need to install BIND correct? And will be located in the /etc/bind/named.conf? that is where I store the A records

BIND would be the most common DNS server package and there are TONS of tutorials around. As for where the zone files live that can be distro dependant so pick a how-to that's relevant to your server distro.


Have to admit I stopped running my own DNS servers a few years back and now make use of commercial offerings for work and for my personal projects.


All times are GMT -5. The time now is 06:55 PM.