LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   DNS $ORIGIN problem (http://www.linuxquestions.org/questions/linux-server-73/dns-%24origin-problem-808590/)

abhandari 05-18-2010 07:52 AM

DNS $ORIGIN problem
 
Hi everybody,
i have a domain suppose support.com.np which is pointed from root DNS server to Nameservers ns1.xyz.com.np (primary server) and ns2.xyz.com.np (secondary server). Now I have configured new ISPConfig (control pannel and its MyDNS) on webhost.xyz.com.np. Now i have zone file for support.com.np (www,ftp,mail pointed) by webhost.xyz.co.np server. What i want to do is, to delegate only NS record from ns1.xyz.com.np to webhost.xyz.com.np so that it could respond every subdomains like www.support.com.np, mail.support.com.np etc. I don't to enter any subdomain records at ns1.xyz.com.np.

Thanks everybody in advance for their replies.

bathory 05-18-2010 08:22 AM

Hi,

Quote:

i have a domain suppose support.com.np which is pointed from root DNS server to Nameservers ns1.xyz.com.np (primary server) and ns2.xyz.com.np (secondary server).
You mean that ns1 and ns2 are the authoritative name servers for your domain?

Quote:

What i want to do is, to delegate only NS record from ns1.xyz.com.np to webhost.xyz.com.np so that it could respond every subdomains like www.support.com.np, mail.support.com.np etc.
Why don't you just use your domain registrar tools to change the primary dns to be webhost.xyz.com.np?

If you still want to keep ns1 and ns2 as authoritatives, then you can define the zone support.com.np as "forward". You need something like the following in named.conf of ns1 (and ns2 if you like)
Code:

zone "support.com.np" {
        type forward;
        forwarders {x.x.x.x;};
};

Of course x.x.x.x is the IP of webhost.xyz.com.np

If this is not what you're trying to do, please give more details

Regards

abhandari 05-25-2010 02:49 AM

Quote:

Originally Posted by bathory (Post 3972763)
Hi,

You mean that ns1 and ns2 are the authoritative name servers for your domain?

Why don't you just use your domain registrar tools to change the primary dns to be webhost.xyz.com.np?

If you still want to keep ns1 and ns2 as authoritatives, then you can define the zone support.com.np as "forward". You need something like the following in named.conf of ns1 (and ns2 if you like)
Code:

zone "support.com.np" {
        type forward;
        forwarders {x.x.x.x;};
};

Of course x.x.x.x is the IP of webhost.xyz.com.np

If this is not what you're trying to do, please give more details

Regards

Hi, bathory

THANKS A LOT i used ur technique. I was trying with $ORIGIN setting. Thanks Again.


All times are GMT -5. The time now is 08:41 AM.