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 on a Windows 7 VM with Apache. I'm trying to get Bind DNS setup to route subdomains to the same place as the main domain. The main domain routes correctly to 172.16.5.1 as specified in the hosts file. But the subdomains are still routing to the 127.0.0.1

I haven't added anything to the httpd.conf because I don't *think I need to. Here are my bind files. Any ideas of what might be wrong? I'm also not sure what 'hostmaster' should be changed to, if anything, in the zone file.

/etc/named file:

options {
    directory "c:\named\zones";
    allow-transfer { none; };
    recursion no;
};


zone "." IN {
    type master;
    file "db.eg.com.txt";
};

#allow-transfer { none; };

# Use with the following in named.conf, adjusting the allow list as needed:
key "rndc-key" {
    algorithm hmac-md5;
    secret "Rha8Z8AKxOeg+asqZQ==";
};

controls {
    inet 127.0.0.1 port 953
        allow { 127.0.0.1; } keys { "rndc-key"; };
};

zones/db.eg.com.txt file:

$TTL 6h
@   IN SOA  eg.com. hostmaster.eg.com. (
            2011100911
            10800
            3600
            604800
            86400 )

@       NS  eg.com.
*   IN A    172.16.5.1
share|improve this question

migrated from stackoverflow.com Oct 10 '11 at 11:20

This question came from our site for professional and enthusiast programmers.

1 Answer 1

You need to specify an NS. Then it should work. an A record for the NS is what I meant. Nevermind I just read what you put down, you can't be your own ns at least not initially. and you are missing several ";".

http://pastebin.com/JtFEBRUr

share|improve this answer
    
Could you clarify? I'm not sure what you mean. And where am I missing colons? –  99miles Oct 10 '11 at 2:39

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.