Thread: Dynamic Dns

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2015
    Posts
    6
    Rep Power
    0

    Dynamic Dns


    Hello guys. I am not able to solve this Dynamic DNS problem, please help.
    Below are my dhcpd6.conf and named.conf file.

    Code:
    dhcpd6.conf:
    
    ddns-updates on;           # default but good practice
    ddns-update-style interim; # only supported active option
    
    option dhcp6.name-servers 2606:4900:1::5;
    option dhcp6.domain-search "hamilton.net";
    
    option dhcp6.preference 255;
    
    option dhcp6.rapid-commit;
    
    # The subnet where the server is attached
    #  (i.e., the server has an address in this subnet)
    subnet6 2606:4900:1::/64 {
    # Place holder for NIC card
    }
    
    # A second subnet behind a relay agent
    subnet6 2606:4900:0:13::/64 {
            range6 2606:4900:0:13:96:31:182:11 2606:4900:0:13:96:31:182:20;
    
            option dhcp6.name-servers 2606:4900:1::5;
            option dhcp6.domain-search "x.net";
            allow unknown-clients;
            #allow client-updates;
            ddns-domainname "x.net.";
            ddns-rev-domainname "ip6.arpa.";
    }
    zone x.net.{
         primary dns6.x.net;
    
    }
    named.conf
    
    zone "x.net" {
      type master;
      file "/usr/local/etc/namedb/master/x.net.db";
    
            allow-update {2606:4900:1::5;};
    
    };
    
    zone "0.0.0.0.1.0.0.0.0.0.9.4.6.0.6.2.ip6.arpa" {
      type master;
      file "/usr/local/etc/namedb/master/0.0.0.0.1.0.0.0.0.0.9.4.6.0.6.2.ip6.arpa.db";
    
            allow-update {2606:4900:1::5;};
    };
    
    These are my db files
    Forward
    Code:
    $ORIGIN
    $TTL 3600       ; 1 hour
    x.net            IN SOA  x.net. hostmaster.x.net. (
                                    2015071472 ; serial
                                    10800      ; refresh (3 hours)
                                    3600       ; retry (1 hour)
                                    604800     ; expire (1 week)
                                    3600       ; minimum (1 hour)
                                    )
                            NS      dns6.x.net.
                   
                            AAAA    2606:4900:1::5
    $ORIGIN x.net.
    dns6                    AAAA    2606:4900:1::5
    zzzz                    AAAA    2606:4900:1::5
    
    
    Reverse
    
    Code:
    ;$ORIGIN .
    $TTL 3600       ; 1Hours
    0.0.0.0.1.0.0.0.0.0.9.4.6.0.6.2.ip6.arpa. IN SOA x.net. hostmaster.x.net. (
                            2015072901       ; serial
                            10800      ; refresh (3 hours)
                            3600   ; retry (1 hour)
                            604800    ; expire (1 week)
                            3600      ; minimum (1 hour)
    )
                            IN      NS      dns6.x.net.
    ;$ORIGIN
    5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.0.0.0.9.4.6.0.6.2.ip6.arpa. 3600 IN PTR zzzz.x.net.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2015
    Posts
    6
    Rep Power
    0
    Getting these errors:

    Code:
    client 2606:4900:0:13:9013:eac5:b406:74a2#51575: update 'x.net/IN' denied
    client 2606:4900:0:13:9013:eac5:b406:74a2#60822: update 'x.net/IN' denied
    dhcpd: Unable to add forward map from htcuser to 2606:4900:0:13:96:31:182:15: REFUSED
    client 2606:4900:0:13:9013:eac5:b406:74a2#59640: update 'x.net/IN' denied
    client 2606:4900:0:13:9013:eac5:b406:74a2#49991: update 'x.net/IN' denied


    dns_master_load: /usr/local/etc/namedb/master/x.net.db:1: unexpected end of line
    Aug 5 09:26:41 freebsdipv6 named[17539]: dns_master_load: /usr/local/etc/namedb/master/x.net.db:1: unexpected end of input
    Aug 5 09:26:41 freebsdipv6 named[17539]: zone x.net/IN: loading from master file /usr/local/etc/namedb/master/x.net.db failed: unexpected end of input
    Aug 5 09:26:41 freebsdipv6 named[17539]: zone x.net/IN: not loaded due to errors.
  4. #3
  5. Headless Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,977
    Rep Power
    9647
    Code:
    client 2606:4900:0:13:9013:eac5:b406:74a2#51575: update 'x.net/IN' denied
    client 2606:4900:0:13:9013:eac5:b406:74a2#60822: update 'x.net/IN' denied
    dhcpd: Unable to add forward map from htcuser to 2606:4900:0:13:96:31:182:15: REFUSED
    client 2606:4900:0:13:9013:eac5:b406:74a2#59640: update 'x.net/IN' denied
    client 2606:4900:0:13:9013:eac5:b406:74a2#49991: update 'x.net/IN' denied
    Looks like you aren't allowing your DHCP server to issue updates. Check your allow-update.

    Code:
    dns_master_load: /usr/local/etc/namedb/master/x.net.db:1: unexpected end of line
    Aug  5 09:26:41 freebsdipv6 named[17539]: dns_master_load: /usr/local/etc/namedb/master/x.net.db:1: unexpected end of input
    Aug  5 09:26:41 freebsdipv6 named[17539]: zone x.net/IN: loading from master file /usr/local/etc/namedb/master/x.net.db failed: unexpected end of input
    Aug  5 09:26:41 freebsdipv6 named[17539]: zone x.net/IN: not loaded due to errors.
    Syntax error. Did you forget a semicolon?
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2015
    Posts
    6
    Rep Power
    0
    I got these errors corrected but do i have to add users in the forward and reverse map manually so that they get registered. Because when i do it from another pc to get ipv6 address i get error that
    dhcpd: Unable to add reverse map from 0.2.0.0.2.8.1.0.1.3.0.0.6.9.0.0.3.1.0.0.0.0.0.0.0.0.9.4.6.0.6.2.ip6.arpa. to HTCVALLABH.ccs.local: REFUSED

    what to do?
  8. #5
  9. Headless Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,977
    Rep Power
    9647
    So you only got the second set of errors fixed, then?

    "REFUSED" means that the DNS server is not allowing updates from the DHCP server. You need to allow it to do so with allow-update.
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2015
    Posts
    6
    Rep Power
    0
    i did allow-update 2606:4900:0:13::/64 then too its not working
    how to do it for entire subnet ?
  12. #7
  13. Headless Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,977
    Rep Power
    9647
    What's your named.conf now? And you remembered to restart bind?
  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2015
    Posts
    6
    Rep Power
    0
    named.conf

    zone "x.net" {
    type master;
    file "/usr/local/etc/namedb/master/x.net.db";

    allow-update {2606:4900:0:13::/64; 2606:4900:1::5/64; };

    };

    zone "0.0.0.0.1.0.0.0.0.0.9.4.6.0.6.2.ip6.arpa" {
    type master;
    file "/usr/local/etc/namedb/master/0.0.0.0.1.0.0.0.0.0.9.4.6.0.6.2.ip6.arpa.db";

    allow-update {2606:4900:0:13::/64; 2606:4900:1::5/64;};
    };
  16. #9
  17. Headless Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,977
    Rep Power
    9647
    And bind is still saying
    Code:
    client 2606:4900:0:13:9013:eac5:b406:74a2#(port): update 'x.net/IN' denied
    with no change?
  18. #10
  19. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2015
    Posts
    6
    Rep Power
    0
    No i mean to say look at forward db file the user zzzz is getting registerd via dynamic dns but now its a different user yyyy which is not there in the forward db file so because of that i am getting error unable to add reverse map for that user.so my question do i have to enter all the users in that db file which is impractical but if not what is the solution?
  20. #11
  21. Headless Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,977
    Rep Power
    9647
    Okay, so when you said "it's not working", you meant that there was a different problem now than the one before?

    Restart bind and clear all the forwards currently in place. Then renew the DHCP license on zzzz. Does it update in bind? If not, what does the error log show? Repeat for yyyy.

IMN logo majestic logo threadwatch logo seochat tools logo