Author Topic: BIND DNS hosts not resolving  (Read 1804 times)

tommie

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
BIND DNS hosts not resolving
« on: December 24, 2009, 11:21:01 am »
Hello All,

Before I start digging into the conf files of my new ebox install, I wonder why hostnames only resolve when fully entered....

eg:     dc.domain.local     does resolve but
          dc                         does not.....

Here is my zone file:
$TTL 3D
@       IN      SOA     ns.searchco.local.      admin.example.com. (
                        2009122411      ;serial number
                        8H              ;refresh
                        2H              ;retry
                        4W              ;expiration
                        1D )            ;
;
                NS      ns.searchco.local.      ;nameserver
;
ns              A       127.0.0.1
suiker          A       192.168.0.33
helpdesk                CNAME   suiker
intranet                CNAME   suiker

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: BIND DNS hosts not resolving
« Reply #1 on: January 06, 2010, 11:17:20 pm »
Hi Tommie,

You have to set the search parameter in your /etc/resolv.conf to domain.local. Within eBox, that parameter is set under Network->DNS. If you are using eBox as DHCP server, you may set that parameter in DHCP -> Common Options -> Search Domain to let DHCP clients set that parameter automatically for you.

Hope this helps you.

Best regards
My secret is my silence...

tommie

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
Re: BIND DNS hosts not resolving
« Reply #2 on: January 07, 2010, 12:08:16 pm »
Hey,

Thanks for the heads up! ;)

It does not work yet, but I will give this a try. Weird thing is that it does resolv through an nslookup, but does not load. So I guess it is the host that thinks he is different...

Anyhow,
Thanks,
Tommie