The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/etc/ip.remotedns usage & doc

Discussion in 'Bind / DNS / Nameserver Issues' started by spiff06, Jan 5, 2007.

  1. spiff06

    spiff06 Well-Known Member

    Joined:
    Jan 17, 2004
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    ip.remotedns

    Ok, I've successfuly set up an addon on my server, after going into Tweak Settings and allowing creation of domains resolving to other servers.

    However, my initial attempt met with this familiar error message:
    Error from park wrapper: Using nameservers with the following IPs:
    64.202.165.19,68.178.211.202 Sorry, the domain is already pointed to
    an IP address that does not appear to use DNS servers associated with
    this server. Please transfer the domain to this servers nameservers or
    have your administrator add one of its nameservers to
    /etc/ip.remotedns and make the proper A entries on that remote
    nameserver.​
    What, exactly, is the syntax of /etc/ip.remotedns? It seems like that would be a more reasonable solution than the tweak.

    Subdomains and mod_rewrite (related)

    A related issue came up with subdomain url rewriting: I'd like domain.com pages to be hosted on my server (currently under domain.xyz.com), but still appear as domain.com.

    I tried setting up an .htaccess file (in xyz.com/domain/):
    RewriteEngine On
    RewriteRule ^/(.*)$ http://domain.com/$1 [L,R]​
    Also tried:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^domain\.com [NC]
    RewriteCond %{HTTP_HOST} !^$
    RewriteRule ^/(.*) http://domain.com/$1 [L,R]​
    No luck.

    I don't think I'm doing anything unreasonable with mod_rewrite here (unless I'm missing something really obvious), so it looks like Apache just serves the subdomain, ignoring mod_rewrite.

    Would this be solved more gracefully with proper settings in ip.remotedns?

    Any help with this would be appreciated.
     
    #1 spiff06, Jan 5, 2007
    Last edited: Jan 5, 2007
Loading...

Share This Page