BIND 9 help

mesican used Ask the Experts™
Here is my problem. My isp is handing out private ips now.So my public ip (a.b.c.d) is now being fowarded to my private ip of My router is connected to the on EO and then to my private network of on E1. I have 3 server on my private network ( -5) and the router is port fowarding dns,web,and mail to the right ip. But i need help setting up my dns server. This is what i have so far. Is this right? This is the zone file for

@      SOA (
                  2003102301      ; Serial
                  8h            ; Refresh
                  2h            ; Retry
                  3600000            ; Expire (1000h)
                  1D)            ; Minimum TTL
      MX 5
      A      a.b.c.d ; My public ip right?

; Addresses
localhost                      A                          ; Loopback
router            A            ; Cisco Router
www            A            ; Web Server
ns1            A            ; Name server
mail            A            ; Mail server

webmail            CNAME            ; Send webmail to Mail
pop3            CNAME            ; Send pop3 to Mail
smtp            CNAME            ; Send smtp to Mail
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
The zone syntax you have looks fine, but it depends on where you will be using this zone. If you will only be using this internally, then it is fine. If you will be using this zone as the zone that people on the Internet use to connect to your servers, then you will need to use REAL IP addresses in the zone. These IP addresses will be the ones that your ISP has given you. This way if someone tries to connect to (as an example) your web server, their browser will do the following:

1. Browser does DNS lookup for = a.b.c.d
2. connect to a.b.c.d
3. ISP NAT's a.b.c.d to
4. You NAT to
5. web server on responds.

If you advertise the zone the was you have it now, what would happen would be:

1. Browser does DNS lookup for =
2. connect
3. Get nowehere, as is not an Internet-routable address.


So are you saying that i should make all the www, mail, dns address to a.b.c.d?

If this is the DNS file that you will be using so that people on the Internet can access your servers, then yes, you will need to change the IP addresses to the a.b.c.d address. When people connect to a.b.c.d the magic of NAT will actually make them connect to your server on its private IP address.

If this DNS file is for INTERNAL only use (ie. just for your LAN), then you would want to leave it at is.

I assume that you have your own domain and have just put in "" for illustrative purposes.


Yea, I dont want people to know the real domain and think its ran by newbs. Thanks for your input, you cleared everything up for me.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial