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.

problem in /var/named/site.com.db

Discussion in 'General Discussion' started by loverboy, Sep 9, 2006.

  1. loverboy

    loverboy Active Member

    Joined:
    May 1, 2005
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Hello... when configuring by example addon domains, the httpd.conf entries are fine, the named.conf entry is fine too, but the .db archive will become corrupted...

    something like:

    Code:
    cat /var/named/xxxx.xxx.db 
    ; cPanel 10
    ; Zone file for xxxx.xxx
    $TTL 14400
    @      86400    IN      SOA     xxx.xxxx.xxx. sat.xxxxx.xxx. (
                    2006072601      ; serial, todays date+todays
                    86400           ; refresh, seconds
                    7200            ; retry, seconds
                    3600000         ; expire, seconds
                    86400 )         ; minimum, seconds
    
    xxxx.xxx. 86400 IN NS xxx.xxxx.xxx.
    xxxx.xxx. 86400 IN NS xxx.xxxx.xxx.
    
    %nameserverentry%. IN A %nameservera%
    %nameserverentry2%. IN A %nameservera2%
    %nameserverentry3%. IN A %nameservera3%
    %nameserverentry4%. IN A %nameservera4%
    
    xxxx.xxx. IN A 213.xxx.xx.xx
    
    localhost.xxxx.xxx. IN A 127.0.0.1
    
    xxxx.xxx. IN MX 0 xxxx.xxx.
    
    mail IN CNAME xxxx.xxx.
    www IN CNAME xxxx.xxx.
    ftp IN CNAME xxxx.xxx.
    

    i think the problem is

    Code:
    %nameserverentry%. IN A %nameservera%
    %nameserverentry2%. IN A %nameservera2%
    %nameserverentry3%. IN A %nameservera3%
    %nameserverentry4%. IN A %nameservera4% 
    
    i get that to remove error

    sed -i 's/%nameserverentry2%. IN A %nameservera1%//g' /var/named/*.db
    sed -i 's/%nameserverentry2%. IN A %nameservera2%//g' /var/named/*.db
    sed -i 's/%nameserverentry2%. IN A %nameservera3%//g' /var/named/*.db
    sed -i 's/%nameserverentry2%. IN A %nameservera4%//g' /var/named/*.db

    but if i create new site it give the same error in it's /var/named/site.com.db

    how to resolve it !

    thanks
     
Loading...

Share This Page