troubleshooting Question

Networking, DNS behind router with bind9

Avatar of Roba122
Roba122 asked on
Linux NetworkingDNS
14 Comments1 Solution593 ViewsLast Modified:
I'm just having the hardest time with something I consider should be easy.  I have the following

Static IP
Router w/portforwarding to my server and port 53 tcp/udp for dns to the same machine
Server is behind the router

I want to setup dns on the server so that I can have my domain.com go to the server.

I've set up a zone for domain.com and reverse dns.   I think Im close but just missing something,

Thanks!

I've set up reverse dns

Doesnt seem to be working.

And I've set up reverese dns for the public facing IP (my server is on 192.168.1.4, locally)

But that doesnt seem to be working, I just thought
My zone file for my domain 
 
$TTL 3D
 
 
@ IN    SOA     ns1.example.com. admin.example.com. (
   2007062001
   28800
   3600
   604800
   38400
);
 
 
example.com.      IN      NS              ns1.example.com.
example.com.      IN      MX     10       mta.example.com.
 
 
www              IN      A       PU.BL.IC.IP
mta              IN      A       PU.BL.IC.IP
ns1              IN      A       PU.BL.IC.IP
example.com.     IN      NS      ns2.example.com.
 
My reverese dns zone file
 
$TTL 3D
 
@       IN      SOA     ns1.example.com. admin.example.com. (
                        2007031002
                        28800
                        604800
                        604800
                        86400 )
                    IN    NS     ns1.example.com.
IP                   IN    PTR    example.com
 
#where IP is the last digit of my public ip
 
 
my named.conf file has the following
 
zone "example.com" {
        type master;
        file "/etc/bind/zones/db.example.com";
        };
 
# PU.BL.IC.IP = public ip address
zone "IC.BL.PU.in-addr.arpa" {
     type master;
     file "/etc/bind/zones/rev.IC.BL.PU.in-addr.arpa";
};
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 14 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros