Re: Can BIND resolve "nodomain" machine names? "myserver", not "myserver.mydomain"...?
On Wed, 03 Nov 2004 20:33:36 +, Joao Clemente <[EMAIL PROTECTED]> wrote: > Thanks for the reply Andrea, but no... nowadays /etc/host.conf is not > even relevant as it's (old) behaviour is now (since libc6?) defined in > /etc/nsswitch.conf > It would configure the way the dns client lookups up names, looking at > local files and then to name server... But it's a "client behaviour", it > does not affect BIND AFAIK... > Oh well, seems you're right, something new to dig in. This was originally a Debian Slink, but i think i'm running Sid from day one... =) Anyway yes, it's a local thing, if you want to let resolve the addresses above in the thread with BIND, FWIK, you need to specify a local zone. Andrea -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Can BIND resolve "nodomain" machine names? "myserver", not "myserver.mydomain"...?
Thanks for the reply Andrea, but no... nowadays /etc/host.conf is not even relevant as it's (old) behaviour is now (since libc6?) defined in /etc/nsswitch.conf It would configure the way the dns client lookups up names, looking at local files and then to name server... But it's a "client behaviour", it does not affect BIND AFAIK... Andrea Vettorello wrote: IIRC you need to add a line "order hosts,bind" on your /etc/host.conf... Andrea -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Can BIND resolve "nodomain" machine names? "myserver", not "myserver.mydomain"...?
On Wed, 03 Nov 2004 16:58:38 +, Joao Clemente <[EMAIL PROTECTED]> wrote: > I was using dnsmasq in my networks, with wich I was happy till my ISP > changed nameservers and I was left without a network of 10 machines > complaining they had no Internet... > > Well, I decided to setup BIND on those machines, but I am missing a > feature of dnsmasq that I can't find a way to setup bind with: > dnsmasq reads /etc/hosts and is able to respond to queries to whatever > is in that file... we can setup /etc/hosts with: > 192.168.1.1 myserver > 192.168.1.2 proxy > 192.168.1.3 printServer > > and query from the network for these names... > Does anyone knows how to setup bind to do this? It ony seems to be able > to read configs for domains/zones, and I've tried > zone "" > with no sucess... > > I know how to work around this: I setup my local network names in > "mydomain" zone and setup all my clients to "search mydomain"... but > before doing all these changes I would like to be sure there is no way > to do what dnsmasq did... > > Anyone knows? > IIRC you need to add a line "order hosts,bind" on your /etc/host.conf... Andrea -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Can BIND resolve "nodomain" machine names? "myserver", not "myserver.mydomain"...?
I was using dnsmasq in my networks, with wich I was happy till my ISP changed nameservers and I was left without a network of 10 machines complaining they had no Internet... Well, I decided to setup BIND on those machines, but I am missing a feature of dnsmasq that I can't find a way to setup bind with: dnsmasq reads /etc/hosts and is able to respond to queries to whatever is in that file... we can setup /etc/hosts with: 192.168.1.1 myserver 192.168.1.2 proxy 192.168.1.3 printServer and query from the network for these names... Does anyone knows how to setup bind to do this? It ony seems to be able to read configs for domains/zones, and I've tried zone "" with no sucess... I know how to work around this: I setup my local network names in "mydomain" zone and setup all my clients to "search mydomain"... but before doing all these changes I would like to be sure there is no way to do what dnsmasq did... Anyone knows? Thanks Joao Clemente -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]