dns

command
v0.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

trace dns example

This is a basic example showing how to use trace/dns package to trace DNS requests on the host.

How to build

$ go build .

How to run

Start the tracer in a terminal.

$ sudo ./dns

Then, perform some DNS requests:

$ nslookup -querytype=a microsoft.com.
$ nslookup -querytype=a google.com.

The first terminal will print information about the DNS requests:

$ sudo ./dns
A new "A" dns request about microsoft.com. was observed
A new "A" dns request about microsoft.com. was observed
A new "A" dns response about microsoft.com. was observed
A new "A" dns response about microsoft.com. was observed
A new "A" dns request about google.com. was observed
A new "A" dns request about google.com. was observed
A new "A" dns response about google.com. was observed
A new "A" dns response about google.com. was observed

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL