[j-nsp] Silly question for a Friday

Saku Ytti saku at ytti.fi
Sat Jun 8 01:45:30 EDT 2019

Hey Chris,

> I can "show route <hostname>" and JUNOS will do a DNS lookup and show
> the route for the resolved IP.  Is there any way to control that for
> hosts with multiple IPs, especially IPv6?

Not that I am aware of. But in your mind, how would this ideally work,
how do you control which A record is returned without communicating
the A record? Or would you just have it print route for all of them?
Certainly you could write python op script to do that.

ytti at r25.dllstx09.us.bb-re0> start shell command "dig +short microsoft.com A"
ytti at r25.dllstx09.us.bb-re0> show route | resolve

inet.0: 788394 destinations, 12285824 routes (786249 active, 1
holddown, 430224 hidden)
+ = Active Route, - = Last Active, * = Both       *[BGP/170] 3w3d 18:11:21, MED 4294967294, localpref
100, from r10.dllstx09.us.bb.gin.ntt.net
                      AS path: 174 8075 I, validation-state: unverified
                    > to ae-13.r10.dllstx09.us.bb.gin.ntt.net via ae2.0


More information about the juniper-nsp mailing list