powerdns behind nat . Help needed

Discussion in 'Installation/Configuration' started by kavehs86, Jan 2, 2014.

  1. kavehs86

    kavehs86 New Member

    hello howtoforge forums

    i installed and configured powerdns with mysql backend using the howtoforge tutorial on centos and everything works gr8

    but when i change the network to nat only it stops notifying
    my private ip address is 192.168.53.102
    and on the main Xen server i forward port 53 and 80 and 22 to 192.168.53.102
    port 80 and 22 is working well and i can login to ssh using the same nat config

    when i use ping.eu website to check the 53 port on my external ip address it shows Open

    but this is the result for my dns report on powerdns master domain : http://intodns.com/dnsfactory.ir

    /etc/pdns/pdns.conf
    #################################
    # local-address Local IP addresses to which we bind
    #
    local-address=192.168.53.102,X.X.X.X # external ip address

    SELinux = disabled
    Firewall = set to allow all traffic
    Nat for port 53 80 22 works ok
    Nat rule : dnat pre routing If protocol is TCP and destination is X.X.X.X(external ip) and destination port is 53 ip for dnat : 192.168.53.102
    and also source nat : post routing to give 192.168.53.102 internet access

    any advice ?
     

Share This Page