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.

My domain is on one server and I wanted to put wildcard DNS settings for another server.

Basically I have two servers and I want all the wildcard to go on second server, how can I do that?

share|improve this question

1 Answer 1

Assuming that you're using Bind, that your server has the ip 1.2.3.4, the other server has the ip 5.6.7.8 and that your main server is named my.domain.com, you just need to add the following lines to your configuration:

my.domain.com. 300 IN A 1.2.3.4
*.domain.com. 300 IN A 5.6.7.8

If you use tinydns, these are the config lines:

=my.domain.com:1.2.3.4:300
=*.mydomain.com:5.6.7.8:300

Both configurations will set a 300 seconds TTL to each record.

You can find more info about Wildcard DNS Records here.

Hope this helps!

share|improve this answer
    
To improve future performance, once you work out the bugs, you will want to increase the ttl to several hours or longer. A short ttl will mean users of your site will have to perform frequent dns queries to get the proper ip. –  cpbills May 24 '10 at 19:49

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.