DNS preload

6 views
Skip to first unread message

Alexandre Heidemann

unread,
May 11, 2026, 9:08:51 AM (9 days ago) May 11
to Event-Driven Servers
Hello

I'm testing the dns preload file config:

...
id = tac_plus-ng {

  #debug = PACKET AUTHEN AUTHOR MAVIS PROC

  log accesslog {
    destination = /var/log/access/access-%m-%d-%Y.txt
    separator = "=="
#   access format = "%Y-%m-%d %H:%M:%S src=%{src} user=%{user} dst=%{dst} action=%{result} "
   authorization format = "${nas}${FS}${user}${FS}${port}${FS}${nac}${FS}${profile}${FS}${result}${FS}${service}${FS}${cmd}${FS}${nas-name}"



    }
  log accountinglog {
    destination = /var/log/accounting/accounting-%m-%d-%Y.txt
     separator = "=="
     #accounting format = "${nas}${FS}${user}${FS}${port}${FS}${nac}${FS}${accttype}${FS}${service}${FS}${cmd}${FS}${args}"
    }

  log authenticationlog {
    destination = /var/log/authentication/authentication-%m-%d-%Y.txt
    separator = "=="
#    authorization format = "%Y-%m-%d %H:%M:%S src=%{src} user=%{user} dst=%{dst} action=%{result}"
    authentication format = "${nas}${FS}${user}${FS}${service}${FS}${nac}${FS}${action}${FS}${nas-name}"

  }

  accounting log = accountinglog
  authorization log = accesslog
  authentication log = authenticationlog

dns reverse-lookup nas = true
dns preload file = /etc/tac_plus_ng/conf.d/hosts.preload

  include /etc/tac_plus_ng/conf.d/host.conf
  include /etc/tac_plus_ng/conf.d/net.conf
...
#   cat /etc/tac_plus_ng/conf.d/hosts.preload
172.27.5.0      LER-TIO-CGR-3
#

It worked for some minutes, than the logs don't show the dns.name:

2026-05-11 10:00:36 -0300 172.27.5.0==alexandre.h==vty0==10.71.113.29==full_access_priv_lvl_15==permit==shell====LER-TIO-CGR-3
2026-05-11 10:00:58 -0300 172.27.5.0==alexandre.h====10.71.113.29==full_access_priv_lvl_15==permit==shell==display version <cr>==LER-TIO-CGR-3
2026-05-11 10:02:12 -0300 172.27.5.0==alexandre.h====10.71.113.29==full_access_priv_lvl_15==permit==shell==display version <cr>==LER-TIO-CGR-3
2026-05-11 10:03:36 -0300 172.27.5.0==alexandre.h====10.71.113.29==full_access_priv_lvl_15==permit==shell==display version <cr>==


Just restart the process it works again for some minutes. 
With " /usr/local/sbin/tac_plus-ng -f -d 65353 /etc/tac_plus-ng.conf",  I din't notice nothing relatated about dns.

What can I do to troubleshooting this and what your recommedations about my tests?

Marc Huber

unread,
May 11, 2026, 12:03:35 PM (9 days ago) May 11
to event-driv...@googlegroups.com

Hi Alexandre,

commit 99271e2bb886e02ad9ee9f15719c3537996b0e8f should fix this, thanks for reporting!

Cheers,

Marc

--
You received this message because you are subscribed to the Google Groups "Event-Driven Servers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to event-driven-ser...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/event-driven-servers/70b6454a-ef35-4af8-98d2-0daaebd7f49dn%40googlegroups.com.

Alexandre Heidemann

unread,
May 11, 2026, 2:03:00 PM (9 days ago) May 11
to event-driv...@googlegroups.com
Works fine.

2026-05-11 14:34:19 -0300 172.27.5.0==alexandre.h==vty0==10.71.113.29==full_access_priv_lvl_15==permit==shell====LER-TIO-CGR-3
2026-05-11 14:34:36 -0300 172.27.5.0==alexandre.h====10.71.113.29==full_access_priv_lvl_15==permit==shell==display version <cr>==LER-TIO-CGR-3
2026-05-11 14:41:00 -0300 172.27.5.0==alexandre.h====10.71.113.29==full_access_priv_lvl_15==permit==shell==display version <cr>==LER-TIO-CGR-3
2026-05-11 15:02:23 -0300 172.27.5.0==alexandre.h====10.71.113.29==full_access_priv_lvl_15==permit==shell==display version <cr>==LER-TIO-CGR-3

Reply all
Reply to author
Forward
0 new messages