[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"
104.215.148.63
13.77.161.179
40.76.4.15
40.112.72.205
40.113.200.201
ytti at r25.dllstx09.us.bb-re0> show route 13.77.161.179 | resolve

inet.0: 788394 destinations, 12285824 routes (786249 active, 1
holddown, 430224 hidden)
+ = Active Route, - = Last Active, * = Both

13.64.0.0/11       *[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



-- 
  ++ytti


More information about the juniper-nsp mailing list