14 ms·
Tangential rant: I hate it when sites ask for your domain name (eg. for setting up hosting) and say that they want the "fully qualified domain name", but they d
by gruez 6y ago
Tangential rant: I hate it when sites ask for your domain name (eg. for setting up hosting) and say that they want the "fully qualified domain name", but they don't actually accept the FQDN. eg. they reject "www.example.com.", but accept "www.example.com" (without the trailing dot). But the FQDN by definition includes the trailing dot. https://en.wikipedia.org/wiki/Fully_qualified_domain_name https://en.wikipedia.org/wiki/Fully_qualified_domain_name
- code4tee 6y agoYes, it’s silly. See it all the time. Insist on FQDN and then aparently don’t understand what a FQDN actually is.
- oneplane 6y agoIt gets worse. Some think the FQDN is the domain zone. Some think it's with elements you find in an URL like the protocol or a part of a path. Humans. Ugh.
- dylan604 6y agoBut the accepted answer on SO that I copied the code that I have no idea what it does should work, right? There's no bogus accepted answers. The community would have fixed that, so it's trust worthy for me to use as is.
- vinnymac 6y agoI never knew this bothered other folks as well. There are dozens of us!
- riedel 6y agoYes!! For 19 yrs in this case: https://bugzilla.mozilla.org/show_bug.cgi?id=134402 https://bugzilla.mozilla.org/show_bug.cgi?id=134402
- labster 6y agoIt must be expensive for Mozilla to pay for all these old bugs to go to college.
- StavrosK 6y agoI never realized this but now it thoroughly bothers me as well, so +1.
- sedatk 6y agoDozens!
- cheschire 6y agoI get the meme, but let’s try to leave the memes on imgur please yeah? I would hate for this site to become another memetic point generator.
- Max_aaa 6y agoour numbers are growing.
- neals 6y agoI've never heard of this. When / how / why would you use the trailing dot? I checked my sites and they redirect to the non-trailing version. Is that bad?
- eropple 6y agoThe trailing dot tells your resolver to not attempt to use your local list of search domains.
- zaphar 6y agoThat is an effect. But the standard states that a fully qualified domain ends with the dot. The reason your resolver doesn't use the search domains is because the dot tells it that what you provided is the entire thing so there is no point in looking up the domain in a search list.
- eropple 6y agoSure. I was responding to a post that asked: > When / how / why would you use the trailing dot?
- wyattpeak 6y agoWhile you're certainly not wrong, the phrasing of the question suggests that the asker didn't know the history of the final dot, and was asking the way they did only because they didn't know what to ask, thinking its purpose was to provide some effect rather than being historically (and currently) the correct FQDM.
- adrianmonk 6y agoA trailing "." represents the root of the DNS namespace like a leading "/" represents the root of the Linux (or Unix, etc.) filesystem. The root has children like "com", "net", "uk", etc. There are DNS records at the root level. Try this command: host -t ANY . Also, just as Linux searches PATH (in order) when you run a command, the DNS resolver searches a path when you look up a host. (Usually the resolver path is specified by directives in /etc/resolv.conf.) Just as Linux will skip this process if you specify a leading "/", the DNS resolver will skip that process if you specify a trailing ".". It used to be pretty common to put your organization's domain in /etc/resolv.conf so that you can use the short version of a hostname. If your company is example.com and you have example.com in the DNS search path, you can type a command like "ping www", and it will do the same thing as "ping www.example.com". Most software still supports this, but it isn't used by that many people. (Some organizations don't put their domain in /etc/resolv.conf, and many users don't know they can abbreviate hostnames in this way.) You would typically use the trailing dot if you want to be sure the DNS lookup doesn't use the search path and checks only against the root of the DNS namespace. You also use the trailing dot in some data files for DNS servers. In many cases the trailing dot is not necessary, practically speaking, because the DNS resolver has special logic where if you give it a string that contains any dots (not just trailing), the search order is rearranged to try the root first instead of last. (In /etc/resolv.conf, this is controlled by the "ndots" option.) So if you look up "www.example.com", it will check for the existence of "www.example.com." before it checks for "www.example.com.example.com." instead of the other way around. Which is good because only the first is likely to exist. If you look up "www", it will check for "www.example.com." before it checks for "www.", which again is a good heuristic because again the first is the one that likely exists.
- taborj 6y agoHeck, I still find sites that don't like "nonstandard" TLDs in your email address. Try putting an address that's not .com, .net, etc and it throws an error.
- pmiller2 6y agoThe sin here isn't not accepting "nonstandard" TLDs. It's that validating an email address is extremely hard to do correctly, and that you often really want to know if the person entering it has access to the address. The only way to do that is to accept pretty much anything that has an @ sign in the middle of some other characters, and then attempt to send email to that address with a clickback link. The thing that really annoys me though isn't email address handling. It's credit card number and social security number entry fields. For credit cards, the number of times you should have to specify which type of card you're entering is literally zero. All credit cards of the same type (e.g. Visa) begin with the same number sequence. Visa always starts with 4, so, if I type 4 as the first digit, just call it a Visa card. Do the Luhn checksum validation to make sure it's a valid number and that I probably entered it correctly, and try to run the charge. If it fails, then provide an appropriate error message. For SSN fields, the thing that annoys me is that there are basically 2 common ways of entering the number: XXX-XX-XXXX and XXXXXXXXX. So many sites and apps only accept one of the two and will complain about the other. It's ridiculous, because the presence or absence of the dashes literally has no bearing on the validity of the number. Just let me enter it the way I want.
- exprez135 6y agoYes! And it really is so easy to implement all of this validation and checking without it being too complicated. How is parsing some numbers and running a few math equations the source of so much trouble?
- pmiller2 6y agoThe only two explanations I can think of are ignorance and laziness. Ignorance doesn't really fly, IMO, because when you have an input field, you should be at least thinking about validating said input. From there, the simplest of google searches will lead you to the checksum algorithm. Laziness seems most likely for that reason, but, on top of that, it's not like you even have to go to Stack Overflow to find an implementation. Wikipedia has one! Wiki. Pedia. Just take my input, run the checksum, check that my expiration date isn't in the past and that the CVV value is the correct number of digits, and just run the charge. It's not like if I mistype my MasterCard's first digit as a 4 that it's going to work anyway. Just do the checks that are feasible, and then just run the charge.
- loeg 6y agoIf you think that's bad, you should see what those folks do to "email address" parsers.
- inopinatus 6y agoMy pet peeve is case folding the LHS (or worse, downcasing) despite the standard defining it as case sensitive.
- Mayzie 6y agoLater revisions to the standard made it case insensitive as that was common practice IIRC.
- OJFord 6y agoThat's not correct, it's up to the provider, the owner of the domain. (I'm not going to say MAY because I can't remember the exact wording, but I did have cause to look it up recently.)
- inopinatus 6y agoThey did no such thing.
- pizza 6y agoInterestingly, if I go to news.ycombinator.com., I get the logged out version of the site. Probably because my browser treats it as a different site entirely
- jakub_g 6y agoIt's technically a different domain. HN cookie is created for a domain without dot at the end, so there's no match when you open a domain with the dot. In the same way, if a website does not do www->nowww / nowww->www redirect (example.com / www.example.com), you might have www version be logged in and nowww version be logged out or vice versa (depending how exactly it creates its cookies).
- surround 6y ago> Once it was decided that domain names should be arranged hierarchically, it became necessary to decide what sits at the root of that hierarchy. That root is traditionally signified with a single ‘.’. In fact, ending all of your domain names with a ‘.’ is semantically correct, and will absolutely work in your web browser: google.com. - The History of the URL, https://blog.cloudflare.com/the-history-of-the-url/ https://blog.cloudflare.com/the-history-of-the-url/
- jackcosgrove 6y agoBut apparently won't work with the HN hyperlink regex.
- StavrosK 6y agoImagine how much easier ending sentences with hyperlinks would be.
- amatecha 6y agoReminds me of sites not accepting "+" in an email address, even though it's a completely valid character to use before the "@".
- u801e 6y agoSome websites accept them when creating an account, but not when trying to log in with that account.
- rlayton2 6y agoYeah, I've had this a few times trying to register accounts for my kids at MYNAME+KIDSNAME@gmail.com
- bad_user 6y agoAlso some of those same websites allow you to change your email address and then lock you out.
- hattar 6y agoLooking at you, Alamo Drafthouse
- firethief 6y agoI encounter that a lot with passwords. Amazing how many websites break in weird ways when your password manager throws in random symbols...
- frickinLasers 6y agoEven if they have validation built in when you are signing up! How is it possible that they have taken steps to ensure passwords meet their stringent criteria, but the user still ends up unable to log in? Most recently, I've experienced this problem with two of the big three credit bureaus.
- Tagbert 6y ago
- fomine3 6y agoThe FQDN syntax is what we learn from editing DNS records.
- derefr 6y agoIt bothers me that a “fully-qualified domain name” is still relative to some implicit DNS network class. There’s no syntax for specifying whether you mean an Internet domain, or some other kind. Because of this, there’s no way to have a URL that resolves from an Internet-relative origin to, say, a Chaosnet-relative origin. Lame :(
- dolmen 6y agoFrom the RFC about URLs: https://tools.ietf.org/html/rfc3986#section-3.2.2 https://tools.ietf.org/html/rfc3986#section-3.2.2 > The presence of a host subcomponent within a URI does not imply that the scheme requires access to the given host on the Internet. In many cases, the host syntax is used only for the sake of reusing the existing registration process created and deployed for DNS, thus obtaining a globally unique name without the cost of deploying another registry. However, such use comes with its own costs: domain name ownership may change over time for reasons not anticipated by the URI producer. In other cases, the data within the host component identifies a registered name that has nothing to do with an Internet host. We use the name "host" for the ABNF rule because that is its most common purpose, not its only purpose. So, the fact that the host part of http(s) URLs are resolved using DNS is not a limitation of the URL spec. Instead that's an implementation restriction.