Re: Internal clients' queries for myhostname. get sent to forwarders. Why?

2014-03-12 Thread Tony Finch
Lawrence K. Chen, P.Eng. lkc...@ksu.edu wrote: If you have FQDN for machines, the problem might be that the domain isn't set in resolv.conf? The machines are configured with a bare hostname. If there isn't a search or domain directive in /etc/resolv.conf and there isn't an entry for the

Re: Internal clients' queries for myhostname. get sent to forwarders. Why?

2014-03-12 Thread Lawrence K. Chen, P.Eng.
On 03/12/14 06:50, Tony Finch wrote: Lawrence K. Chen, P.Eng. lkc...@ksu.edu wrote: If you have FQDN for machines, the problem might be that the domain isn't set in resolv.conf? The machines are configured with a bare hostname. If there isn't a search or domain directive in

Re: Internal clients' queries for myhostname. get sent to forwarders. Why?

2014-03-12 Thread Mark Andrews
The search algorithms in libresolve/libbind are a compromise. If I had my way, back when libresolv was updated for RFC 1535, support for partially qualified domain names would have died. ndots was the compromise. Searches would have only continued on NXDOMAIN and unqualified names would not

Re: Internal clients' queries for myhostname. get sent to forwarders. Why?

2014-03-11 Thread Tony Finch
Andreas Ntaflos d...@pseudoterminal.org wrote: Using Bind 9 on Ubuntu 12.04 for internal DNS (master for zones dc01.example.at., 7.1.10.in-addr.arpa., ...) with forwarders (ISP's nameservers) for everything outside of internal zones. The Problem: Clients, when running hostname -f or hostname

Re: Internal clients' queries for myhostname. get sent to forwarders. Why?

2014-03-11 Thread Lawrence K. Chen, P.Eng.
If you have FQDN for machines, the problem might be that the domain isn't set in resolv.conf? from resolv.conf(5): domain Local domain name. Most queries for names within this domain can use short names relative to the local domain. If no domain entry is present,

Internal clients' queries for myhostname. get sent to forwarders. Why?

2014-03-10 Thread Andreas Ntaflos
Hi list, I hope I succeeded in articulating the problem we are facing and I apologize for the length of this post. Short version: Using Bind 9 on Ubuntu 12.04 for internal DNS (master for zones dc01.example.at., 7.1.10.in-addr.arpa., ...) with forwarders (ISP's nameservers) for everything

Re: Internal clients' queries for myhostname. get sent to forwarders. Why?

2014-03-10 Thread Kevin Darcy
Options: 1) Change nameservice-switch order (e.g. /etc/nsswitch.conf) on your hosts to prefer another source of name resolution (e.g. /etc/hosts) which can resolve the shortname. Thus DNS is never used for these lookups 2) Simply :-) change your DNS architecture fundamentally, from one which

Re: Internal clients' queries for myhostname. get sent to forwarders. Why?

2014-03-10 Thread Andreas Ntaflos
On 2014-03-10 22:23, Kevin Darcy wrote: Options: First, thanks a lot for the reply! So it seems what I described is indeed the expected behaviour for the type of DNS we operate? 1) Change nameservice-switch order (e.g. /etc/nsswitch.conf) on your hosts to prefer another source of name

Re: Internal clients' queries for myhostname. get sent to forwarders. Why?

2014-03-10 Thread Kevin Darcy
On 3/10/2014 6:05 PM, Andreas Ntaflos wrote: On 2014-03-10 22:23, Kevin Darcy wrote: Options: First, thanks a lot for the reply! So it seems what I described is indeed the expected behaviour for the type of DNS we operate? 1) Change nameservice-switch order (e.g. /etc/nsswitch.conf) on

Re: Internal clients' queries for myhostname. get sent to forwarders. Why?

2014-03-10 Thread Dave Warren
On 2014-03-10 15:05, Andreas Ntaflos wrote: On 2014-03-10 22:23, Kevin Darcy wrote: Options: First, thanks a lot for the reply! So it seems what I described is indeed the expected behaviour for the type of DNS we operate? To put it another way, why wouldn't it? How would your local BIND