Author Topic: DNS Problems  (Read 2317 times)

jdvachal

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
DNS Problems
« on: August 26, 2008, 03:15:50 am »
Hello All,

I am having some issues with the DNS module of ebox.

The Domain Name Service module under the modules page shows checked.

I have a domain and several hosts entered in the DNS configuration.

I have dhcp set to issue the ip address of the ebox server as the primary dns server.

On a client I successfully obtain a lease through dhcp and the dns server is listed as the primary in ipconfig/all.

When I run nslookup and query a hostname I get the following.

*** UnKnown can't find BENELLI: Server failed

*** UnKnown can't find benelli.vertexcg.com: Server failed

I should also mention that vertexcg.com is set as the dns search domain.

Any suggestions?




jcanfield

  • Zen Monk
  • **
  • Posts: 89
  • Karma: +2/-0
    • View Profile
Re: DNS Problems
« Reply #1 on: August 26, 2008, 05:15:37 am »
Please post the following files from the server:

resolv.conf
hosts

More than likely it's one of those two files.
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius...and a lot of courage - to move in the opposite direction."  --  Albert Einstein

jdvachal

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: DNS Problems
« Reply #2 on: August 26, 2008, 03:34:42 pm »
/etc/hosts contains


127.0.0.1       localhost
127.0.1.1       BENELLI.VERTEXCG.COM    BENELLI

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

/etc/resolv.conf contains


nameserver 172.16.2.1
nameserver 69.145.248.50
nameserver 69.145.232.4


I see that named.conf does an import of named.conf.local.

named.conf.localcontains

zone "VERTEXCG.COM" {
        type master;
        file "/etc/bind/db.VERTEXCG.COM";
};

zone "2.16.172.in-addr.arpa" {
        type master;
        file "/etc/bind/db.2.16.172";
};
zone "0.16.172.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0.16.172";
};
zone "1.16.172.in-addr.arpa" {
        type master;
        file "/etc/bind/db.1.16.172";
};

This is where it starts to make no sense ... the files /etc/bind/db.VERTEXCG.COM,db.2.16.172,db.0.16.172, and db.1.16.172 do NOT exist in /etc/bind.


sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: DNS Problems
« Reply #3 on: August 26, 2008, 05:28:18 pm »
Try to reload dns server by running:
Code: [Select]
$ sudo invoke-rc.d ebox dns restart

Check /var/log/ebox/ebox.logs to know if something wrong is happening.
My secret is my silence...

jdvachal

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: DNS Problems
« Reply #4 on: August 26, 2008, 07:04:46 pm »
This log file is quite large.

There seems to be several errors with these files.

Here is an example...

2008/08/25 11:25:10 INFO> Manager.pm:532 EBox::ServiceModule::Manager::__ANON__ - File /etc/bind/db.VERTEXCG.COM does not exist. So we wont compute its digest.

2008/08/25 11:25:10 ERROR> Sudo.pm:185 EBox::Sudo::_rootError - root command test -e /etc/bind/db.VERTEXCG.COM failed.
Error output:
Command output: .
Exit value: 1

2008/08/25 11:28:14 INFO> Module.pm:827 EBox::Module::writeConfFile - Skipping modification of /etc/bind/db.VERTEXCG.COM
2008/08/25 11:28:14 INFO> Module.pm:827 EBox::Module::writeConfFile - Skipping modification of /etc/bind/db.1.16.172
2008/08/25 11:28:14 INFO> Module.pm:827 EBox::Module::writeConfFile - Skipping modification of /etc/bind/db.100.16.172



These types of errors occur for all files mentioned above.

I should also mention that this install was using the iso provided on this site (package with ebox and ubuntu).
« Last Edit: August 27, 2008, 05:54:21 am by jdvachal »

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: DNS Problems
« Reply #5 on: August 27, 2008, 05:29:02 pm »
In order to fix this issue, you may disable and save changes. And enable the module again to fix this issue.

If you are still experiencing problems, don't hesitate to ask again.
My secret is my silence...

jdvachal

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: DNS Problems
« Reply #6 on: August 27, 2008, 06:08:32 pm »
I disabled and enabled the DNS module.  I deleted the xbox.log file before I enabled the module.

Once I enabled I still have the same issues.

The log file contains the same errors as reported before.

Manager.pm:532 EBox::ServiceModule::Manager::__ANON__ - File /etc/bind/db.VERTEXCG.COM does not exist. So we wont compute its digest.

Sudo.pm:185 EBox::Sudo::_rootError - root command test -e /etc/bind/db.VERTEXCG.COM failed.
Error output:
Command output: .
Exit value: 1

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: DNS Problems
« Reply #7 on: August 29, 2008, 10:18:38 am »
Mmm, did you get more "skipping modification..." after enabling and disabling the module? Now you should have your domains properly written...

jdvachal

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: DNS Problems
« Reply #8 on: August 29, 2008, 03:36:43 pm »
Yes, I got the same skipping moddification of /etc/bin/db.*


javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: DNS Problems
« Reply #9 on: August 29, 2008, 03:47:20 pm »
Really weird.

Please, do the following again. Go to module status, disable dns, and enable it again. Click on save changes. Now you should be told that the dns module needs to overwrite some files - the ones which are skipped.

Please let me know if you are prompted with those files or not when saving changes...

jdvachal

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: DNS Problems
« Reply #10 on: September 01, 2008, 09:14:11 pm »
Javi,

I did as you requested again and still no change.  I see the save changes dialog after I click save changes.  This dialog says that there are changes to modules that need to be saved.  I never see a dialog about overwritting the files (the db.* files im assuming).

Is there possibly a permissions issue?  Like I said before I used the iso for ebox with ubuntu to create a new VM.  DHCP works which leaves me even more confused.


javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: DNS Problems
« Reply #11 on: September 02, 2008, 11:39:11 am »
Hi again,

Quote
I did as you requested again and still no change.  I see the save changes dialog after I click save changes.  This dialog says that there are changes to modules that need to be saved.  I never see a dialog about overwritting the files (the db.* files im assuming).

Is there possibly a permissions issue?  Like I said before I used the iso for ebox with ubuntu to create a new VM.  DHCP works which leaves me even more confused.

This is really weird. We must be missing something. Would it possible to update that installation to use the latest packages available for 0.12? And after that, if it's not working yet, could you send me a backup of your eBox configuration in order to try reproduce the bug in my machine?

Thanks!

jdvachal

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: DNS Problems
« Reply #12 on: September 02, 2008, 05:20:05 pm »
I would be more than happy to try the .12 packages.  If we are still at a loss we could try some debug statements in the source, or I can zip up my vm and grant you ftp access to it.