JohnOne Posted September 23, 2015 Share 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. Link to comment Share on other sites More sharing options...
Administrators Jon Posted September 23, 2015 Administrators Share 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/ Link to comment Share on other sites More sharing options...
iamtheky Posted September 23, 2015 Share 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 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
JohnOne Posted September 23, 2015 Author Share 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. Link to comment Share on other sites More sharing options...
Administrators Jon Posted September 23, 2015 Administrators Share 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/ Link to comment Share on other sites More sharing options...
JohnOne Posted September 23, 2015 Author Share 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. Link to comment Share on other sites More sharing options...
Administrators Jon Posted September 23, 2015 Administrators Share 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/ Link to comment Share on other sites More sharing options...
JohnOne Posted September 23, 2015 Author Share 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. Link to comment Share on other sites More sharing options...
iamtheky Posted September 23, 2015 Share 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 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
SamratAtKolkata Posted September 27, 2015 Share 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 Link to comment Share on other sites More sharing options...
TouchOdeath Posted October 14, 2015 Share 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 Link to comment Share on other sites More sharing options...
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