Trouble configuring Google Apps in DNS

Discussion in 'Installation/Configuration' started by NdK, Aug 13, 2009.

  1. NdK

    NdK Member

    Hello all.

    I'm having troubles configuring Google Apps in DNS.
    I add a cname record from "mail" (w/o final dot) to "" (w/ final dot).
    Then when I dig mail.mydomain.dom I can see it gets only partially resolved:
    ;mail.mydomain.dom. IN A

    mail.mydomain.dom. 86400 IN CNAME

    It misses the following line from to the actual address.
    And even ping doesn't work.
    Looking in threads I found that the included DNS is non-resolving except internal addresses, but the machine from where I ping DOES have another DNS configured.

    Am I missing something or is it normal (if so it would be REALLY limiting...)?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely your server ais not authoritive for this domain. To test the local dns server, use:

    dig @localhost mail.mydomain.dom
  3. NdK

    NdK Member

    I don't know how to (and if I should) make it authoritative (it should just serve aliased addresses for the local network).

    Maybe it's better if I explain the structure of my network (simplifying a bit).
    - the modem/router gets the public IP from my ADSL provider and routes all requests from the external network to the server where ISPConfig runs
    - the "main" DNS is handled externally by editDNS, together with dynamic dns updates
    - the other internal computers should be able to access the server w/o using the external address

    The problem is that the modem/router mishandles requests from internal network targeted at pubIP:80, redirecting 'em to its web server for config.
    So I think I have to keep an internal DNS more or less synchronized to the external one...

    Is there a simpler way?

  4. falko

    falko Super Moderator ISPConfig Developer

    You can either edit the hosts file on your internal computers, or set up an internal DNS server and make your internal computers use that one as the primary DNS.
  5. NdK

    NdK Member

    That's exactly what I was trying to do (internal primary DNS), leveraging ISPConfig's interface to ease management. But it seems I'm still missing something...

    My zone records are:
    A "" 0
    CNAME calendar 0
    CNAME mail 0
    CNAME pvs test.tst. 0
    CNAME www test.tst. 0
    MX "" 1
    MX "" 5
    MX "" 5
    MX "" 10
    MX "" 10
    NS "" pvs 0

    pvs.test.tst is obviously the machine where ISPConfig runs and "" replaces the empty string.

    I initially tried a wildcard record like
    CNAME * test.tst. 0
    But it seems it won't work (is there some alternative? couldn't obtain good results w/ ALIAS records for mail and calendar). So Still no "catch all" record :(
    The problem is that it either resolves correctly internal addresses or external ones...
  6. ffoorreesstt

    ffoorreesstt New Member


    first sorry for my english.

    I have the same issue, I have configured MyDNS like primary DNS server and Bind 9 like secondary DNS server. From MyDNS gets zones to Bind.

    I configure Google Apps in MyDNS with CNAME and then automatic replicated to Bind, but when I trying to reach Google Apps and I have on my PC configured nameserver MyDNS then doesn't function. But when I use Bind like my nameserver on my PC all is OK.

    I try to dig to both off server and there is result:

    dig to MyDNS

    ; <<>> DiG 9.5.0-P2 <<>>
    ; (1 server found)
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58737
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

    ; IN A


    ;; AUTHORITY SECTION: 86400 IN NS 86400 IN NS

    ;; ADDITIONAL SECTION: 86400 IN A 86400 IN A

    ;; Query time: 2 msec
    ;; SERVER:
    ;; WHEN: Tue Sep 1 23:26:37 2009
    ;; MSG SIZE rcvd: 132

    dig to Bind

    ; <<>> DiG 9.5.0-P2 <<>>
    ; (1 server found)
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38234
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 6, ADDITIONAL: 6

    ; IN A

    ;; ANSWER SECTION: 86400 IN CNAME 600362 IN CNAME 300 IN A

    ;; AUTHORITY SECTION: 81847 IN NS 81847 IN NS 81847 IN NS 81847 IN NS 81847 IN NS 81847 IN NS

    ;; ADDITIONAL SECTION: 168247 IN A 81847 IN A 81847 IN A 168247 IN A 168247 IN A 81847 IN A

    ;; Query time: 33 msec
    ;; SERVER:
    ;; WHEN: Tue Sep 1 23:27:58 2009
    ;; MSG SIZE rcvd: 292

    You can see differences of queries. But why??
  7. NdK

    NdK Member

    Maybe because MyDNS is non-recursive, while BIND DOES recurse queries?
    So, if you're using MyDNS, it can't be your ONLY nameserver: you have to use another ns to resolve addresses you're not authoritative for.

    Hope it helps.
  8. ffoorreesstt

    ffoorreesstt New Member



    MyDNS can do recursive queries, but not by self. You can specify in mydns.conf recursive option for the other DNS server with recursive options.

    Now how I to do this.

    In my zone in MyDNS, I make A record and then CNAME which is headed to A record (oh my English), better is example:

    googleapps A
    calendar CNAME googleapps
    mail CNAME googleapps

    and now it's working :)

Share This Page