Page MenuHomeVyOS Platform

Need to restart pdns-recursor to check new entries in /etc/hosts
Closed, ResolvedPublicBUG

Description

When DCHP provide new IP, the entry in /etc/hosts is correctly added but pdns-recursor service need to be restart to take these new entries in consideration.

service {
    dhcp-server {
        hostfile-update
        shared-network-name LAN {
            subnet 10.32.0.0/24 {
                default-router 10.32.0.1
                dns-server 10.32.0.1
                range 0 {
                    start 10.32.0.50
                    stop 10.32.0.100
                }
            }
        }
    }
    dns {
        forwarding {
            allow-from 10.32.0.0/24
            cache-size 0
            listen-address 10.32.0.1
            name-server 1.1.1.1
            name-server 1.0.0.1
            name-server 8.8.8.8
            name-server 8.8.4.4
        }
    }
}

Details

Difficulty level
Unknown (require assessment)
Version
rolling-202005231822
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

jjakob added a subscriber: jjakob.

Will be done as part of T2486

jjakob changed the task status from Open to In progress.Jun 11 2020, 8:17 AM
jjakob triaged this task as Normal priority.
jjakob moved this task from Need Triage to In Progress on the VyOS 1.3 Equuleus board.

I found a similar issue related to this topic in 1.2.6-S1, script on-dhcp-event.sh can't to determine pdns_recursor PID

vyos@vyos# ps ax | grep pdns
 6626 ?        Ssl    0:00 /usr/sbin/pdns_recursor --daemon=no --write-pid=no --disable-syslog --log-timestamp=no
[edit]
vyos@vyos# pgrep "pdns_recursor"
[edit]
vyos@vyos# pgrep pdns_recursor
[edit]
vyos@vyos#

We need to use pgrep pdns

vyos@vyos# pgrep pdns
6626
[edit]

On 1.3-beta-202102210443 and 1.4-rolling-202102202002 all work properly and don't require any changes, mark as resolved.