subdomain DNS problem

simisimis

Verified User
Joined
Mar 26, 2012
Messages
31
Location
Amsterdam
Hello,
I am working in university and I run one faculty domain on DA. We have faculty.university.edu
Server is using universities dns servers. Now if I create a user with a scientist.faculty.university.edu
DA creates /var/named/scientist.faculty.university.edu.db file and also makes changes on /var/named/faculty.university.edu.db

after ttl expires, dns records gets updated properly and I have no problems with those. But if I create in user level a subdomain cms.scientist.faculty.university.edu
/var/named/scientist.faculty.university.edu.db file get updated properly. But subdomain never resolvs.
If I dig from my pc it @ns1.university.edu

Code:
# dig cms.scientist.faculty.university.edu @ns1.university.edu

;; AUTHORITY SECTION:
faculty.university.edu.	14400	IN	SOA	ns1.university.edu. hostmaster.faculty.university.edu. 2013071904 3600 3600 1209600 86400

but if I dig it @faculty.university.edu (my DA server) I get correct results:

Code:
# dig cms.scientist.faculty.university.edu  @faculty.university.edu

;; AUTHORITY SECTION:
scientist.faculty.university.edu. 14400 IN	NS	ns2.university.edu.

;; ANSWER SECTION:
cms.scientist.faculty.university.edu. 14400 IN  A  1.2.3.4


I am not very much familiar how bind works, but my guess is that domain: scientist.faculty.university.edu. is not authorised to notify ns[1-2].university.edu name servers, but domain: faculty.university.edu. is. even if it is the same server..

so the question can this be the case? or am I doing something wrong. Also would that be possible to edit template so DA adds user subdomains not under user db file /var/named/user.faculty.university.edu.db, but into /var/named/faculty.university.edu.db
because it would be time inefficient to register a call at central servicedesk everytime new user wants to have subdomain..

or maybe there are other options like university could allow *.faculty.university.edu..

Hopefully this info aren't too messy and you can understand what I'm trying to ask.
Thanks in advance for your comments.
S
 
Yes, the main nameserver need to be noticed about other nameserver authorized to delegate.

So in [ns1-ns2[.university.edu need to be present this

scientist.faculty.university.edu. NS ns1.scientist.faculty.university.edu.
scientist.faculty.university.edu. NS ns2.scientist.faculty.university.edu.

Ofc you need also to create A record for those two nameservers (may also be just one) with an A record

ns1.scientist.faculty.university.edu. A SUBDOMAIN_SERVER_IP
ns2.scientist.faculty.university.edu. A SUBDOMAIN_SERVER_IP

Hope it was enough clear and helpful.

PS. This will make every subdomain created under scientist.faculty.university.edu avaible with dns propagation, no need to merge .db files, would be just a mess ;)

Regards
 
Yes, the main nameserver need to be noticed about other nameserver authorized to delegate.

So in [ns1-ns2[.university.edu need to be present this

scientist.faculty.university.edu. NS ns1.scientist.faculty.university.edu.
scientist.faculty.university.edu. NS ns2.scientist.faculty.university.edu.

Ofc you need also to create A record for those two nameservers (may also be just one) with an A record

ns1.scientist.faculty.university.edu. A SUBDOMAIN_SERVER_IP
ns2.scientist.faculty.university.edu. A SUBDOMAIN_SERVER_IP

Hope it was enough clear and helpful.

PS. This will make every subdomain created under scientist.faculty.university.edu avaible with dns propagation, no need to merge .db files, would be just a mess ;)

Regards

Yes, that was a great help, thank you a lot.
yes merging would be a mess, just in the way DA was setup here, the only named db files that were working was faculty.university.edu.db other were just created but were not notifying any ns.
anyway I see that I need to redo everything here in a proper way. thank you again,
have a great day,
S
 
Back
Top