API Subdomains don't resolve

V_RocKs

New member
Joined
Aug 28, 2005
Messages
2
When I create a subdomain via DA it works just fine. When I create one through the API it doesn't resolve.

I have checked the DNS and both look identical. I check the httpd.conf file and both look identical. Both get a directory made in the file system.

I tried restarting the server and it still doesn't work.
 
What operating system and version of DirectAdmin are you running?
Have you contacted DirectAdmin about this problem (email)?

You said you tried restarting the server, was that after a subdomain is added through the API or just a general restart to make sure that it wasn't something else? (i.e. Are you sure apache is restarting after the new addition?)
 
Have you checked /etc/named.conf to make sure the API inserts a line for the subdomain?

If so, and if it still doesn't work, then perhaps you should try to restart named. If that fixes it, then you should probably add this code to your code right after the API call(s):

service named restart

(caution; the above is OS specific; you may need something else)

Jeff
 
False Alarm...

Just happened that those subs took much longer to resolve. (15 minutes instead of immediately).

Thanks for trying to help though.
 
Back
Top