Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help dns setup (windows dns) 1

Status
Not open for further replies.

totallyspaced

Technical User
May 18, 2003
5
AU
hello.
thanks for looking at this.
i own 2 domains.

domain1.com
domain2.com

i want to have 2 subdoman on domain1.com like this
subdomain1.domain.1.com
subdomain2.domain.1.com

i have a static ip
my register is godaddy.com
i will am behind a netgear fr114p router
my server is windows 2003 running active directory
domain i'm loging into = domain1.com
computername = computer
so is the nameserver computer.domain1.com?

my webserver is apache2 with php\sql (working fine externally and internally but only from ip address)

i don't know how to set up the dns things on my computer


here is my dns settings so far.

forward lookup zones
+ _msdcs.domain1.com
+DC
+Sites
+Default-First-Sites_name
+_tcp
_kerberos
_ldap

+_tcp
_kerberos
_ldap

+Domains
+9ac20fbb-60dc-4c0e-b190-ae266b00cc13
+_tcp
_ldap

+gc
+_sites
+Default-First-Sites_name
+_tcp
_ldap

+_tcp
_ldap
+pdc
+_tcp
_ldap

(same as perent folder) (SOA)
(same as perent folder) (NS)
9ac20fbb-60dc-4c0e-b190-ae266b00cc13 (cname)




+domain2.com
(same as perent folder) (SOA)
(same as perent folder) (NS)
(same as perent folder) (A)
(same as perent folder) (MX)
computername (A)




+domain1.com
+_msdcs
(same as perent folder) (NS)
+_Sites
+_domainDnsZone
+_tcp
_gc (srv)
_kerberos (sev)
_ldap (srv)

+_tcp
_gc (sev)
_kerberos (sev)
_kpasswd (sev)
_ldap (srv)

+_udp
_kerberos (sev)
_kpasswd (sev)

+_domainDnsZone
+_sites
+Default-First-Sites_name
+_tcp
_ldap (srv)
+_tcp
_ldap (srv)
(same as perent folder) (a)

+ForestDnsZones
+_sites
+Default-First-Sites_name
_ldap (srv)
+_tcp
_ldap (srv)
(same as perent folder) (a)

+subdomain1
(same as perent folder) (NS)


+subdomain2
(same as perent folder) (NS)

(same as perent folder) (SOA)
(same as perent folder) (NS)
(same as perent folder) (A)
(same as perent folder) (MX)
computername (A)



+subdomain1.domain1.com
(same as perent folder)(SOA)
(same as perent folder)(NS)
(same as perent folder) (A)
computername (A)

+subdomain2.domain1.com
(same as perent folder)(SOA)
(same as perent folder)(NS)
(same as perent folder) (A)
computername (A)




does that look right so far?
or is the subdomain settings in the wrong spot and should it be in with the same as the doman it is with.



(this is my settings in apache)
domain1.com port 80
subdomain on domain1.com port 81
subdomain2 on domain1.com port 82
domain2.com port 8080


when peple are looking for my site how does it know to come to the right port number?
where do i say what port number to come to?
i don't want them to have to put etc. that is unprofessional and untidy.


i know i could tell my register (godaddy) my ip address and put the port number e.g 123.123.123.123:80
but that's not the propper way to do things right?



thanks for your help.
 
You've asked at least 3 questions in this post, so forgive me if I miss something. You appear to have 2 domains (domain1.com and domain2.com) for which you are using:
1. GoDaddy for DNS to the general internet
2. an internal W2K3 server for your internal network which resides behind the netgear fr114p router

Here's how I see things:
1. you have 1 static IP address that gets routed to your netgear fr114p router. Are you forwarding external traffic to port 80 on your public IP address to your apache server? If so, apache can determine which site the client browser is requesting, if the client browser supports HTTP/1.1 (all modern browsers do). Therefore, you need to to point your external domains, using GoDaddy, to that 1 static IP. You also need to verify that your Apache configuration is correct for name-based Virtual Hosts.

More in my next post...
 
Another question that was asked:
so is the nameserver computer.domain1.com?
This depends, and I'm not familiar enough with W2K3 to be certain, but (at least in W2K), a windows 2000 server can:
1. be a caching DNS server
2. a primary DNS server
3. a secondary DNS server
4. an AD server with AD-integrated domains

You need to determine:
1. which servers are running the DNS service on your internal network
2. what type of service they are providing from the list above

This will help answer your question. You may want to consider NOT using the same domains internally and externally. It can be difficult to understand, and it's very easy to have DNS info from one side 'leak' into the other.

Your DNS config, at a glance, looks correct. Do you know where your server running apache is getting it's DNS info (you may need to check /etc/resolv.conf, unless you have apache running on Windows)?
 
my win2k3 is a AD server with AD-integrated domains.
apache on windows. of the same computer as the dns.


when i put in the 2nd domain it says the name server is computername.domain1.com (do i put it in as a secondary zone or a primary zone)?
but when i go godady to tell them my server it will not except computername.domain1.com
it'll accept computername.domain2.com
 
when i put in the 2nd domain it says the name server is computername.domain1.com (do i put it in as a secondary zone or a primary zone)?

This is difficult to answer, as I'm unsure what you're trying to accomplish. If you want split dns with your GoDaddy records separate and distinct from your internal network, then I think you want it to be a primary or AD-integrated. If you want your DNS to be the same, both internally and externally for this network, then you may be able to set it up as a secondary, using GoDaddy as the primary. There are other scenarios that I won't cover.

but when i go godady to tell them my server it will not except computername.domain1.com
it'll accept computername.domain2.com


There could be many reasons for this. The easiest would be to verify that you are the owner of that domain and that it is properly delegated to GoDaddy for DNS. This may be something you'll want to ask them about.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top