Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

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

masters/domain.tld.zone

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

ns                       IN    A 10.0.0.250
host                     IN    A 10.0.0.32
host.subdomain           IN    A 10.0.0.110
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 git.io/_e4R1A my config file is basically the same but with my zone block instead of the somedomain.eu zone; so allow_query any –  teuna Mar 30 '13 at 14:13

1 Answer 1

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

 
discard

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.