Skip to content

How to set the return value of gettag function #14804

Discussion options

You must be logged in to vote

This script works for me:

function gettag(remote, ednssubnet, localip, qname, qtype, ednsoptions, tcp, proxyprotocolvalues)
    local req_id = "REQID"
    local device_id = "DEVID"
    local device_name = "DEVNAME"
    return 0, {}, {}, req_id, device_id, device_name
end
[2024-10-28 08:58:16.654196] Query of size 57: 127.0.0.1:58681 (N/A) -> 127.0.0.1:5301 (UDP) id: 13636 uuid: b'a92ae42eb6974dd6a03c6190871c7384' requestorid: REQID deviceid: b'4445564944' devicename: DEVNAME serverid: b'iMac.local' nod: N/A workerId: 1 pcCacheHit: N/A outgoingQueries: N/A
- Question: 1, 1, www.powerdns.com.
[2024-10-28 08:58:17.150896] Response of size 164: 127.0.0.1:58681 (N/A) -> 127.0.0.1:5301 (UDP) i…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@chunyuliu106667777
Comment options

@omoerbeek
Comment options

@chunyuliu106667777
Comment options

Comment options

You must be logged in to vote
3 replies
@chunyuliu106667777
Comment options

@omoerbeek
Comment options

@chunyuliu106667777
Comment options

Answer selected by chunyuliu106667777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants