troubleshooting Question

Networking, DNS behind router with bind9

Avatar of Roba122
Roba122 asked on
DNSLinux Networking
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";
};

Open in new window

ASKER CERTIFIED SOLUTION
Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 14 Comments.
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>

Mike

Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 14 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004