Setting up a DNS Sub Domain
I've tried to set up a subdomain but unsuccessfully. I've been reading 'DNS and BIND' along with numerous online tutorials.
First I would like to make sure I understand how the configuration works: a.dom parent b.a.dom delegated subdomain 1.In all texts I've read there is an assumption the reader knows what the resolv.conf of the CLIENTS within the subdomain contains. Does this contain the address of the parent NSs or the subdomain NSs as it's primary/secondary? 2.Does the resolv.conf on CLIENTS search a.dom or b.a.dom? I'm assuming the latter but just making sure. 3.If a client 'lou.b.a.dom' wants to lookup 'joe.a.dom' can he ping 'joe' or does he have to ping 'joe.a.dom'? 4. The reverse of #3. Can 'joe.a.dom ping'lou' or does he have to ping 'lou.b.a.dom'? 5. If 3&4 require the longer name is there a way to use only the short name? With my current test configuration I can point a subdomain client to either the parent or child nameservers and only get what is listed in their domains. |
Delegated subdomain?
I'm not sure, I'm getting you right. Do you want to set up a subdomain for a registered domain in a way, that the subdomain is managed under a different zone?
If yes: you need to know nothing about resolv.conf, your DNS resolver takes care of all that. Just make sure, the resolver knows about your domain. (If you have officially registered it, this is allready the case.) Let's take example.com az a zone, ns1.provider.com and ns2.provider.com as NS servers and 1.2.3.4 as the IP address of your NS server for the subdomain. Your zone file for example.com. would look like this: Code:
$TTL 600 Code:
$TTL 600 |
First, this is a private non-registered domain within a company.
We are a division in a separate location from our main office and are trying to create a delegated subdomain. Currently everyone is in one domain between two states. When referring to the resolv.conf file I was speaking of the individual computers within the subdomain, not the nameservers. Here's my current attempt: Parent Domain: Code:
$ORIGIN domain.nonreg. Code:
$TTL 3600 ; 1 hour Currently this does not work. I can only resolve one domain or the other depending on the which I choose for a name server. Anything obvious? |
Private
In case of private domains, you _MUST_ let your network's resolver know about the domain. However, since a domain is really (really) cheap, you could just buy one. Your time might cost your company more.
|
This setup is mainly for programmers to easily shell into different servers to work. I don't see a reason to buy a domain. It's been working fine without an added subdomain, we just want to add the subdomain now. Everything should be resolved internally, outside of surfing the web.
|
Then?
I don't really understand your question then. You just need to add the subdomain to your existing zone.
|
Right, and it's not working.
|
dig
Try the "dig" tool to query your DNS entries. First, start off with a recursion using your resolver. If that works, go into details querying records around your subdomain.
|
I still haven't gotten answers to my original questions.
What nameserver should any tom, dick, or harry's resolver (in the subdomain) point to in resolv.conf? The subdomain nameserver or the parent nameserver? Also, do my configuration files look correct? |
Quote:
|
Think I found my problem.
My named.conf file in the parent had a typo. Now trying to get my head around how the cross slaving works. |
Clear text
Cleartext: the resolver needs to know about your domains. dnsmasq, bind or whatever. Your choice. You need to configure it to read from your DNS szerver FIRST, recurse afterwards.
|
All times are GMT -5. The time now is 05:02 PM. |