Skip to content

Conversation

@jpinsonneau
Copy link
Contributor

@jpinsonneau jpinsonneau commented Oct 23, 2025

Description

Parse truncated DNS QNAME and append it to the flows when available

Dependencies

n/a

Checklist

If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.

  • Will this change affect NetObserv / Network Observability operator? If not, you can ignore the rest of this checklist.
  • Is this PR backed with a JIRA ticket? If so, make sure it is written as a title prefix (in general, PRs affecting the NetObserv/Network Observability product should be backed with a JIRA ticket - especially if they bring user facing changes).
  • Does this PR require product documentation?
    • If so, make sure the JIRA epic is labelled with "documentation" and provides a description relevant for doc writers, such as use cases or scenarios. Any required step to activate or configure the feature should be documented there, such as new CRD knobs.
  • Does this PR require a product release notes entry?
    • If so, fill in "Release Note Text" in the JIRA.
  • Is there anything else the QE team should know before testing? E.g: configuration changes, environment setup, etc.
    • If so, make sure it is described in the JIRA ticket.
  • QE requirements (check 1 from the list):
    • Standard QE validation, with pre-merge tests unless stated otherwise.
    • Regression tests only (e.g. refactoring with no user-facing change).
    • No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

To run a perfscale test, comment with: /test ebpf-node-density-heavy-25nodes

@openshift-ci
Copy link

openshift-ci bot commented Oct 23, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign msherif1234 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jpinsonneau jpinsonneau marked this pull request as draft October 23, 2025 16:10
@jpinsonneau jpinsonneau changed the title Get DNS names NETOBSERV-2455 - Get DNS names Oct 24, 2025
@jpinsonneau
Copy link
Contributor Author

jpinsonneau commented Oct 24, 2025

Tested on OCP 4.19 with CLI by adding the following column in the config:

  - id: DNSName
    group: DNS
    name: DNS Name
    tooltip: DNS query name.
    field: DnsName
    filter: dns_name
    default: false
    width: 15
    feature: dnsTracking
image image image

@jpinsonneau jpinsonneau added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Oct 24, 2025
@github-actions
Copy link

New images:
quay.io/netobserv/ebpf-bytecode:34362e6
quay.io/netobserv/netobserv-ebpf-agent:34362e6

These will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=34362e6 make set-agent-image

@jpinsonneau jpinsonneau marked this pull request as ready for review October 24, 2025 11:03
__uint(max_entries, 1);
__type(key, u32);
__type(value, struct dns_parse_buffer);
} dns_parse_buffer_map SEC(".maps");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need this additional map, u can directly read dns name from dns record and added to metric

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rebased to remove the map: e7fe3e5

