name server config issue

Discussion in 'ISPConfig 3 Priority Support' started by jpcyrenne, Aug 13, 2014.

  1. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    Good Day,

    I have an old cPanel and I want to replicate my zones on an other server for all the good reasons we know.

    Running ISPConfig 3.0.5.3 on CentOS 6.4 X64.

    Following this HowToForge: http://www.howtoforge.com/how-to-run-your-own-name-server-with-ispconfig-3-and-fast-hosts

    If I create a Zone it works. I got to add a NS record ns1.mysite.com I have something that looks like a wine glass logo at the right end (not a red circle with hyphen in it to remove the record). I can't remove the NS record entry. I created it because I want it to be a nameserver. If I click it a popup comes for a second and disappears.

    I can not create A records. Well I create them, click save and see nothing.

    I did not get default zones created like the HowTo

    I removed the zone, recreated it and my NS record was still there?

    I changed the TLL, removed the zone, recreated it and the NS zone was still there with the new TLL.

    Bind is running well (netstat -nltp).

    Here's what was created in /var/named:
    (you can see i tried to create records like www, coco - don't think I created mail)

    $ less pri.hostinpowers.com.err
    $TTL 3600
    @ IN SOA ns1.hostinpowers.com. sysop.hostinpowers.com. (
    2014081202 ; serial, todays date + todays serial #
    7200 ; refresh, seconds
    540 ; retry, seconds
    604800 ; expire, seconds
    86400 ) ; minimum, seconds
    ;

    coco 86400 A 209.172.54.6
    hostinpowers.com. 3600 A 209.172.54.6
    hostinpowers.com. 3600 MX 10 mail.hostinpowers.com.
    hostinpowers.com. 3600 NS ns1.hostinpowers.com.
    hostinpowers.com. 3600 NS ns2.hostinpowers.com.
    mail 3600 A 209.172.54.6
    www 3600 A 209.172.54.6


    Thanks ahead for your time and responses,

    JP Cyrenne
     
  2. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    I removed the zone in ISPConfig and the entry in /var/named (pri.hostinpowers.com.err), rcreated the zone in ISPConfig and same thing.

    a NS recors is there with funny icon. I trien creatinf a test record wich I don't see?

    less pri.hostinpowers.com.err
    $TTL 3600
    @ IN SOA ns1.hostinpowers.com. sysop.hostinpowers.com. (
    2014081201 ; serial, todays date + todays serial #
    7200 ; refresh, seconds
    540 ; retry, seconds
    604800 ; expire, seconds
    86400 ) ; minimum, seconds
    ;

    hostinpowers.com. 3600 A 209.172.54.6
    hostinpowers.com. 3600 MX 10 mail.hostinpowers.com.
    hostinpowers.com. 3600 NS ns1.hostinpowers.com.
    hostinpowers.com. 3600 NS ns2.hostinpowers.com.
    mail 3600 A 209.172.54.6
    www 3600 A 209.172.54.6

    I it because the Domain isn't created on the server? Don't think I need to and don't really want to?

    Thanks,

    JP
     
  3. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    copied a zone from cpanel server, put it in a file then imported it in ISPConfig.

    The zone seems to have created well (no .err in zone name). Same issue with Records tab. ns1 is there, I can't see the imported records and when I add a record and save it, i don't see it ithe GUI but eventually shows up in the server file (/var/named)

    JP
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You missed to create th A records for the ns records and therefor named rejected the zone and it got saved as .err file.

    If a NS record is a subdomain of the same zone, then this NS record has to exist as A-Record in the same zone as well.
     
  5. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    Last night, after the last post, I went on the main (original) name server and created the entries for ns1 and ns2 (NS and A records)

    $ dig ns1.hostinpowers.com

    ; <<>> DiG 9.8.3-P1 <<>> ns1.hostinpowers.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46605
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;ns1.hostinpowers.com. IN A

    ;; ANSWER SECTION:
    ns1.hostinpowers.com. 14399 IN A 209.172.54.6

    ;; Query time: 563 msec
    ;; SERVER: 8.8.8.8#53(8.8.8.8)
    ;; WHEN: Wed Aug 13 09:53:41 2014
    ;; MSG SIZE rcvd: 54

    $ dig ns2.hostinpowers.com

    ; <<>> DiG 9.8.3-P1 <<>> ns2.hostinpowers.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33158
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;ns2.hostinpowers.com. IN A

    ;; ANSWER SECTION:
    ns2.hostinpowers.com. 14399 IN A 209.172.54.7

    ;; Query time: 308 msec
    ;; SERVER: 8.8.8.8#53(8.8.8.8)
    ;; WHEN: Wed Aug 13 09:54:01 2014
    ;; MSG SIZE rcvd: 54

    I imported the zone from a text file, went well but still same problem. It seems to be a GUI isssue. I don't see the different records in ISPConfig that I have in the zone text file.

    Plus, if I start from scratch, I use the Wizard, it should create the needed basic records I see in the HowToForge which it doesn't?

    I deleted the zone and reimported it once again.
    -The zone file has successfully been imported!-

    Had the same issue, deleted the ns1 record and everything came back up normal it seems. I'll manually import my other zones. Guess I'm good now.

    --------
    Now what's the best tut for synching 2 nameservers between 2 ISPConfig? I'd like ns2 on another box and have them sync (one way is still OK). Can ISPConfig do it or I have to writhe my own scripts (rsync?).


    Thanks,

    JP
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    The wizard will create the dns records that you defined in the template that you have choosen for the creation of this domain, not more and not less. A-Records for NS records are not in the template as most ISP's use the domain of their dns servers and not the domain of the created zone.

    ISPConfig can do this automatically, see multiserver guides.
     

Share This Page