Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to setup subdomains on my DNS server running Yadifa 1.0.2 on Ubuntu 12.10 64bit but can't get it to work.

in my yadifad.conf, my zone looks like this

  type                    master
  domain                  domain.tld.
  file                    masters/
  allow-transfer          any                          # for tests


$ORIGIN domain.tld.
domain.tld.              IN    SOA ns.domain.tld. hostmaster.domain.tld. 1 10800 3600 604800 86400
                               NS ns.domain.tld.

ns                       IN    A
host                     IN    A
host.subdomain           IN    A
alias.subdomain          IN    CNAME host.subdomain

Running this configuration I can query my server for host.domain.tld fine but if I query for host.subdomain.domain.tld or alias.subdomain.domain.tld I get a host not found: 5(REFUSED) error.

I've tried many different configurations like moving my subdomain to it's own zone file but nothing has worked so far.

What am I doing wrong?

share|improve this question
I'm not familiar with this software, but I notice you have allow-transfer set. Is there an allow-query too? Can you share your entire config file? – James O'Gorman Mar 30 '13 at 11:11
@JamesO'Gorman you can see a default config file here my config file is basically the same but with my zone block instead of the zone; so allow_query any – teuna Mar 30 '13 at 14:13

I assume that YADIFA is installed in /usr/local ?

If it's the same configuration file with only the zone edited then go in your configuration file folder and do:

sed -i 's/local-dev/local/g' yadifad.conf
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.