-1

I want to ping a some website from my machine. But currently its failing to resolve

ubuntu % nslookup somewebsite.in                                                                                         
;; Got SERVFAIL reply from 169.254.169.254, trying next server
Server:         10.240.0.1
Address:        10.240.0.1#53

** server can't find somewebsite.in: SERVFAIL

I want to resolve it just a few times to run mtr tests without editing resolv.conf. How is it possible, if at all?

Ayush
  • 255
  • 1
  • 3
  • 10
  • 1
    Use `nslookup` or `host` from a different machine. Use this IP address with `mtr`. No need to resolve anything on the troubled machine itself. – Andrew Domaszek Dec 31 '15 at 06:32

1 Answers1

4

You could use dig and provide and alternate DNS server

dig @8.8.8.8 example.com

where @8.8.8.8 is the DNS server fr dig to use (in this case Google's public server)

Or you could use host and provide and alternate DNS server

host example.com 8.8.8.8
user9517
  • 115,471
  • 20
  • 215
  • 297