sip-dig(1)
π sip-dig(1) π
okay bestie, welcome to the General Commands Manual glow-up of sip-dig. grab a strawberry matcha, we're resolving SIP URIs πβ¨
β¨ NAME β¨
sip-dig β Resolve SIP URIs.
This is an example program for sresolv library in synchronous mode. iykyk π
Author Pekka Pessi Pekka.Pessi@nokia.com
Date Original Created: Tue Jul 16 18:50:14 2002 ppessi
πΈ Synopsis πΈ
sip-dig [OPTIONS] uri...
π¦ Description π¦
The sip-dig utility resolves SIP URIs as described in RFC 3263. It queries NAPTR, SRV and A/AAAA records and prints out the resulting transport addresses. it's giving DNS detective πβ¨
The default transports are: UDP, TCP, SCTP, TLS and TLS-SCTP. The SIPS URIs are resolved using only TLS transports, TLS and TLS-SCTP. If not otherwise indicated by NAPTR or SRV records, the sip-dig uses UDP and TCP as transports for SIP and TLS for SIPS URIs.
The results are printed intended, with a preference followed by weight, then protocol name, port number and IP address in numeric format. no cap, that's the whole layout π
π Command Line Options π
The sip-dig utility accepts following command line options:
-p protonameβ Use named transport protocol. The protoname can be either well-known, e.g.,'udp', or it can specify NAPTR service and SRV identifier, e.g.,'tls-udp/SIPS+D2U/_sips._udp.'. versatile queen π--udpβ Use UDP transport protocol.--tcpβ Use TCP transport protocol.--tlsβ Use TLS over TCP transport protocol.--sctpβ Use SCTP transport protocol.--tls-sctpβ Use TLS over SCTP transport protocol.--no-sctpβ Ignore SCTP or TLS-SCTP records in the list of default transports. This option has no effect if transport protocols has been explicitly listed. (so like, it only works if you didn't already pick your faves by hand π)-4β Query IP4 addresses (A records)-6β Query IP6 addresses (AAAA records).-vβ Be verbatim.
π Return Codes π
0when successful (a 2XX-series response is received)1when unsuccessful (a 3XX..6XX-series response is received)2initialization failure
π Examples π
Resolve sip:openlaboratory.net, prefer TLS over TCP, TCP over UDP:
$ sip-dig --tls --tcp --udp sip:openlaboratory.net
1 0.333 tls 5061 212.213.221.127
2 0.333 tcp 5060 212.213.221.127
3 0.333 udp 5060 212.213.221.127
Resolve sips:example.net with TLS over SCTP (TLS-SCTP) and TLS:
$ sip-dig -p tls-sctp --tls sips:example.net
1 0.500 tls-udp 5061 172.21.55.26
2 0.500 tls 5061 172.21.55.26
π§ Environment π§
#SRESOLV_DEBUG, SRESOLV_CONF
π Reporting Bugs π
Report bugs to sofia-sip-devel@lists.sourceforge.net. pls be nice, they're doing their best π«Ά
π Author π
Written by Pekka Pessi <pekka -dot pessi -at- nokia -dot- com>
β Copyright β
Copyright (C) 2006 Nokia Corporation.
This program is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bestie that's a real one: NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. read it and weep (then read the source for copying conditions) π
that's the whole page, slay π
π¦β¨ β brought to you by sofia-sip-utils, Version 1.12.11devel, and this very sip-dig(1) page. mwah, ily, go resolve something ππ
π¦ where this page comes from
- ubuntu noble: sofia-sip-bin 1.12.11+20110422.1+1e14eea~dfsg-6.1build2 Β· LGPL-2.1-or-later
- ubuntu questing: sofia-sip-bin 1.12.11+20110422.1+1e14eea~dfsg-6.1build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms