This is our old Q&A Site. Please post any new questions and answers at


how can i give a name to an ip address of a tcp packet in lua?

(I want to see in wireshark a name instead of the ip address).


asked 13 Apr '12, 02:34

Zvika's gravatar image

accept rate: 0%

Name resolution and Lua are independent of each other; and Wireshark Lua has no built-in API to control name resolution, but you can do it with the following instructions (untested).

  1. Make sure name resolution is enabled in preferences: Preferences > Name Resolution > Enable network name resolution

  2. Creates a hosts file at:

    • %APPDATA%\\Wireshark\\hosts (Windows)
    • ~/.wireshark/hosts (*nix)
  3. For each custom name, add an entry to the hosts file on a new line in the form of:

    {ipaddress} {name}

Ex: This hosts file has 3 custom name resolutions: wifi_router wifi_clientA wifi_clientB
permanent link

answered 13 Apr '12, 08:44

bstn's gravatar image

accept rate: 14%

edited 13 Apr '12, 08:45

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 13 Apr '12, 02:34

question was seen: 5,745 times

last updated: 13 Apr '12, 08:45

p​o​w​e​r​e​d by O​S​Q​A