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 go to the server.

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


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, locally)

But that doesnt seem to be working, I just thought
My zone file for my domain 
@ IN    SOA (
);      IN      NS          IN      MX     10
www              IN      A       PU.BL.IC.IP
mta              IN      A       PU.BL.IC.IP
ns1              IN      A       PU.BL.IC.IP     IN      NS
My reverese dns zone file
@       IN      SOA (
                        86400 )
                    IN    NS
IP                   IN    PTR
#where IP is the last digit of my public ip
my named.conf file has the following
zone "" {
        type master;
        file "/etc/bind/zones/";
# PU.BL.IC.IP = public ip address
zone "" {
     type master;
     file "/etc/bind/zones/";

Open in new window

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.
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 >>


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