Opened 6 years ago

Last modified 4 years ago

#10397 new enhancement

/usr/bin/dhcp6c-state extension for logging DNS and NTP information

Reported by: pb@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:


It is useful to log received DNS servers, domain and NTP servers by DHCPv6

A simple patch do the work:

--- /usr/bin/dhcp6c-state.orig	Fri Nov 11 18:28:31 2011
+++ /usr/bin/dhcp6c-state	Fri Nov 11 18:34:09 2011
@@ -16,3 +16,6 @@
 uci_set_state dhcp6c state bcmcs_server_address "$new_bcmcs_servers"  
 uci_set_state dhcp6c state bcmcs_server_domain_name "$new_bcmcs_name"
+[ -n "$new_domain_name_servers" ] && logger -t dhcp6c-state "received DNS servers: $new_domain_name_servers"
+[ -n "$new_domain_name" ] && logger -t dhcp6c-state "received DNS domain: $new_domain_name"
+[ -n "$new_ntp_servers" ] && logger -t dhcp6c-state "received NTP servers: $new_ntp_servers"

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by angus19

Is it possible to log received PD/Prefix Delegation as well?

comment:2 Changed 4 years ago by jow

  • Milestone changed from Backfire 10.03.2 to Chaos Calmer (trunk)

Milestone Backfire 10.03.2 deleted

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.