I have set up a new FreeBSD DNS server as the DNS server for my private network. This new DNS server has an IP of 192.168.2.2. My web server has the IP address 192.168.2.4. From a computer on the network with the IP address 192.168.2.23 I cannot connect to my web server with a browser any more.
Everything was working with my old DNS server but something with the setting on the new BIND9 server must be wrong and I cannot figure out what. I can ping my web server from the computer with the IP address 192.168.2.23.
If I use
All looks fine. When I open a web browser I get a message that it cannot open the page http://www.collins.net because it can't connect to the server www.collins.net. If I type the IP addess of the web server I can connect to the web server. It has to be a problem with how I have BIND9 configured.
Can someone please help me figure out what could be wrong with how I have BIND configured?
Everything was working with my old DNS server but something with the setting on the new BIND9 server must be wrong and I cannot figure out what. I can ping my web server from the computer with the IP address 192.168.2.23.
Code:
PING 192.168.2.4 (192.168.2.4): 56 data bytes
64 bytes from 192.168.2.4: icmp_seq=0 ttl=64 time=1.477 ms
64 bytes from 192.168.2.4: icmp_seq=1 ttl=64 time=1.679 ms
64 bytes from 192.168.2.4: icmp_seq=2 ttl=64 time=1.512 ms
64 bytes from 192.168.2.4: icmp_seq=3 ttl=64 time=1.063 ms
^C
--- 192.168.2.4 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
If I use
dig [url=http://www.collins.net]www.collins.net[/url]
all the correct information for the web server are correct. below are the dig results.
Code:
; <<>> DiG 9.8.3-P1 <<>> www.collins.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56870
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;www.collins.net. IN A
;; ANSWER SECTION:
www.collins.net. 3600 IN A 192.168.2.4
;; AUTHORITY SECTION:
collins.net. 3600 IN NS ns2.collins.net.
collins.net. 3600 IN NS ns3.collins.net.
;; ADDITIONAL SECTION:
ns2.collins.net. 3600 IN A 192.168.2.2
ns3.collins.net. 3600 IN A 192.168.2.3
;; Query time: 5 msec
;; SERVER: 192.168.2.2#53(192.168.2.2)
;; WHEN: Sat Oct 13 20:12:20 2012
;; MSG SIZE rcvd: 117
All looks fine. When I open a web browser I get a message that it cannot open the page http://www.collins.net because it can't connect to the server www.collins.net. If I type the IP addess of the web server I can connect to the web server. It has to be a problem with how I have BIND9 configured.
Can someone please help me figure out what could be wrong with how I have BIND configured?