Networking Forums

Networking Forums > Computer Networking > Linux Networking > BIND question, resolving local IPs

Reply
Thread Tools Display Modes

BIND question, resolving local IPs

 
 
General Schvantzkoph
Guest
Posts: n/a

 
      11-05-2006, 11:33 PM
I have a DNS server on an FC4 machine. It works fine for resolving
internet URLs however it doesn't resolve the machine names on my LAN. I've
been handling this in a brute force way by putting all of my local IPs in
the /etc/hosts file on each system. That works fine for my Linux systems
but occasionally I have to boot one of my boxes into Windows and I don't
know where the Windows equiv of /etc/hosts is. Rather then find out I'd
like to do it the right way and have my DNS server handle it.

Is there a way to get BIND to read the local /etc/hosts file or failing
that is there an equivalent file that BIND does read? All I want to do is
get BIND to resolve the names of my local boxes in the same way as it
handles URLs.



 
Reply With Quote
 
 
 
 
Baho Utot
Guest
Posts: n/a

 
      11-05-2006, 11:56 PM
On Sun, 05 Nov 2006 19:33:47 -0500, General Schvantzkoph wrote:

>
>
> I have a DNS server on an FC4 machine. It works fine for resolving
> internet URLs however it doesn't resolve the machine names on my LAN. I've
> been handling this in a brute force way by putting all of my local IPs in
> the /etc/hosts file on each system. That works fine for my Linux systems
> but occasionally I have to boot one of my boxes into Windows and I don't
> know where the Windows equiv of /etc/hosts is. Rather then find out I'd
> like to do it the right way and have my DNS server handle it.
>
> Is there a way to get BIND to read the local /etc/hosts file or failing
> that is there an equivalent file that BIND does read? All I want to do is
> get BIND to resolve the names of my local boxes in the same way as it
> handles URLs.


You will need to setup forward and reverse zones for your local network.
You should be able to get the info off tldp.org. look for the DNS howto.
Bind will not read /etc/hosts file that is what the resolver does.

--
Dancin' in the ruins tonight
Tayo'y Mga Pinoy


 
Reply With Quote
 
The Natural Philosopher
Guest
Posts: n/a

 
      11-06-2006, 07:56 AM
General Schvantzkoph wrote:
> I have a DNS server on an FC4 machine. It works fine for resolving
> internet URLs however it doesn't resolve the machine names on my LAN. I've
> been handling this in a brute force way by putting all of my local IPs in
> the /etc/hosts file on each system. That works fine for my Linux systems
> but occasionally I have to boot one of my boxes into Windows and I don't
> know where the Windows equiv of /etc/hosts is. Rather then find out I'd
> like to do it the right way and have my DNS server handle it.
>
> Is there a way to get BIND to read the local /etc/hosts file or failing
> that is there an equivalent file that BIND does read? All I want to do is
> get BIND to resolve the names of my local boxes in the same way as it
> handles URLs.
>
>
>

Yes. There is.
man bind will get you to it.

You need to set up a 'oacl' zone..forward and reverse files will be needed.


However you have to make sure that local machines use this one as their
DNS server.
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      11-06-2006, 10:25 AM
[Followup-to comp.os.linux.networking]

Hello,

General Schvantzkoph a écrit :
>
> Is there a way to get BIND to read the local /etc/hosts file or failing
> that is there an equivalent file that BIND does read?


No. But dnsmasq does it, if all you need is a DNS forwarder (not a cache
or an authoritative server).

> All I want to do is
> get BIND to resolve the names of my local boxes in the same way as it
> handles URLs.


Huh ? BIND does not handle URLs.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
strange behavior when the client bind its UDP socket to a local address Christophe Lohr Linux Networking 14 01-23-2009 01:03 PM
DNS Bind don't resolve local names keesS Linux Networking 1 08-19-2005 11:15 PM
BIND DNS question Kashmir Linux Networking 1 06-28-2005 06:40 PM
BIND caching question: resolve vs forwarder Al. C Linux Networking 11 12-08-2004 01:44 AM
Resolving local hostname on multihomed NIC Christopher Hill Windows Networking 0 11-28-2003 09:33 AM



1 2 3 4 5 6 7 8 9 10 11