1

If I clear DNS cache and remove DNS server information, how can I ping to a specific site?

  • Without knowing the IP address? – Martin Rosenau Oct 7 '18 at 6:51
  • 1
    Just ping the IP address. If you don't know the IP address you can't do it without DNS. – Zac67 Oct 7 '18 at 7:11
  • I know ip address and domain name, but if I have to use domain name without dns. can I? – baeharam Oct 7 '18 at 10:36
  • Unfortunately, questions about protocols above OSI layer-4 are explicitly off-topic here, as are questions about host configurations. You could try to ask this question on Server Fault for a business network, or on Super User for a personal network. – Ron Maupin Oct 7 '18 at 14:27
1

Use the entry in the hosts file for your operating system.

Windows:

c:\Windows\System32\drivers\etc\hosts

Linux:

/etc/hosts

Add a record like:

192.168.0.1 my.domain.sample
| improve this answer | |
  • Still, you need to know the IP address. – Zac67 Oct 7 '18 at 13:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.