---
name: "dt-getname"
section: "1"
platform: "linux"
package: "dnssec-tools"
version: "2.2.3-16"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/dt-getname"
---

# dt-getname(1)

command-line test program for the val\_getnameinfo() function

## NAME

dt-getname - command-line test program for the val\_getnameinfo() function

## SYNOPSIS

```
   dt-getname [options] address
```

## DESCRIPTION

This utility is a command-line wrapper around the *val\_getnameinfo()* function.  It invokes the *val\_getnameinfo()* function with the given command-line arguments and displays the returned host and service information for the given node name, with a validation status value.

The exit status for this program is 1 if the answer received is trusted, 2 if the answer received is validated, and -1 for an error.  The program returns 0 if  no validation was performed or if the result was neither trusted nor validated.  The trusted and validated status values are obtained using the *val\_istrusted()*  and *val\_isvalidated()* functions from *[libval(3)](/libval/3.md)*.

## OPTIONS

- \-p, --port

  Use the supplied port. If a port is specified, service information is not looked up.

- \-F

  Use the NI\_NOFQDN flag.

- \-H

  Use the NI\_NUMERICHOST flag.

- \-N

  Use the NI\_NAMEREQD flag.

- \-S

  Use the NI\_NUMERICSERV flag.

- \-D

  Use the NI\_DGRAM flag.

- \-o, --output=\<debug-level\>:\<dest-type\>\[:\<dest-options\>\]

  \<debug-level\> is 1-7, corresponding to syslog levels ALERT-DEBUG \<dest-type\> is one of file, net, syslog, stderr, stdout \<dest-options\> depends on \<dest-type\>\
       file:\<file-name\>   (opened in append mode)\
       net\[:\<host-name\>:\<host-port\>\] (127.0.0.1:1053\
       syslog\[:facility\] (0-23 (default 1 USER))

- \-h, --help

  Display the help and exit.

## PRE-REQUISITES

libval

## COPYRIGHT

Copyright 2005-2013 SPARTA, Inc.  All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.

## AUTHORS

Abhijit Hayatnagarkar, Suresh Krishnaswamy, Robert Story, Michael Baer

## SEE ALSO

***val\_getnameinfo*****(3)**

***libval*****(3)**

http://www.dnssec-tools.org
