Bug 12275

Summary: multiple PTR records
Product: IPFire Reporter: paul <kairis>
Component: ---Assignee: Stefan Schantl <stefan.schantl>
Status: CLOSED DUPLICATE QA Contact:
Severity: Balancing    
Priority: Will affect an average number of users CC: michael.tremer, peter.mueller, peter.mueller
Version: 2   
Hardware: all   
OS: All   
Attachments: attachment-25065-0.html

Description paul 2020-01-20 14:09:58 UTC
I installed Linux Mint on a system, then later I changed the hostname to cw. But nslookup reports both names. I tried /etc/init.d/dhcp stop then start, I tried /etc/init.d/network restart but no luck. Is there a way to flush this record ? thank you.

nslookup 10.0.0.43
43.0.0.10.in-addr.arpa	name = cw.lan.
43.0.0.10.in-addr.arpa	name = mint.lan.

/etc/init.d/unbound restart clears the PTR records.
Comment 1 Peter Müller 2020-04-10 11:01:23 UTC
Is this solved permanently after restarting Unbound?
Comment 2 paul 2020-04-10 13:09:48 UTC
Created attachment 742 [details]
attachment-25065-0.html

It is  ... I usually run dhcp stop, dhcp start, unbound restart from
/etc/init.d/

paul

On Fri, Apr 10, 2020 at 4:01 AM IPFire Bugzilla <bugzilla@ipfire.org> wrote:

> *Comment # 1 <https://bugzilla.ipfire.org/show_bug.cgi?id=12275#c1> on bug
> 12275 <https://bugzilla.ipfire.org/show_bug.cgi?id=12275> from Peter Müller
> <peter.mueller@link38.eu> *
>
> Is this solved permanently after restarting Unbound?
>
> ------------------------------
> You are receiving this mail because:
>
>    - You reported the bug.
>
>
Comment 3 paul 2020-09-11 18:46:28 UTC
Installed mint on a desktop, gave it hostname lake. This is what happened ...
(dhcp knows is as .18 and lake but dns knows it as .18 and mint)

[root@ipfire ~]# more /etc/unbound/dhcp-leases.conf has
local-data: "lake.lan 60 IN A 10.0.0.18"
local-data: "18.0.0.10.in-addr.arpa 60 IN PTR lake.lan"

but

[root@ipfire ~]# dig @10.0.0.1 -x 10.0.0.18 gives me
;; ANSWER SECTION:
18.0.0.10.in-addr.arpa. 60 IN PTR mint.lan.

python code runs on ipfire that should sync dhcpleases with dns

/usr/bin/python /usr/sbin/unbound-dhcp-leases-bridge -d

If I /etc/init.d/unbound restart, it will clear but why does this happen?
Comment 4 paul 2022-04-12 15:07:44 UTC
please close this bug, resolved by fixing the dhcp-leases-bridge.
Comment 5 Peter Müller 2022-04-12 15:13:47 UTC

*** This bug has been marked as a duplicate of bug 12694 ***