Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with DNS Config for Internet resolveable domains

Status
Not open for further replies.

fieryhail

IS-IT--Management
Mar 12, 2010
92
I configured BIND DNS in Solaris and now have access to internally hosted resources as well as internet connectivity. However, I think I may still be doing something wrong. One of my biggest issues I'm unsure of is how to configure IP for the zones, whether to use the actual private IP or the routable IP which NATs to the private IP. Sorry for being so confusing. My zone file is below. When I do a dig on test1.com from a host outside the network I get a response as such:

bash-3.1# dig test1.com

; <<>> DiG 8.4 <<>> test1.com
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29726
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0
;; QUERY SECTION:
;; test1.com, type = A, class = IN

;; ANSWER SECTION:
test1.com. 10h25m15s IN A 192.168.20.5

;; AUTHORITY SECTION:
test1.com. 10h25m15s IN NS ns2.test1.com.test1.com.
test1.com. 10h25m15s IN NS ns1.test1.com.test1.com.

;; Total query time: 16 msec
;; FROM: testinghost.theirdomain.net to SERVER: XX.XX.XXX.250
;; WHEN: Tue Jun 1 13:55:42 2010
;; MSG SIZE sent: 30 rcvd: 95

I'm also unsure why there is the "doubling" of the domain name
"ns2.test1.com.test1.com"


The config is as such:

Solaris Box: 192.168.20.5 / 255.255.255.0
This gets NATted out to a routable IP by the PIX

I created a zone file for test1.com (/var/named/db.test1.com)
The domain is purchased from GoDaddy. The nameservers at GoDaddy are registered as ns1.test1.com and ns2.test1.com, they both point to the routable IP I have NATted to the Solaris box.

I have Java Web Server 7 running a site for and I know it is working fine because if I edit a host file on a local system (192.168.20.5 the web content displays as it ought to.

I am unable to access the site from a system connected outside the network (internet)

my zone file for test1.com is as such:

; /var/named/db.test1.com - Created on 06/01/2010
;

; REFRESH INTERVALS, ETC.
;
@ IN SOA test1.com. hostmaster.test1.com. (
2010060101 ; DB Serial Number
10800 ; Secondary Refresh Interval
3600 ; Secondary AXFR Retry Interval
604800 ; Unref Secondary Expiry Interval
86400 ) ; Minimum Time To Live

; NAME SERVICE
;
IN NS ns1.test1.com.
IN NS ns2.test1.com.

; MAIL
;
IN MX 10 test1.com.

; HOSTS WITH THIS DOMAIN NAME
;
test1.com. IN A 192.168.20.5
www IN CNAME test1.com.
ftp IN CNAME test1.com.
mail IN CNAME test1.com.
------------

Did I do something wrong with the zone file? Possibly, but I'm unsure. I hope someone on here can see a problem and help me understand where/what I did wrong. This is my first time trying to configure BIND from scratch. Otherwise, all my other systems can use the Solaris box as their DNS server and other internally hosted resources are working fine as it internet access. Thanks in advance.
 
Nevermind, I found the mistake. I needed to put the routeable IP instead of the private IP in the zone file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top