James Pifer wrote: > Steve, > Sorry, a couple more questions. I've been trying to find complete > examples of the named.conf on the net and haven't found any. The man > pages don't seem to go into much detail. Not sure how to modify mine. > > Below is my current named.conf. Does the example you sent go above, > below, or replace my current stuff?
Replace. Or I guess you could surround what you have within a "view" statement. But you would still need to create your other views. > The view for corporate, can I have it forward any request for pca.com > to the corporate DNS server? Yes. per the man pages for named.conf... Forwarding can also be configured on a per-zone basis, allowing for the global forwarding options to be overridden in a variety of ways. You can set particular zones to use different forwarders, or have different forward only/first behavior, or to not forward at all. See THE ZONE STATEMENT section for more information. > Also, I have a domain obrien-pifer.com. Would I set up another .hosts > file for the internal resolution and specify that on the file line? I > can't really create another zone with the same name, right? Yes you can. With bind "views" you can load two zones with the same domain name (as I showed in my example). The key is the zone files return different IP addresses for the same hostname. i.e. /var/named/ext/db.mydomain.com www IN A 204.203.202.201 /var/named/int/db.mydomain.com www IN A 192.168.1.5 One zone is loaded from the external view, the other from the internal view. The ACL's defined within the view dictate which answer is returned to the client. > > So, internally www.obrien-pifer.com would resolve to 192.168.1.5 while > everywhere else it would resolve to the routable internet address. Thats correct. FWIW: I have some good named.conf and zone examples if your interested, but we warned that my examples follow the Bind book format structure, not some lame web interface format that creates a useless named.conf file. Drop me a note if your interested. Steve Cowles -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