if (buf) {
// Copy raw QNAME bytes (label-encoded) and let userspace decode to dotted form
__builtin_memset(buf->name, 0, DNS_NAME_MAX_LEN);
u32 qname_off = dns_offset + sizeof(struct dns_header);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls make sure this math aligns for both DNS over UDP and DNS over TCP , IIRC the headers are of different format

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Seems to work on both 🤔
I'll investigate more on that one

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[
{"AgentIP":"172.18.0.4","Bytes":404,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":6893,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.2.13","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-tcp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-tcp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"52:33:c4:4a:12:98","DstPort":47143,"Etype":2048,"Flags":784,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth04302c7a"],"Packets":4,"Proto":6,"Sampling":1,"SrcAddr":"10.96.0.10","SrcK8S_Name":"kube-dns","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"kube-dns","SrcK8S_OwnerType":"Service","SrcK8S_Type":"Service","SrcMac":"0e:84:de:36:65:f6","SrcPort":53,"TimeFlowEndMs":1761648213185,"TimeFlowStartMs":1761648213184,"TimeReceived":1761648213,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":404,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":6893,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.2.13","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-tcp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-tcp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"42:6f:2b:75:9e:89","DstPort":47143,"Etype":2048,"Flags":784,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":4,"Proto":6,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648213185,"TimeFlowStartMs":1761648213184,"TimeReceived":1761648213,"Udns":[""]},
{"AgentIP":"172.18.0.2","Bytes":232,"DnsFlags":34051,"DnsFlagsResponseCode":"NXDomain","DnsId":48277,"DnsLatencyMs":0,"DnsName":"_grpc_config.collector","Dscp":0,"DstAddr":"172.18.0.4","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"netobserv-cli-cluster-worker","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"0e:43:ac:ed:03:f4","DstPort":43215,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth9c552442","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"7a:03:60:f1:63:a4","SrcPort":53,"TimeFlowEndMs":1761648213284,"TimeFlowStartMs":1761648213284,"TimeReceived":1761648213,"Udns":["",""]},
{"AgentIP":"172.18.0.2","Bytes":172,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":6893,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.1.14","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"0e:43:ac:ed:03:f4","DstPort":42136,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth9c552442","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"7a:03:60:f1:63:a4","SrcPort":53,"TimeFlowEndMs":1761648213754,"TimeFlowStartMs":1761648213754,"TimeReceived":1761648213,"Udns":["",""]},
{"AgentIP":"172.18.0.2","Bytes":404,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":6893,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.2.13","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-tcp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-tcp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"0e:43:ac:ed:03:f4","DstPort":47143,"Etype":2048,"Flags":784,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth9c552442","eth0"],"Packets":4,"Proto":6,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"7a:03:60:f1:63:a4","SrcPort":53,"TimeFlowEndMs":1761648213185,"TimeFlowStartMs":1761648213184,"TimeReceived":1761648213,"Udns":["",""]},
{"AgentIP":"172.18.0.2","Bytes":223,"DnsFlags":34051,"DnsFlagsResponseCode":"NXDomain","DnsId":54591,"DnsLatencyMs":0,"DnsName":"collector.netobserv-cli.svc","Dscp":0,"DstAddr":"172.18.0.4","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"netobserv-cli-cluster-worker","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"0e:43:ac:ed:03:f4","DstPort":62007,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth9c552442","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"7a:03:60:f1:63:a4","SrcPort":53,"TimeFlowEndMs":1761648213282,"TimeFlowStartMs":1761648213282,"TimeReceived":1761648213,"Udns":["",""]},
{"AgentIP":"172.18.0.3","Bytes":172,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":6893,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.1.14","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"ee:c0:bd:f5:3f:9b","DstPort":42136,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648213754,"TimeFlowStartMs":1761648213754,"TimeReceived":1761648214,"Udns":[""]},
{"AgentIP":"172.18.0.3","Bytes":172,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":6893,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.1.14","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"4e:3d:b4:df:0d:9f","DstPort":42136,"Etype":2048,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth9a9a47c1"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.96.0.10","SrcK8S_Name":"kube-dns","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"kube-dns","SrcK8S_OwnerType":"Service","SrcK8S_Type":"Service","SrcMac":"f2:49:c4:df:2e:bf","SrcPort":53,"TimeFlowEndMs":1761648213754,"TimeFlowStartMs":1761648213754,"TimeReceived":1761648214,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":223,"DnsFlags":34051,"DnsFlagsResponseCode":"NXDomain","DnsId":54591,"DnsLatencyMs":0,"DnsName":"collector.netobserv-cli.svc","Dscp":0,"DstAddr":"172.18.0.4","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"netobserv-cli-cluster-worker","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"42:6f:2b:75:9e:89","DstPort":62007,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648213282,"TimeFlowStartMs":1761648213282,"TimeReceived":1761648214,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":232,"DnsFlags":34051,"DnsFlagsResponseCode":"NXDomain","DnsId":48277,"DnsLatencyMs":0,"DnsName":"_grpc_config.collector","Dscp":0,"DstAddr":"172.18.0.4","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"netobserv-cli-cluster-worker","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"42:6f:2b:75:9e:89","DstPort":43215,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648213284,"TimeFlowStartMs":1761648213284,"TimeReceived":1761648214,"Udns":[""]},
{"AgentIP":"172.18.0.2","Bytes":205,"DnsFlags":34048,"DnsFlagsResponseCode":"NoError","DnsId":35219,"DnsLatencyMs":0,"DnsName":"collector.netobserv-cli.svc","Dscp":0,"DstAddr":"172.18.0.3","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"netobserv-cli-cluster-worker2","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker2","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"22:c5:11:a1:12:4b","DstPort":58887,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth23eabd9e","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.2","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-6xl5d","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"16:05:90:6e:b9:8c","SrcPort":53,"TimeFlowEndMs":1761648214157,"TimeFlowStartMs":1761648214157,"TimeReceived":1761648214,"Udns":["",""]},
{"AgentIP":"172.18.0.2","Bytes":219,"DnsFlags":34051,"DnsFlagsResponseCode":"NXDomain","DnsId":3594,"DnsLatencyMs":0,"DnsName":"collector.netobserv-cli.svc","Dscp":0,"DstAddr":"172.18.0.3","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"netobserv-cli-cluster-worker2","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker2","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"0e:43:ac:ed:03:f4","DstPort":43272,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth9c552442","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"7a:03:60:f1:63:a4","SrcPort":53,"TimeFlowEndMs":1761648214156,"TimeFlowStartMs":1761648214156,"TimeReceived":1761648214,"Udns":["",""]},
{"AgentIP":"172.18.0.2","Bytes":219,"DnsFlags":34051,"DnsFlagsResponseCode":"NXDomain","DnsId":33572,"DnsLatencyMs":0,"DnsName":"collector.netobserv-cli.svc","Dscp":0,"DstAddr":"172.18.0.3","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"netobserv-cli-cluster-worker2","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker2","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"0e:43:ac:ed:03:f4","DstPort":57774,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth9c552442","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"7a:03:60:f1:63:a4","SrcPort":53,"TimeFlowEndMs":1761648214156,"TimeFlowStartMs":1761648214156,"TimeReceived":1761648214,"Udns":["",""]},
{"AgentIP":"172.18.0.3","Bytes":205,"DnsFlags":34048,"DnsFlagsResponseCode":"NoError","DnsId":35219,"DnsLatencyMs":0,"DnsName":"collector.netobserv-cli.svc","Dscp":0,"DstAddr":"172.18.0.3","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"netobserv-cli-cluster-worker2","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker2","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"ee:c0:bd:f5:3f:9b","DstPort":58887,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.2","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-6xl5d","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648214157,"TimeFlowStartMs":1761648214157,"TimeReceived":1761648215,"Udns":[""]},
{"AgentIP":"172.18.0.3","Bytes":219,"DnsFlags":34051,"DnsFlagsResponseCode":"NXDomain","DnsId":3594,"DnsLatencyMs":0,"DnsName":"collector.netobserv-cli.svc","Dscp":0,"DstAddr":"172.18.0.3","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"netobserv-cli-cluster-worker2","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker2","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"ee:c0:bd:f5:3f:9b","DstPort":43272,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648214156,"TimeFlowStartMs":1761648214156,"TimeReceived":1761648215,"Udns":[""]},
{"AgentIP":"172.18.0.3","Bytes":219,"DnsFlags":34051,"DnsFlagsResponseCode":"NXDomain","DnsId":33572,"DnsLatencyMs":0,"DnsName":"collector.netobserv-cli.svc","Dscp":0,"DstAddr":"172.18.0.3","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"netobserv-cli-cluster-worker2","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"netobserv-cli-cluster-worker2","DstK8S_OwnerType":"Node","DstK8S_Type":"Node","DstMac":"ee:c0:bd:f5:3f:9b","DstPort":57774,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648214156,"TimeFlowStartMs":1761648214156,"TimeReceived":1761648215,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":404,"DnsFlags":33155,"DnsFlagsResponseCode":"NXDomain","DnsId":22691,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.2.13","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-tcp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-tcp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"42:6f:2b:75:9e:89","DstPort":41203,"Etype":2048,"Flags":784,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":4,"Proto":6,"Sampling":1,"SrcAddr":"10.244.0.2","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-6xl5d","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648263276,"TimeFlowStartMs":1761648263275,"TimeReceived":1761648263,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":404,"DnsFlags":33155,"DnsFlagsResponseCode":"NXDomain","DnsId":22691,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.2.13","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-tcp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-tcp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"52:33:c4:4a:12:98","DstPort":41203,"Etype":2048,"Flags":784,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth04302c7a"],"Packets":4,"Proto":6,"Sampling":1,"SrcAddr":"10.96.0.10","SrcK8S_Name":"kube-dns","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"kube-dns","SrcK8S_OwnerType":"Service","SrcK8S_Type":"Service","SrcMac":"0e:84:de:36:65:f6","SrcPort":53,"TimeFlowEndMs":1761648263276,"TimeFlowStartMs":1761648263275,"TimeReceived":1761648263,"Udns":[""]},
{"AgentIP":"172.18.0.2","Bytes":172,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":22691,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.1.14","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"22:c5:11:a1:12:4b","DstPort":39766,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth23eabd9e","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.2","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-6xl5d","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"16:05:90:6e:b9:8c","SrcPort":53,"TimeFlowEndMs":1761648263787,"TimeFlowStartMs":1761648263787,"TimeReceived":1761648263,"Udns":["",""]},
{"AgentIP":"172.18.0.2","Bytes":404,"DnsFlags":33155,"DnsFlagsResponseCode":"NXDomain","DnsId":22691,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.2.13","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-tcp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-tcp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"22:c5:11:a1:12:4b","DstPort":41203,"Etype":2048,"Flags":784,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth23eabd9e","eth0"],"Packets":4,"Proto":6,"Sampling":1,"SrcAddr":"10.244.0.2","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-6xl5d","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"16:05:90:6e:b9:8c","SrcPort":53,"TimeFlowEndMs":1761648263276,"TimeFlowStartMs":1761648263275,"TimeReceived":1761648263,"Udns":["",""]},
{"AgentIP":"172.18.0.3","Bytes":172,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":22691,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.1.14","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"ee:c0:bd:f5:3f:9b","DstPort":39766,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.2","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-6xl5d","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648263787,"TimeFlowStartMs":1761648263787,"TimeReceived":1761648264,"Udns":[""]},
{"AgentIP":"172.18.0.3","Bytes":172,"DnsFlags":34179,"DnsFlagsResponseCode":"NXDomain","DnsId":22691,"DnsLatencyMs":0,"DnsName":"iamnotavaliddomain.com","Dscp":0,"DstAddr":"10.244.1.14","DstK8S_HostIP":"172.18.0.3","DstK8S_HostName":"netobserv-cli-cluster-worker2","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"4e:3d:b4:df:0d:9f","DstPort":39766,"Etype":2048,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth9a9a47c1"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.96.0.10","SrcK8S_Name":"kube-dns","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"kube-dns","SrcK8S_OwnerType":"Service","SrcK8S_Type":"Service","SrcMac":"f2:49:c4:df:2e:bf","SrcPort":53,"TimeFlowEndMs":1761648263787,"TimeFlowStartMs":1761648263787,"TimeReceived":1761648264,"Udns":[""]},
{"AgentIP":"172.18.0.2","Bytes":267,"DnsFlags":33152,"DnsFlagsResponseCode":"NoError","DnsId":38776,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.0.2","DstK8S_HostIP":"172.18.0.2","DstK8S_HostName":"netobserv-cli-cluster-control-plane","DstK8S_Name":"coredns-668d6bf9bc-6xl5d","DstK8S_Namespace":"kube-system","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"coredns","DstK8S_OwnerType":"Deployment","DstK8S_Type":"Pod","DstMac":"16:05:90:6e:b9:8c","DstPort":44522,"Etype":2048,"Flags":272,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth23eabd9e"],"Packets":3,"Proto":6,"Sampling":1,"SrcAddr":"172.18.0.1","SrcMac":"22:c5:11:a1:12:4b","SrcPort":53,"TimeFlowEndMs":1761648327877,"TimeFlowStartMs":1761648327876,"TimeReceived":1761648327,"Udns":[""]},
{"AgentIP":"172.18.0.2","Bytes":115,"DnsFlags":33152,"DnsFlagsResponseCode":"NoError","DnsId":52045,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"0e:43:ac:ed:03:f4","DstPort":47371,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth9c552442","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"7a:03:60:f1:63:a4","SrcPort":53,"TimeFlowEndMs":1761648358919,"TimeFlowStartMs":1761648358919,"TimeReceived":1761648358,"Udns":["",""]},
{"AgentIP":"172.18.0.4","Bytes":115,"DnsFlags":33152,"DnsFlagsResponseCode":"NoError","DnsId":52045,"DnsLatencyMs":1,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"42:6f:2b:75:9e:89","DstPort":47371,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648358919,"TimeFlowStartMs":1761648358919,"TimeReceived":1761648359,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":115,"DnsFlags":33152,"DnsFlagsResponseCode":"NoError","DnsId":52045,"DnsLatencyMs":1,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"c6:e1:86:de:a2:92","DstPort":47371,"Etype":2048,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth4aa36302"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.96.0.10","SrcK8S_Name":"kube-dns","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"kube-dns","SrcK8S_OwnerType":"Service","SrcK8S_Type":"Service","SrcMac":"c6:85:41:ed:37:8a","SrcPort":53,"TimeFlowEndMs":1761648358919,"TimeFlowStartMs":1761648358919,"TimeReceived":1761648359,"Udns":[""]},
{"AgentIP":"172.18.0.2","DnsFlags":34176,"DnsFlagsResponseCode":"NoError","DnsId":54455,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"00:00:00:00:00:00","DstPort":41865,"Etype":2048,"FlowDirection":1,"IfDirections":[0],"Interfaces":["unknown"],"Proto":17,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"00:00:00:00:00:00","SrcPort":53,"TimeFlowEndMs":1761648398949,"TimeFlowStartMs":1761648398949,"TimeReceived":1761648398,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":115,"DnsFlags":34176,"DnsFlagsResponseCode":"NoError","DnsId":54455,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"42:6f:2b:75:9e:89","DstPort":41865,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648398949,"TimeFlowStartMs":1761648398949,"TimeReceived":1761648399,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":115,"DnsFlags":34176,"DnsFlagsResponseCode":"NoError","DnsId":54455,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"c6:e1:86:de:a2:92","DstPort":41865,"Etype":2048,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth4aa36302"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.96.0.10","SrcK8S_Name":"kube-dns","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"kube-dns","SrcK8S_OwnerType":"Service","SrcK8S_Type":"Service","SrcMac":"c6:85:41:ed:37:8a","SrcPort":53,"TimeFlowEndMs":1761648398949,"TimeFlowStartMs":1761648398949,"TimeReceived":1761648399,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":115,"DnsFlags":33152,"DnsFlagsResponseCode":"NoError","DnsId":12786,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"c6:e1:86:de:a2:92","DstPort":59563,"Etype":2048,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth4aa36302"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.96.0.10","SrcK8S_Name":"kube-dns","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"kube-dns","SrcK8S_OwnerType":"Service","SrcK8S_Type":"Service","SrcMac":"c6:85:41:ed:37:8a","SrcPort":53,"TimeFlowEndMs":1761648418964,"TimeFlowStartMs":1761648418964,"TimeReceived":1761648419,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":115,"DnsFlags":33152,"DnsFlagsResponseCode":"NoError","DnsId":12786,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"42:6f:2b:75:9e:89","DstPort":59563,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648418964,"TimeFlowStartMs":1761648418964,"TimeReceived":1761648419,"Udns":[""]},
{"AgentIP":"172.18.0.2","Bytes":115,"DnsFlags":33152,"DnsFlagsResponseCode":"NoError","DnsId":12786,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"0e:43:ac:ed:03:f4","DstPort":59563,"Etype":2048,"FlowDirection":1,"IfDirections":[0,1],"Interfaces":["veth9c552442","eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"7a:03:60:f1:63:a4","SrcPort":53,"TimeFlowEndMs":1761648418964,"TimeFlowStartMs":1761648418964,"TimeReceived":1761648419,"Udns":["",""]},
{"AgentIP":"172.18.0.4","Bytes":115,"DnsFlags":34176,"DnsFlagsResponseCode":"NoError","DnsId":29279,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"42:6f:2b:75:9e:89","DstPort":55601,"Etype":2048,"FlowDirection":0,"IfDirections":[0],"Interfaces":["eth0"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.244.0.4","SrcK8S_HostIP":"172.18.0.2","SrcK8S_HostName":"netobserv-cli-cluster-control-plane","SrcK8S_Name":"coredns-668d6bf9bc-pcf2q","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"coredns","SrcK8S_OwnerType":"Deployment","SrcK8S_Type":"Pod","SrcMac":"26:ac:6d:19:4e:11","SrcPort":53,"TimeFlowEndMs":1761648428971,"TimeFlowStartMs":1761648428971,"TimeReceived":1761648429,"Udns":[""]},
{"AgentIP":"172.18.0.4","Bytes":115,"DnsFlags":34176,"DnsFlagsResponseCode":"NoError","DnsId":29279,"DnsLatencyMs":0,"DnsName":"www.google.com","Dscp":0,"DstAddr":"10.244.2.14","DstK8S_HostIP":"172.18.0.4","DstK8S_HostName":"netobserv-cli-cluster-worker","DstK8S_Name":"dnsutils-udp","DstK8S_Namespace":"dns-test","DstK8S_NetworkName":"primary","DstK8S_OwnerName":"dnsutils-udp","DstK8S_OwnerType":"Pod","DstK8S_Type":"Pod","DstMac":"c6:e1:86:de:a2:92","DstPort":55601,"Etype":2048,"FlowDirection":0,"IfDirections":[1],"Interfaces":["veth4aa36302"],"Packets":1,"Proto":17,"Sampling":1,"SrcAddr":"10.96.0.10","SrcK8S_Name":"kube-dns","SrcK8S_Namespace":"kube-system","SrcK8S_NetworkName":"primary","SrcK8S_OwnerName":"kube-dns","SrcK8S_OwnerType":"Service","SrcK8S_Type":"Service","SrcMac":"c6:85:41:ed:37:8a","SrcPort":53,"TimeFlowEndMs":1761648428971,"TimeFlowStartMs":1761648428971,"TimeReceived":1761648429,"Udns":[""]}
]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've opened a PR on the CLI is someone wanna give a try: netobserv/network-observability-cli#406

type Protobuf struct {
}

// dnsRawNameToDotted parses a label-encoded DNS QNAME (raw bytes copied from kernel)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a good candidate for unit-test as it looks so convoluted

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in a4849cb

break
}
// Stop on compression pointer (0xC0xx) since we didn't follow it in kernel
if (l & 0xC0) == 0xC0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this 0xC0 magic number ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a skip when a DNS messageg use compression to reduce its size (repeated domain name parts are using pointers).

l is the length byte of a DNS label.
0xC0 in binary is 11000000.
The bitwise AND l & 0xC0 isolates the top two bits of l.
If the result equals 0xC0, it indicates a compression pointer.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls add comments with all the above details

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in a4849cb

uint8(mac),
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another UT is needed for this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in a4849cb

@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Oct 24, 2025
.mk/bc.mk Outdated
"additional_flow_metrics":"per_cpu_hash",
"packet_record":"ringbuf",
"dns_flows":"hash",
"dns_parse_buffer_map":"percpu_array",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in a4849cb

@jpinsonneau jpinsonneau force-pushed the dns_name branch 2 times, most recently from a4849cb to e7874a2 Compare October 28, 2025 13:26
#define DNS_DEFAULT_PORT 53
#define DNS_QR_FLAG 0x8000
#define DNS_OPCODE_MASK 0x7800
#define DNS_RCODE_MASK 0x0F
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the above are defined but not used anywhere

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch !

ab1368b

@jpinsonneau jpinsonneau changed the title NETOBSERV-2455 - Get DNS names NETOBSERV-2455 - Get DNS Name Oct 28, 2025
@msherif1234
Copy link
Contributor

/LGTM

@jotak
Copy link
Member

jotak commented Oct 30, 2025

@jpinsonneau I've reviewed and overall it looks good to me however I'd just like to understand how wide is the impact of not supporting the compression pointers - in your live tests, did you see it happening often, be it in k8s dns context or when connecting to a public server?
Maybe we should introduce error metrics in the decoding, to track when we could not decode ?

@jpinsonneau
Copy link
Contributor Author

@jpinsonneau I've reviewed and overall it looks good to me however I'd just like to understand how wide is the impact of not supporting the compression pointers - in your live tests, did you see it happening often, be it in k8s dns context or when connecting to a public server? Maybe we should introduce error metrics in the decoding, to track when we could not decode ?

I can run some tests and try to get some numbers 😉

@jpinsonneau jpinsonneau added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Oct 31, 2025
@github-actions
Copy link

New images:
quay.io/netobserv/ebpf-bytecode:b63d880
quay.io/netobserv/netobserv-ebpf-agent:b63d880

These will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=b63d880 make set-agent-image

@jpinsonneau
Copy link
Contributor Author

@jpinsonneau I've reviewed and overall it looks good to me however I'd just like to understand how wide is the impact of not supporting the compression pointers - in your live tests, did you see it happening often, be it in k8s dns context or when connecting to a public server? Maybe we should introduce error metrics in the decoding, to track when we could not decode ?

I can run some tests and try to get some numbers 😉

With current implementation on a real OCP cluster:

  • 20% are truncated because of DNS_NAME_MAX_LEN
  • 1% because of compression pointers. That number is especially low because we can't follow pointers that are outside the truncated bounds

Increasing the max len to 64 helps a bit:

  • 17% are truncated because of DNS_NAME_MAX_LEN
  • 0.8% because of compression pointers

However, that would highly depend of the workload 🤔

@openshift-ci
Copy link

openshift-ci bot commented Oct 31, 2025

@jpinsonneau: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/qe-e2e-tests ab1368b link false /test qe-e2e-tests

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@jotak
Copy link
Member

jotak commented Nov 3, 2025

/lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm ok-to-test To set manually when a PR is safe to test. Triggers image build on PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants