Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

When pinging by hostname, returns weird ipv6? address?


Recommended Posts

Posted
When i ping my machines on my network by hostname it gets replies but resolves it to fe80::4b7:3785:3f57:fee2%18 for example rather than 192.168.1.56 address for example. Is it an ipv6 address and whether or not it is how can i fix this to give me the ip. Assume its a DNS issue somewhere along the line...
Posted (edited)

I found it happens quite often when ISPs play with their dns servers replacing your own with theirs etc.

 

If you want to cheat just type "ping hostname -4" and it'll force it to show IPv4 version.

 

Steve

 

e.g.

 


C:\Users\steve>ping steve

Pinging steve [fe80::f8c6:39d:****:****: from fe80::f8c6:39d:****:****: wit
h 32 bytes of data:
Reply from fe80::f8c6:39d:****:****: time<1ms
Reply from fe80::f8c6:39d:****:****: time<1ms
Reply from fe80::f8c6:39d:****:****: time<1ms
Reply from fe80::f8c6:39d:****:****: time<1ms




C:\Users\steve>ping steve -4

Pinging steve [192.168.1.106] with 32 bytes of data:
Reply from 192.168.1.106: bytes=32 time=8ms TTL=128
Reply from 192.168.1.106: bytes=32 time=3ms TTL=128
Reply from 192.168.1.106: bytes=32 time=4ms TTL=128
Reply from 192.168.1.106: bytes=32 time=2ms TTL=128

Edited by Steve21
Posted
ah figured it out, add '-4' after the ping hostname and returns ipv4 addresses. anyway i can get ti to return ipv4 by default without the -4?
Posted
ah figured it out, add '-4' after the ping hostname and returns ipv4 addresses. anyway i can get ti to return ipv4 by default without the -4?

 

It depends if it's set to default to it by whatever you're using as your default dns etc.

 

Generally if this is a once off occurance doing an "ipconfig /flushdns" will get rid of any cached address, but if it's defaulting to it it'll just get the same one again next time you look up an address.

 

Steve

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...