Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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/

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

  1. loverboy

    loverboy Active Member

    May 1, 2005
    Likes Received:
    Trophy Points:
    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:

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

    i think the problem is

    %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/

    how to resolve it !


Share This Page