stuck up record in DNS

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

stuck up record in DNS

ivan nepryakhin

hi guys!

I'm encountered with a strange issue:

 - host with  the name host12-c12-1 one time requested and  get the  address 10.10.10.12
 - dhcpd correct doing records ( A and PTR ) in  DNS
 - BUT after host shutdown and in the file dhcpd.leases line "binding state" become in the "free" - records A and PTR staying stuck in the base of DNS.



from https://linux.die.net/man/5/dhcpd.conf#Dynamic%20Dns%20Updates
i thinking  what DHCP- DDNS work in the next scheme:

 - HOST doing request for ip  address
 - DHCP  getting request and try write RR's A and PTR in DNS
 - DHCP give out ip address and do a record in the file dhcpd.leases
 - when time lease expire  DHCP remove RR's A and PTR from DNS

Please give me vector for a searching or suggestion about mistakes.


Thanks!!

P.S unfortunately i can't upgrade my environment



Environment:


isc-dhcp42-server-4.2.6_1
bind-base-9.9.5_8


cuted of the file dhcpd.lease:

lease 10.10.10.12 {
  starts 5 2019/08/09 11:00:47;
  ends 5 2019/08/09 12:00:47;
  tstp 5 2019/08/09 12:00:47;
  cltt 5 2019/08/09 11:00:47;
  binding state free;
  hardware ethernet 18:10:2b:12:db:12;
  uid "\001\010\000'\216G\220";
}

cuted from the file /etc/named/tsc/tsc.zone:

$TTL 1800       ; 30 minutes
host12-c12-1    A    10.10.10.12  
                        TXT     "00ffa9c88e143752544ac44exxxxxxxxxx"
      




cuted of the file dhcpd.conf:

## DDNS related configuration

ddns-update-style interim;
ddns-rev-domainname "in-addr.arpa.";
ddns-domainname "tsc.";
update-static-leases on;

group {

        option routers 10.10.10.1;
        ddns-hostname = host-decl-name;

        update-optimization false;
        update-conflict-detection false;
       

# example host
            host host12 {
                hardware ethernet 18:31:BF:xx:xx:xx;
                fixed-address 10.10.10.111;
        }
       
}


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: stuck up record in DNS

Simon Hobson
ivan nepryakhin <[hidden email]> wrote:

> I'm encountered with a strange issue:

It's normal operation, as I explained in my reply to the same question on 11th, see https://lists.isc.org/pipermail/dhcp-users/2019-August/021730.html

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: stuck up record in DNS

ivan nepryakhin
Thanks Tom !
I didn't can answer earlier

> It's normal operation, as I explained in my reply to the same question on 11th, see https://lists.isc.org/pipermail/dhcp-users/2019-August/021730.html
Sorry for repeat but Unfortunately i didn't get mail  in my work mail and repeat question via private mail.

> Where you have a host entry, the lease does NOT go through the normal lifecycle - and would not normally appear in the leases file.
But host about im write NOT not declare in dhcpd.conf

--------------------START INFO ABOUT ISSUE HOST----------------------------------------------
lease 10.10.10.12 {
  starts 5 2019/08/09 11:00:47;
  ends 5 2019/08/09 12:00:47;
  tstp 5 2019/08/09 12:00:47;
  cltt 5 2019/08/09 11:00:47;
  binding state free;
  hardware ethernet 18:10:2b:12:db:12;
  uid "\001\010\000'\216G\220";
}

cuted from the file /etc/named/tsc/tsc.zone:

$TTL 1800       ; 30 minutes
host12-c12-1    A    10.10.10.12
                        TXT     "00ffa9c88e143752544ac44exxxxxxxxxx"
------------------END INFO ABOUT ISSUE HOST----------------------------------------------------




------------------START CONFIGURATION FILE-----------------------------------------------------
## DDNS related configuration

ddns-update-style interim;
ddns-rev-domainname "in-addr.arpa.";
ddns-domainname "tsc.";
update-static-leases on;

group {

        option routers 10.10.10.1;
        ddns-hostname = host-decl-name;

        update-optimization false;
        update-conflict-detection false;


# example host
            host host12 {
                hardware ethernet 18:31:BF:xx:xx:xx;
                fixed-address 10.10.10.111;
        }

}
------------------END CONFIGURATION FILE-----------------------------------------------------



My question about - Why host can stay in DNS without record in config file and without manual doing it record in DNS.

On Thu, 22 Aug 2019 at 23:00, Simon Hobson <[hidden email]> wrote:
ivan nepryakhin <[hidden email]> wrote:

> I'm encountered with a strange issue:

It's normal operation, as I explained in my reply to the same question on 11th, see https://lists.isc.org/pipermail/dhcp-users/2019-August/021730.html

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users