DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 3rd, 2003, 03:02 PM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
Host a subdomain on a different web server

I'm not an expert on DNS -- I've never even set it up, but I think I get the general idea. I'd appreciate someone who is more knowledgeable confirming something for me.

I have a website, call it example.com, hosted on web server "A". So, the site can be accessed by HTTP as example.com or www.example.com. Let's just say the nameservers are ns1.example.com and ns2.example.com.

I want to host a subdomain of example.com, call it subdomain.example.com, on a different web server, call it server "B".

To accomplish that, I believe there are two main possibilities:

1.
- Leave ns1.example.com and ns2.example.com as the authoritative nameservers

- Add an A record like this:
subdomain.example.com IN A #.#.#.# (IP address for server B)

- Configure a virtual host for subdomain.example.com on server B

Or

2.
- Add the appropriate records to the example.com zone to delegate authority for a new zone for subdomain.example.com

- Configure the appropriate records in the subdomain.example.com zone

- Configure a virtual host for subdomain.example.com on server B

So that with the first approach, ns1.example.com and ns2.example.com will answer DNS queries for subdomain.example.com and with the second approach, other namservers (as configured) will answer the queries.

Is that essentially correct?

Reply With Quote
  #2  
Old March 4th, 2003, 07:37 PM
dwellersoul dwellersoul is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: SoCal
Posts: 9 dwellersoul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 7 sec
Reputation Power: 0
Both methods will work, but you shouldn't move delegation of a host record to another set of nameservers. That's typically done when you have a division which is going to control their own hosts. To your zone file just add

newhost.example.com. IN A 12.13.14.15

Make sure you add the trailing period to the tld, or the $ORIGIN will be appended to the end

sample for BIND ver 9.x:

Code:
$TTL    8640
$ORIGIN example.com.
@                       1440 IN SOA     ns1.example.com. hostmaster.example.com. (
                                        22644           ; serial (d. adams)
                                        28800            ; refresh
                                        14400            ; retry
                                        3600000          ; expiry
                                        86400 )          ; minimum
;
@               IN      NS      ns1.example.com.
@               IN      NS      ns2.example.com.
;
ns1             IN      A       1.1.1.2
ns2             IN      A       1.1.1.3
;
host1	IN	A	1.1.1.4
host2	IN	A	2.2.2.4


-Pete

Last edited by dwellersoul : March 4th, 2003 at 07:54 PM.

Reply With Quote
  #3  
Old March 5th, 2003, 09:30 AM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
OK, thanks for the info. I'm not the one who will actually be modifying the DNS records, but I need to know what I'm talking about and what is the best way to do what I'm trying to accomplish when I talk to the person that will.

Quote:
Both methods will work, but you shouldn't move delegation of a host record to another set of nameservers. That's typically done when you have a division which is going to control their own hosts.

The situation is that example.com resolves to a Windows NT / IIS web server. What I need to do is have newhost.example.com resolve to a different server (LAMP) at a different hosting company.

Delegating authority for the new host to the DNS servers at the second hosting company would be more flexible by allowing me to do things like set up subdomains of that domain using self-service administration software that is not available at the original hosting company. But realistically, I probably won't need to do those kinds of things, so as you recommend just adding the A record, that definitely sounds simpler. For mail routing purposes I might need them to add some additional records, e.g.:
newhost.example.com IN MX 0 newhost.example.com
correct?

Thanks for replying, I appreciate it.

Reply With Quote
  #4  
Old March 5th, 2003, 11:01 AM
dwellersoul dwellersoul is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: SoCal
Posts: 9 dwellersoul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 7 sec
Reputation Power: 0
Mail routing might not be needed unless you plan on having emails like bob@newhost.example.com, or you plan on using the mail server at the new hosting company.

On the flip side, if the new hosting company allows you to manually update your zone records it might be easier just to move ns1.example.com and ns2.example.com to the new host. That all depends on your preferrence, and if the current company is quick to respond to your requests.

-Peter

Reply With Quote
  #5  
Old March 5th, 2003, 01:07 PM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
Re: the mail. Yes, that's what I meant / want to do (use the mail servers at the other hosting company), insofar as I only want the first company's servers to handle DNS, not mail or anything else.

The actual scenario is that the new hosting company provides the same DNS servers for all accounts, so they just have generic hostnames, e.g. ns1.ourdns.com. So ordinarily, if I just went and registered example.com, I would use their control panel to create a new account. They would set up the virtual host and configure their DNS to be authoritative for the domain and I would need to configure their DNS server names (ns1.ourdns.com) with the domain name registrar.

However, since it is a third level domain that I am talking about, my original question . . .

Make the current DNS servers that are authoritative for example.com the authoritative servers for newhost.example.com, adding the necesary records, e.g. an A, maybe an MX -- meanwhile don't do anything to the DNS data at the other hosting company

Or

Add the appropriate RRs to the current DNS data to specify ns1.ourdns.com and ns2.ourdns.com (at the other hosting company) as the name servers for newhost.example.com and set up the appropriate DNS settings on ns1.ourdns.com and ns2.ourdns.com to make them the authoritative name servers.

Each hosting company I use (there are several) does things a little differently, but taking a particular one as an example -- they have a control panel for setting up new accounts. They do the DNS updates manually, but within 24 hours of setting up the account in the control panel. But I'm in no big rush anyway, it's much more important to get this setup in the way that is best for the long run.

I hope I'm making sense. Do you see what I mean?

Thanks for the continued help.

Reply With Quote
  #6  
Old March 5th, 2003, 01:20 PM
dwellersoul dwellersoul is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: SoCal
Posts: 9 dwellersoul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 7 sec
Reputation Power: 0
I think in short you would be better of keeping everthing on one name server, makes it much easier to manage and keep track off. This is especially true when only one person is maintianing the zones through many different interfaces. I think the KISS principle does apply here.

-Pete

Reply With Quote
  #7  
Old March 5th, 2003, 01:45 PM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
Yeah, OK, that sounds reasonable. I'll arrange to do it that way unless I learn of a good reason to delegate the new zone.

Thanks for your input. I don't have that much experience with DNS issues, so your more-informed advice is helpful.

Reply With Quote
  #8  
Old March 5th, 2003, 01:53 PM
dwellersoul dwellersoul is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: SoCal
Posts: 9 dwellersoul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 7 sec
Reputation Power: 0
No problem at all, if you have any more questions feel free to ask. I ran some very large nameservers out there, 2 million+ domains across multiple boxes, including the bulkregister.com nameservers for a bit.

-Pete

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Host a subdomain on a different web server


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway