DNS records does not appear in db file

simisimis

Verified User
Joined
Mar 26, 2012
Messages
31
Location
Amsterdam
Hello,

recently I updated directadmin to 1.44.0 on two of my centos machines. One centos 5.7 with custombuild v1 and another one is 6.4 with custombuild v2.
Today I've noticed that centos 6.4 machine is not functioning properly. When I create a user through api or through webadmin panel, user gets created, it's /usr/local/directadmin/data/users/USER/ directory seems to be alright, in /etc/virtual and /etc/named.conf appropriate values appear. Even a zone file in /var/named/USER.FACULTY.UNIVERSITY.EDU.db is created. But...

file /var/named/FACULTY.UNIVERSITY.EDU.db does not receive any values of that user e.g.

when I create user on a working machine I see:

User USER created

Details

Unix User created successfully

User's System Quotas set
User's data directory created successfully
Domains directory created successfully
Domains directory created successfully in user's home

USER 14400 IN CNAME www1 \
www.USER 14400 IN CNAME www1 \
admin.USER 14400 IN CNAME webadmin \
ftp.USER 14400 IN CNAME webadmin \
mail.USER 14400 IN CNAME webadmin \
NewSerial is 2013100704

subdomain USER already exists in /var/named/FACULTY.UNIVERSITY.EDU.db
Domain Created Successfully

Added user USER.

but on that centos 6.4 I get the same output except for lines:
USER 14400 IN CNAME www1 \
www.USER 14400 IN CNAME www1 \
admin.USER 14400 IN CNAME webadmin \
ftp.USER 14400 IN CNAME webadmin \
mail.USER 14400 IN CNAME webadmin \
NewSerial is 2013100704
subdomain USER already exists in /var/named/FACULTY.UNIVERSITY.EDU.db

I know that custom dns_a.conf template provides values to USER.FACULTY.UNIVERSITY.EDU.COM.db but I can't find out which template or script is being called to add those user values to /var/named/FACULTY.UNIVERSITY.EDU.db

And somehow the only dns records are working from FACULTY.UNIVERSITY.EDU.db. USER.FACULTY.UNIVERSITY.EDU.db does not change anything worldwide.
If I use dig to find out info about the domain dns I get no answer section, just authority:

;; AUTHORITY SECTION:
FACULTY.UNIVERSITY.EDU. 14400 IN SOA NS1.UNIVERSITY.EDU. hostmaster.FACULTY.UNIVERSITY.EDU. 2013091902 14400 3600 1209600 86400


but if I do:

# dig USER.FACULTY.UNIVERSITY.EDU @FACULTY.UNIVERSITY.EDU

then I get correct info.

So to sum up, I need a help understanding how to make those values additionally appear as CNAME in FACULTY.UNIVERSITY.EDU.db file
or to edit /etc/named.conf or something else so USER.FACULTY.UNIVERSITY.EDU.db would be able to notify University NS servers...

Thanks in advance for your help,
Best regards,
Simonas
 
Last edited:
I'm not sure if I placed this problem under correct section.

prob all that information is a bit confusing.

Maybe anyone knows, if on a user+domain creation I would like university.edu.db to be updated but not the user.university.edu.db
which script or template I should edit?
 
That was all you had to write :).

I don't think it's easily done, because DirectAdmin uses zone files internally to determine if a domain (or in your case a subdomain created as a domain) exists. So without a new zone file being created there'd be no way to protect allowing attempts to create a duplicate domain name. Creating a duplicate domain name could cause havoc on the server, such as deleting old data, overwriting, etc.

Perhaps DirectAdmin staff will have a suggestion or solution.

Jeff
 
I'm not 100% sure I'm entirely following the question... but if the issue is that:
university.edu- resolves
user.university.edu - does not resolve

Then, because your local dig to user.university.edu works just fine, it sounds then like the dns for university.edu.db is controlled by some other external dns server.
It would be difficult to debug with certainty without knowing the true name of the domain, however putting university.edu (or whatever the true name is) into www.intodns.com would likely tell you who's actually controlling the dns.

John
 
Thank you, very nice human readable and descriptive website to check on dns records.

This is what network admin wrote me when I asked to give me dns control for FACULTY.UNIVERSITY.EDU subdomain:

I have created a _glue_ record for mail.FACULTY.UNIVERSITY.EDU being MyServerIP in the main UNIVERSITY.EDU zone and have changed the delegation such that the universities nameservers will look at mail.FACULTY.UNIVERSITY.EDU for the zone FACULTY.UNIVERSITY.EDU

I am not very much familiar of how the dns servers work, whether what he did gives my server full control over that FACULTY.UNIVERSITY.EDU subdomain, or only some part. Need to do more reading about dns in general and the way named works.
However I inspected my other DA server that was created by admin before me and found out that he was using custom scripts in /usr/local/directadmin/scripts/custom
such as:
subdomain_create_pre.sh
subdomain_destroy_post.sh
add-subdomain
etc.

which are adding/removing CNAME records and updating serial in /var/named/FACULTY.UNIVERSITY.EDU.db besides the regular DA behaviour of creating USER.FACULTY.UNIVERSITY.EDU.db file and putting all the values in there.

It's working now, not the way I would imagine it should, however in our particular situation it fits our needs.

Thank you for replies.
Regards,
Simonas
 
I think I understand you. I can't test bedause you never gave us your domain name, but all it takes for subdomain zones on your server to work on the 'net is to have NS records in the main university zone file pointing to them.

For example:
Code:
subdomain.example.edu NS ns1.yourserver.com
[code]
And it seems as if that's what he's done and that's what he means by [i]glue[/i] records.

Jeff
 
Back
Top