DNS Problem with Fresh Debian install

Discussion in 'Server Operation' started by laidejs25, Jul 11, 2012.

  1. laidejs25

    laidejs25 New Member

    Hi
    I have the problem trying to sort this for 2 weeks no result. 100 times reinstall the same problem. I use Debian ISPConfig with Bind installation run with no errors. Site is not coming up with name changing to ip works good changing to * not working. Dig mydomain, localhost, mx say no dns records serverfail. Dig google run well. I added dns in ispconfig with wizard (usualy worked for me). In my /etc/bind/named.conf.local shows zone for my domain. /etc/bind/pri.mydomain shows records about my domain looks good (i hope). In my /var/log/ispconfig/cron.log only warnings about jailkit' missing LSB tags and [warn] NameVirtualHost has no virtualhost any idea what can be wrong with my box ? Big thanks for any help.


    Dig mydomain


    ; <<>> DiG 9.7.3 <<>> elatvia.lv
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 64114
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;elatvia.lv. IN A

    ;; Query time: 5 msec
    ;; SERVER: 82.193.64.2#53(82.193.64.2)
    ;; WHEN: Wed Jul 11 11:24:35 2012
    ;; MSG SIZE rcvd: 28


    /etc/bind/named.conf.local


    zone "elatvia.lv" {
    type master;
    allow-transfer {none;};
    file "/etc/bind/pri.elatvia.lv";
    };


    /etc/bind/pri.elatvia.lv


    $TTL 3600
    @ IN SOA ns1.server1elatvia.elatvia.lv. elatvia.elatvia.lv. (
    2012071001 ; serial, todays date + todays serial #
    7200 ; refresh, seconds
    540 ; retry, seconds
    604800 ; expire, seconds
    86400 ) ; minimum, seconds
    ;

    elatvia.lv. 3600 A 212.142.73.*
    elatvia.lv. 3600 MX 10 mail.elatvia.lv.
    elatvia.lv. 3600 NS ns1.server1elatvia.elatvia.lv.
    elatvia.lv. 3600 NS ns2.server1elatvia.elatvia.lv.
    mail 3600 A 212.142.73.*
    www 3600 A 212.142.73.*
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You must not use asterisks.
     
  3. laidejs25

    laidejs25 New Member

    Hi falko thanks for reply.

    I changed the last ip digits in post with *. In original I have full and corect ip off my box. Here it is:

    /etc/bind/pri.elatvia.lv


    $TTL 3600
    @ IN SOA ns1.server1elatvia.elatvia.lv. elatvia.elatvia.lv. (
    2012071001 ; serial, todays date + todays serial #
    7200 ; refresh, seconds
    540 ; retry, seconds
    604800 ; expire, seconds
    86400 ) ; minimum, seconds
    ;

    elatvia.lv. 3600 A 212.142.73.115
    elatvia.lv. 3600 MX 10 mail.elatvia.lv.
    elatvia.lv. 3600 NS ns1.server1elatvia.elatvia.lv.
    elatvia.lv. 3600 NS ns2.server1elatvia.elatvia.lv.
    mail 3600 A 212.142.73.115
    www 3600 A 212.142.73.115





    P.S.
    I still looking for solution
     
    Last edited: Jul 12, 2012
  4. falko

    falko Super Moderator Howtoforge Staff

  5. laidejs25

    laidejs25 New Member

    Thanks Falko for help it worked for me. ;)


    I added A records in ISPConfig DNS
    example:
    A ns1.server1mydomain.mydomain.com 192.148.2.101
    A ns2.server1mydomain.mydomain.com 192.148.2.101
     

Share This Page