JohnOne Posted September 23, 2015 Posted September 23, 2015 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)0,0,0,0 www.domain.com0.0.0.0 sub.domain.com0.0.0.0 sub.sub.domain.com0.0.0.0 domain_name.com0.0.0.0 domain-mane.com0.0.0.0 1domain.com0.0.0.0 _domain.co0.0.0.0 2 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Administrators Jon Posted September 23, 2015 Administrators Posted September 23, 2015 (edited) 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/105997Its protocol neutral, so you'd never have a http:// in there. It's just a DNS lookup for A records. Edited September 23, 2015 by Jon JohnOne 1 Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
iamtheky Posted September 23, 2015 Posted September 23, 2015 (edited) so IPv6 and its shorthand are also options I guess that would be forced upon you rather than elective.::1 localhost Edited September 23, 2015 by boththose JohnOne 1 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__)
JohnOne Posted September 23, 2015 Author Posted September 23, 2015 Cheers men.My main concern is whether the www. is valid. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Administrators Jon Posted September 23, 2015 Administrators Posted September 23, 2015 Yes it's valid. www.autoitscript.com and autoitscript.com could have two different addresses. JohnOne 1 Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
JohnOne Posted September 23, 2015 Author Posted September 23, 2015 Thanks, Jon.so IPv6 and its shorthand are also options I guess that would be forced upon you rather than elective.::1 localhostDoes 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.
Administrators Jon Posted September 23, 2015 Administrators Posted September 23, 2015 By the way, I only said your example 1 was invalid because of "0,0,0,0" rather than "0.0.0.0". JohnOne 1 Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
JohnOne Posted September 23, 2015 Author Posted September 23, 2015 haha, sorry, that was fat finger syndrome. mLipok 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
iamtheky Posted September 23, 2015 Posted September 23, 2015 Does this mean that only certain ipv6 representations are allowed?I would guess anything that DNS can resolve is fair game JohnOne 1 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__)
SamratAtKolkata Posted September 27, 2015 Posted September 27, 2015 0,0,0,0 www.domain.com0.0.0.0 sub.domain.com0.0.0.0 sub.sub.domain.com0.0.0.0 domain_name.com0.0.0.0 domain-mane.com0.0.0.0 1domain.com0.0.0.0 _domain.co0.0.0.0 I think that only nos.1 thru 6 are the valid .... JohnOne 1
TouchOdeath Posted October 14, 2015 Posted October 14, 2015 (edited) 1 is not valid because of syntax. 0,0,0,0 instead of 0.0.0.0. If it had correct syntax it would be valid.Edit: I just realized I'm echoing Jon on this Edited October 14, 2015 by TouchOdeath
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now