Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show system services dns dns-proxy

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show system services dns dns-proxy 

Description

Display domain name system (DNS) proxy information. This option is supported on the SRX300, SRX320, SRX340, SRX345, SRX380, and SRX550M devices.

Options

  • none—Display DNS proxy statistics information.

  • cache—(Optional) Display the DNS proxy cache.

  • statistics—(Optional) Display the DNS proxy statistics.

Required Privilege Level

view

Output Fields

Table 1 lists the output fields for the show system services dns-proxy command. Output fields are listed in the approximate order in which they appear.

Table 1: show system services dns-proxy

Field Name

Field Description

DNS proxy statistics

Display information about the DNS proxy.

  • Status—State of the proxy server as Enabled or disabled.

  • Queries received—Number of DNS queries received by the DNS proxy.

  • Responses sent—Number of DNS responses sent by the DNS proxy.

  • Queries forwarded—Number of DNS queries forwarded by the DNS proxy.

  • Negative responses—Number of negative responses the DNS proxy sent to the DNS client.

  • Retry requests—Number of retries the DNS proxy received from the DNS client.

  • Pending requests—Number of pending queries the DNS proxy has yet to send the DNS client a response for.

  • Server failures—Number of DNS proxy server failures.

Hostname

Hostname of the host that has been cached.

IP address

IP address of the host.

Time-to-live

Length of time before an entry is purged from the DNS cache.

Type

Type of DNS Resource Record. For example, A records refer to IPv4 host addresses.

Class

Class of DNS. A parameter used to define a DNS Resource Record. For example, IN class is used for Internet domain names.

Sample Output

show system services dns-proxy statistics

content_copy zoom_out_map
user@host> show system services dns-proxy statistics
DNS proxy statistics        :
    DNS proxy statistics  		:
    Status            		: enabled
    IPV4 Queries received  	: 30
    IPV6 Queries received  	: 0
    Responses sent    		: 30
    Queries forwarded 		: 13
    Negative responses		: 23
    Positive responses		: 23
    Retry requests    		: 0
    Pending requests  		: 0
    Server failures   		: 0
    Interfaces        		: fe-0/0/0.0, fe-1/0/1.0

show system services dns-proxy cache

content_copy zoom_out_map
user@host>show system services dns-proxy cache 
Hostname                  Time-to-live      Type        Class   IP address/Hostname
device1.example.com        408               A           IN      207.17.137.229
device2.example.com        408               A           IN      192.0.2.50
device3.example.com        408               A           IN      192.0.2.11
device4.example.com        408               A           IN      10.209.194.131
device5.example.com        408               A           IN      10.10.4.202
device6.example.com        408               A           IN      10.16.0.11
device7.example.com        408               A           IN      192.0.2.100
a.l.example.com            408               A           IN      203.0.113.9
b.l.example.com            408               A           IN      198.51.100.9
maps.l.example.com         408               A           IN      198.51.100.104
c.l.example.com            408               A           IN      198.51.100.91
d.l.example.com            408               A           IN      198.51.100.89
e.l.example.com            408               A           IN      198.51.100.39
g.l.example.com            408               A           IN      198.51.100.69
device8.example.com.       408               A           IN      192.0.2.123
mail.example.com.          408               CNAME       IN      device8.example.com.

show system services dns-proxy cache <viewname V1>

content_copy zoom_out_map
user@host>show system services dns-proxy cache <viewname V1>
Hostname                  Time-to-live   Type        Class    IP address/Hostname
device1.example.com.      495            A           IN       198.51.100.123
mail.example.com.         495            CNAME       IN       device1.example.com.

Release Information

Command introduced in Junos OS Release 12.1X44-D10.

footer-navigation