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 have a nameserver of my hoster called ns1.hoster.com. I would like users of my (hosted) application to use my branded nameserver called ns1.mybrand.com.

ns1.mybrand.com points to ns1.hoster.com (Cname)

But this doesn't work. If I try to setup a domain at my registrar (point nameserver to ns1.mybrand.com), I get the following error:

The hosts [ns1.mybrand.com,ns2.mybrand.com] are not registered name servers.

It works when I try ns1.hoster.com directly.

Thanks for the help!

share|improve this question
3  
ns to cname.. bad idea ... serverfault.com/questions/222641/… –  Gryphius Nov 13 '12 at 20:10
    
So I should setup my own DNS server? But what kind of record does ns1.mybrand.com needs to be to point it to my own dns server setup? Mybrand.com uses the dns server of the registrar. –  Ward Loockx Nov 13 '12 at 20:26
    
You are going to need to run your own DNS servers if this is something you require. I don't understand how you think you registrar would even support having your customers point at their name servers. –  Zoredache Nov 13 '12 at 20:46
    
Please take a step back and describe the actual problem you're trying to solve instead of what you perceive as the solution. What do you want to achieve by having your users use ns1.mybrand.com instead of ns1.hoster.com? –  Ansgar Wiechers Nov 13 '12 at 23:18

1 Answer 1

You should think of this differently,

nsx.mybrand.com is a different zone (and file) to nsx.hoster.com, so as just create normal A records in your mybrand.com zone file and use the same IPs as the nsx.mybrand.com name servers.

This will do what you want, I've being doing it for many years.

Example. registered name server ns1.hoster.com and ns2.hoster.com

in the forward zone file for mybrand.com, add:

NS1 IN A 1.2.3.4 (ip address of ns1.hoster.com)

NS2 IN A 1.2.3.5 (ip address of ns2.hoster.com)

You can then use NS1.mybrand.com NS2.mybrand.com as if they where registered name servers nsx.hoster.com. All of the of queries go to the real name servers so everything works as expected.

hope this makes sense.

share|improve this answer
    
I've tried to do this, But it doesn't work. But this is the solution I was thinking of. My registrar doesn't allow nsx.mybrand.com (A records that points to nsx.myhoster.com) as nameserver. I get the error nsx.mybrand.com is not a registered nameserver. If I point directly to nsx.myhoster.com it works. But then I don't use my brandname.... –  Ward Loockx Nov 14 '12 at 18:05

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.