Send dhcp-users mailing list submissions to
        dhcp-users@lists.isc.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/dhcp-users
or, via email, send a message with subject or body 'help' to
        dhcp-users-requ...@lists.isc.org

You can reach the person managing the list at
        dhcp-users-ow...@lists.isc.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dhcp-users digest..."


Today's Topics:

   1. stuck up record in DNS (Nepryakhin Ivan)
   2. Best practice assigning ip addresses to containers (that can
      have multiple instances) (Marc Roos)
   3. Re: stuck up record in DNS (Simon Hobson)


----------------------------------------------------------------------

Message: 1
Date: Sun, 11 Aug 2019 17:40:47 +0300
From: Nepryakhin Ivan <nepryak...@speechpro.com>
To: dhcp-users@lists.isc.org, bind-us...@lists.isc.org, Kokorin Pavel
        <koko...@speechpro.com>
Subject: stuck up record in DNS
Message-ID: <7c22b8ce-db97-dea8-9aa0-f184c4698...@speechpro.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

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;
 ??????? }

}







-- 
Best?regards,
*Nepryakhin?Ivan?Sergeevich*
system?administrator
STC?Group
                T: +7 (812) 325-88-48, ext 6225
?: +7 (911) 291-81-68
nepryak...@speechpro.com <mailto:nepryak...@speechpro.com>
www.speechpro.com <http://www.speechpro.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/dhcp-users/attachments/20190811/21bd00c4/attachment-0001.html>

------------------------------

Message: 2
Date: Sun, 11 Aug 2019 18:52:02 +0200
From: "Marc Roos" <m.r...@f1-outsourcing.eu>
To: dhcp-users <dhcp-users@lists.isc.org>
Subject: Best practice assigning ip addresses to containers (that can
        have multiple instances)
Message-ID: <"H00000710014b9b4.1565542322.sx.f1-outsourcing.eu*"@MHS>
Content-Type: text/plain;       charset="US-ASCII"





For tls communication I need to have correct task names. I was thinking 
of using the dhcp-client-identifier to have tasks request a pre reserved 
ip range, from which they will receive an ip address and dns has already 
been setup for these addresses.

Currently I have just a shared-network configured and a group with some 
host entries that give a fixed-addresses based on a hardware ethernet.

What would be the easiest way to realize that multiple instances of the 
ldap server can be launched having all the same hostname ldap.local they 
would get an ip address from the set 192.168.1.1, 
192.168.1.2,192.168.1.3,192.168.1.4 based on the client id they are 
sending via dhcp. 

I saw the dhcpd.conf man page, do I need to do this with 
classes/subclasses or is there some other simple option?






------------------------------

Message: 3
Date: Sun, 11 Aug 2019 21:10:45 +0100
From: Simon Hobson <dh...@thehobsons.co.uk>
To: Users of ISC DHCP <dhcp-users@lists.isc.org>
Cc: bind-us...@lists.isc.org
Subject: Re: stuck up record in DNS
Message-ID: <c918dcff-c5f2-49c0-97c3-a39df2771...@thehobsons.co.uk>
Content-Type: text/plain; charset=us-ascii

Nepryakhin Ivan <nepryak...@speechpro.com> wrote:

> I'm encountered with a strange issue:

See below - it's "correct" operation for your example

> 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;
>         }
>         
> }

Where you have a host entry, the lease does NOT go through the normal lifecycle 
- and would not normally appear in the leases file.
Without the "update-static-leases on" statement, there would be no DNS update 
at all. With it, the DNS will be updated every time the host is leased that 
address - but those DNS records are never removed. Normally, the admin would be 
expected to add their own DNS entries to match host entries - the 
"update-static-leases on" statement is really just to save work.

If you want a "fixed" address for a host, and you want the DNS to be 
added/removed as required, then there is one option available. Add the 
"reserved" flag to a lease for the host - this fixed the lease so that it will 
not be allocated to another host. The lease is in all other respects the same 
as any dynamic lease.



------------------------------

Subject: Digest Footer

_______________________________________________
dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users


------------------------------

End of dhcp-users Digest, Vol 130, Issue 10
*******************************************

Reply via email to