Jump to content

Hosts file


JohnOne
 Share

Recommended Posts

I cannot find any concrete info on this.

What is and is not valid in a windows (vista+) hosts file?

0.0.0.0 http://www.domain.com (I know for example that http:// is not valid)

  1. 0,0,0,0 www.domain.com
  2. 0.0.0.0 sub.domain.com
  3. 0.0.0.0 sub.sub.domain.com
  4. 0.0.0.0 domain_name.com
  5. 0.0.0.0 domain-mane.com
  6. 0.0.0.0 1domain.com
  7. 0.0.0.0 _domain.co
  8. 0.0.0.0 2

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

  • Administrators

I think 2-7 are all valid. The format is pretty much only hinted at on various MSDN pages though.

https://support.microsoft.com/en-us/kb/105997

Its protocol neutral, so you'd never have a http:// in there. It's just a DNS lookup for A records.

Edited by Jon
Link to comment
Share on other sites

so IPv6 and its shorthand are also options I guess that would be forced upon you rather than elective.

::1             localhost

Edited by boththose

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

Thanks, Jon.

so IPv6 and its shorthand are also options I guess that would be forced upon you rather than elective.

::1             localhost

Does this mean that only certain ipv6 representations are allowed?

Like 1234:00ab:0000:0000:0000:0abc:0012:0001 would have to be 1234:ab::abc:12:1 ?

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

Does this mean that only certain ipv6 representations are allowed?

I would guess anything that DNS can resolve is fair game

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

  • 3 weeks 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
 Share

×
×
  • Create New...