PDA

View Full Version : Subdomain configuration


pukihead
2008-08-09, 06:39 PM CDT
I've got a question about my zone file:

$TTL 86400

@ IN SOA ns.example.com. hostmaster.example.com. (

2008080701 ; Serial - YYYYMMDD##

12H ; Refresh

1H ; Retry

7D ; Expire

1D ; Default TTL

)



IN NS ns.example.com.

IN NS ns2.example.com.

person IN NS ns1.rebound.net.

person IN NS ns2.rebound.net.







IN A 10.11.0.144

www IN A 10.11.0.144

ftp IN CNAME ns.example.com.

construction IN CNAME www.shakyexample.com.

blog IN A 35.210.3.38

apps IN A 35.210.3.38

dev IN A 35.210.3.34

saweb IN A 64.132.0.6

supplyweb IN CNAME saweb.example.com.

media IN CNAME system2.ipressroom.com.

plans IN CNAME plans.gsn.com.

house IN A 74.35.210.3

housing IN A 74.35.210.71


I'd like to have person.shakyexample.com reslove, do I need to make a new zone file for shakyexample.com????? Or can I just put in /etc/reslov.conf:

search shakyexample.com


Thanks for the help!

briantan
2008-08-09, 10:29 PM CDT
Primary name server for shakyexample.com (as shown in # whois shakyexample.com) must define master zone file for the domain.

If DNS not defined and for internal/isolated use, you may add person.shakyexample.com in /etc/hosts.

"search shakyexample.com" in /etc/resolv.conf allows you to use short name, eg

ping person ==> ping person.shakyexample.com

but person.shakyexample.com must be defined somewhere (dns or hosts) to resolve into IP address.

pukihead
2008-08-10, 04:15 PM CDT
Thanks! To make sure I understand, I will need a new zone file for the shakyexample.com in order to use the subdomain person? So, I cannot merely do a CNAME in the example.com zone for shakyexample.com and then add the person.shakyeample.com subdomain and have it resolve?

briantan
2008-08-10, 09:23 PM CDT
Please explain what do you mean by "subdomain"

How would you define that CNAME in example.com zone for shakyexample.com?

pukihead
2008-08-10, 09:28 PM CDT
You've answered my question. I will need to make another zone file for shakyexample.com. Currently I have shakyexample.com in the example.com's zone file as a CNAME and thought I could add person to it as another CNAME, but I see I will need to make a zone file for shakyexample.com and then add the sub. Thanks for your help, briantan.