Bind 9 Question

Charles Curley charlescurley at charlescurley.com
Fri Nov 30 21:16:25 MST 2007


I have a domain, charlescurley.com, with its name, etc. served by
domain name servers out there on the net somewhere. I also have my
local area network, with machines like foo, bar, and baz. The network
is NATted and not visible outside of the firewall.

I currently use the TLD "localdomain" for the LAN, so resolv.conf
looks like:

root at dragon:/etc# cat resolv.conf 
search localdomain
nameserver 192.168.1.3
nameserver 192.168.1.4

I set up an experimental server on a test machine which has the domain
"charlescurley.com" and is authoritative for it. Since it is on the
LAN, only machines on the LAN can see it or use it. I have local
machines working correctly, e.g. foo.charlescurley.com resolves
correctly. Its resolv.conf looks like:

root at phoenix:/var/named/etc/sites# cat /etc/resolv.conf 
search charlescurley.com
nameserver 192.168.1.47

The local machines are on 192.168.1.0/24, but the server for
charlescurley.com isn't.

The question is, how do I get the local name server to correctly serve
up "charlescurley.com" (and "www.charlescurley.com", an alias for
charlescurley.com) to the local network.

I already know I can stick it in /etc/hosts, but that has all the
problems that using /etc/hosts normally has. I'd like to do it with
bind.

Thanks

-- 

Charles Curley                  /"\    ASCII Ribbon Campaign
Looking for fine software       \ /    Respect for open standards
and/or writing?                  X     No HTML/RTF in email
http://www.charlescurley.com    / \    No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://plug.org/pipermail/plug/attachments/20071130/c40d1f36/attachment.bin 


More information about the PLUG mailing list