Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a web server hosting web pages on my DMZ. My Domain registrar is doing the DNS stuff for the external stuff and I am controlling the DNS stuff locally(caching). My issue that I am having is that my external users can see my web pages perfectly fine but my internal users cannot see my web pages from the inside. I can get to web server via ssh and am not having an issue actually getting to it but rather only Apache and I suspect that it has to due with DNS. My DMZ is on a 192.168.2.0 network. What kind of entry would I need to add my web server. Security is an issue so keep that in mind. Here is my /etc/named.conf
$TTL 1D
;
; Anythime you make a change to the domain , change the "serial setting below. Here is the format "YYYYMMDDI"
;
test.com. IN SOA server.test.com. admin.test.com. (
server.test.com. IN A 192.168.3.1
nameserver IN CNAME server2.test.com.
server3.test.com. IN A 192.168.3.5
client1.test.com. IN A 192.168.3.22
client2.test.com. IN A 192.168.3.30
You essentially have a split DNS, with the slight modification that an external NS controls public name lookups, but your internal NS controls LAN lookups.
You need to create LAN IP entries for each host you want accessible by name. This would be a series of A records, and the equivalent PTR records.
Then, all your clients should be using your internal caching DNS server; give out the address either via DHCP, or manually configure internal clients.
Add your test.com as a zone in your named.conf file, or it won't be seen.
Your serial number looks very old. Updated it with today's date plus and a 2 digit number (eg. 2008081101). Always update the number when you change the zone files.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
I guess, but really localhost_resolver view is just supposed to be for your loopback adaptor (127.0.0.1). You should use views called "internal" and "external" (or something similar) to specify other networks to match.
By the way, why on Earth are you using /27 netmasks? There's no need to conserve internal IPs, why not just use the whole /24?
PS You would put the same code for test.com zone in both localhost_resolver and internal. In external you would deny query and recursion, or just not define an external view at all (since you're not hosting the external records).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.