News for hackers. Stuff that matters.
Re:Benchmarking DNS response times of TLDs by frereubu on Friday January 10, 2020 @06:15AM (#22010172)
We have a client who insisted on using a .house domain. It kept triggering alerts on our uptime monitoring service with DNS errors, so we had to reduce the sensitivity of that specific test.

We also had a client who had to change their TLD from .healthcare to .org.uk because (a) people were confused because they didn't understand that there are all these new TLDs and kept adding .co.uk, .org etc and (b) some NHS systems in the UK (one of their target audiences) refused to accept emails that finished with .healthcare, saying that it was a malformed email address.

I think in the vast majority of cases these new TLDs aren't worth it until the general population's understanding catches up. I still advise clients to use www rather than a plain domain name for websites, because I've come across a significant minority of people who need that "www" as a clear signal that it's a website.

Re:Benchmarking DNS response times of TLDs by edent on Friday January 10, 2020 @08:30AM (#22010774)
I'm interested in the NHS systems which didn't recognise the newer TLDs. I work for NHSX - could you drop me an email with the details? My contact details are in my profile. Thanks!
Re:Benchmarking DNS response times of TLDs by frereubu on Friday January 10, 2020 @09:11AM (#22010999)
Sure - I'll drop them an email to see if they can remember. They changed towards the middle of last year, and it was reported to them by NHS staff rather than them experiencing it first-hand, so their memories may be a bit hazy.
Re:Benchmarking DNS response times of TLDs by uasm on Friday January 10, 2020 @10:15AM (#22011487)
Friendly reminder: you don't really know whether this person truly works for the NHS, as they claim. Don't divulge sensitive information to random people.
Re:Benchmarking DNS response times of TLDs by ddeck on Friday January 10, 2020 @10:43AM (#22011724)
Perhaps in general, but in this case the email he's pointing to is an nhs.uk address.
Re:Benchmarking DNS response times of TLDs by Eikon on Friday January 10, 2020 @06:26AM (#22010228)
> I still advise clients to use www rather than a plain domain name for websites

And you should. Not only can’t you put CNAME at the zone APEX without doing nasty tricks but not doing so is also a security risk when dealing with cookies.

Re:Benchmarking DNS response times of TLDs by SiVal on Friday January 10, 2020 @06:53AM (#22010336)
Could you (or someone) explain this? (I'm not arguing, I'm interested.)
Re:Benchmarking DNS response times of TLDs by johannes1234321 on Friday January 10, 2020 @07:57AM (#22010599)
There is lots on the DNS already. For the security argument: Consider you run on `example.com` and at a later stage add `[blog|forum|support|...].example.com` suddenly cookies from `example.com` might leak to those Subdomains. If you put cookies on `www.example.com` they won't leak to those.
Re:Benchmarking DNS response times of TLDs by Avamander on Friday January 10, 2020 @10:09AM (#22011441)
Not if you set the Domain attribute of the cookie properly, this is a poor software problem, not second-level domain problem.
Re:Benchmarking DNS response times of TLDs by johannes1234321 on Friday January 10, 2020 @11:01AM (#22011859)
True, but simple mitigations can be powerful ...

Sidenote: If leaking cookies to your own subdomains is a risk, one might also have other problems already. Point is: I explained the potential risk. Evaluating one has to do oneself

Re:Benchmarking DNS response times of TLDs by Eikon on Friday January 10, 2020 @07:02AM (#22010377)
You can only put CNAME records at the zone APEX if there is no other records kinds as a CNAME is supposed to be a synonymous.

If you had records such as:

@ IN A 127.0.0.1

@ IN CNAME example.org.

The server could not answer anything sensible as you now just introduced an ambiguity.

The "nasty tricks" I was referring to is basically records such as ALIAS that you may find at some providers. The way they work is roughly:

- Given a record `@ IN ALIAS example.org.`.

- Pull records at `example.org` (maybe with an AXFR request but usually just individual records).

- Merge our domain APEX with `example.org` records we just pulled.

- Reply to requester with the merged zone, discarding the ALIAS record.

Regarding cookies, the issue is that they are passed to subdomains so cookies that you set for `example.org` are also accessible from `*.example.org`.

Re:Benchmarking DNS response times of TLDs by 867-5309 on Friday January 10, 2020 @07:36AM (#22010502)
unless I am hosting separate sites/IPs on subdomains, or have a complex cookie situation, I think the www. prefix seems vestigial/legacy and completely unneeded. I am actually in the opposite camp of not including it at all and redirecting to non-www. it sounds awfully ambiguous in speech ("double-u double-u double-u dot", "all the double-us dot", "dub dub dub dot", etc.) and most times multiplies the syllabic length of a "catchy" address. I even had an older client who said "stop" instead of "dot", and another who used @www. in an email address. I also think it looks silly and unprofessional on business cards, on the side of vans, etc., especially when http:// and/or a trailing fowardslash is also included cringe. if it MUST exist, DNS does not always have to be involved, it could just be a simple http 301 forward or vhost config. we don't add :80 or :443 to the end of a web address. let the browser handle all that.
Re:Benchmarking DNS response times of TLDs by gregmac on Friday January 10, 2020 @08:48AM (#22010863)
It's worth making it exist and doing a 301 redirect. There's some people that will still type it, and others that will link it without checking, and they'll just think your site is broken. You're fighting against the grain for what's essentially a couple lines of config.

It's not much different than using TLS for everything, but still handling and redirecting http:// traffic (also doing a 301 redirect).

Re:Benchmarking DNS response times of TLDs by toast0 on Friday January 10, 2020 @11:50AM (#22012289)
It's also useful to set hsts for the whole domain.

I'm opinionated enough to say if you type http://example.org/foo, I'm just going to redirect that to https://www.example.org/ but reasonable people could disagree (especially since Chrome has been going back and forth on displaying the actual URL and something that's vaguely similar to it)

Re:Benchmarking DNS response times of TLDs by otterlicious on Saturday January 11, 2020 @03:26PM (#22022064)
That would just be a giant middle finger to people who manually type URLs.
Re:Benchmarking DNS response times of TLDs by slig on Friday January 10, 2020 @08:14AM (#22010689)
Now that Chrome is hiding the "www." it's going to look more and more legacy. I still use the "www." and probably will continue using, but for business cards and things like that I always use the bare domain.
Re:Benchmarking DNS response times of TLDs by svacko on Friday January 10, 2020 @09:40AM (#22011196)
The article https://bjornjohansen.no/www-or-not (2017) persuaded me to still use www, however, opinions vary:

* https://www.yes-www.org/why-use-www/

* https://dropwww.com/why

Re:Benchmarking DNS response times of TLDs by frereubu on Friday January 10, 2020 @08:56AM (#22010904)
It depends on your audience, but setting it up just so you don't cringe could well be alienating a bunch of your potential user base. Seems like a strange trade-off.

I think people here often forget that there's a mass of people out there who are nowhere near as technically literate and wouldn't have the faintest idea of what "DNS" stands for.

Re:Benchmarking DNS response times of TLDs by cbg0 on Friday January 10, 2020 @07:18AM (#22010435)
What's so "nasty" about using ALIAS?

> Regarding cookies, the issue is that they are passed to subdomains so cookies that you set for `example.org` are also accessible from `*.example.org`.

This is only true for cookies that are not set as `HostOnly` as far as I'm aware.

Re:Benchmarking DNS response times of TLDs by belorn on Friday January 10, 2020 @08:09AM (#22010661)
> What's so "nasty" about using ALIAS?

The DNS server provide implements this differently, but the two "common" methods I know of is either aggressive caching or caching on request. In both cases the server becomes the client, breaks geoip, and create complexity where errors can easily slip in.

Re:Benchmarking DNS response times of TLDs by chrisweekly on Friday January 10, 2020 @07:44AM (#22010544)
Re: "... only true for cookies that are not set as 'HostOnly'"

Technically, you're right -- but that implies a commitment to vigilance in setting that attribute on every instance of every cookie across every page or endpoint on your apex domain. Further, if you ever want to support some use of a subdomain, you have to deal with the ability of any page therein to set cookies on ".example.com". And when you inevitably miss any instance of any of these, you're unlikely to notice, because everything will still function normally. So in practice, using the apex paints you into a corner and makes the domain less useful.

There's also the issue of DDOS attacks and related problems, for which the fastest and simplest mitigation is updating DNS entries for your CNAME(s). Why take that option off the table?

Re:Benchmarking DNS response times of TLDs by Eikon on Friday January 10, 2020 @07:22AM (#22010450)
> What's so "nasty" about using ALIAS?

It's a not standard and therefore, is not a generally applicable solution.

When something not standard becomes common practice and is expected, here comes the pain.

Re:Benchmarking DNS response times of TLDs by cbg0 on Friday January 10, 2020 @07:56AM (#22010598)
> When something not standard becomes common practice and is expected, here comes the pain.

I think that's the case with most popular features before they become a standard. Personally, I've used ALIAS on AWS without a hitch for years.

Re:Benchmarking DNS response times of TLDs by SteveNuts on Friday January 10, 2020 @07:58AM (#22010603)
The standard should be amended for the modern web then. AWS's (and I'm sure many other's) implementation of this for their various load balancing, CDN services, etc. are critical to the health of the web now.
Re:Benchmarking DNS response times of TLDs by XelNika on Friday January 10, 2020 @07:47AM (#22010562)
I don't really see the issue. It changes nothing from the DNS client's perspective.
Re:Benchmarking DNS response times of TLDs by toast0 on Friday January 10, 2020 @11:58AM (#22012371)
From the DNS client's perspective, there is a positive and a negative.

Positive: since the server with an alias record actually returns an A/AAAA, a client doesn't have to contact any more servers to get the results.

Negative: the servers for the CNAME target may be faster, relevant if the name is used beyond the A/AAAA TTL but sooner than the TTL would be set for a CNAME); or the servers for the target may be providing much finer targeting than is possibly by proxying.

Re:Benchmarking DNS response times of TLDs by omnimus on Friday January 10, 2020 @03:36PM (#22015239)
Noob question: Lets say i am fine with all going to www. or other subdomains mainly because i like using cname to point to other server. I still need to set some Apex record no? if A is blank i dont have anything to do the redirect to www. or what i am missing? Thank you!
Re:Benchmarking DNS response times of TLDs by jedberg on Friday January 10, 2020 @05:06PM (#22016127)
Yes, you still need an apex record with an actual IP address. And ideally something listening at that IP address that will redirect to the www address on both http and https.
Re:Benchmarking DNS response times of TLDs by jbverschoor on Friday January 10, 2020 @07:38AM (#22010512)
ALIAS is not a valid record.
Re:Benchmarking DNS response times of TLDs by faeyanpiraat on Friday January 10, 2020 @06:59AM (#22010359)
I'm interested in this aswell.
Re:Benchmarking DNS response times of TLDs by dfawcus on Friday January 10, 2020 @08:39AM (#22010822)
So maybe we should define a DNS SRV record (https://tools.ietf.org/html/rfc2782) for WWW, and work to get the browsers using it?

e.g. _http._tcp.example.com and _https._tcp.example.com

It seems there was such a draft: https://tools.ietf.org/html/draft-andrews-http-srv-02

Re:Benchmarking DNS response times of TLDs by teddyh on Friday January 10, 2020 @12:30PM (#22012749)
SRV support seems to have been (unfairly, I think) rejected by HTTP vendors and standard bodies. There is a new standard, however, in the works:

https://tools.ietf.org/html/draft-nygren-dnsop-svcb-httpssvc...

This one might have a larger chance of being accepted, since it provides some things which HTTP standard bodies and HTTP client vendors want. It doesn’t (at this stage, anyway) provide for the load-balancing “weight” field from the SRV record, but it does support MX-style priority numbers, and also port numbers. Very interesting, to say the least.

Re:Benchmarking DNS response times of TLDs by JdeBP on Friday January 10, 2020 @11:27AM (#22012088)
Re:Benchmarking DNS response times of TLDs by svacko on Friday January 10, 2020 @09:36AM (#22011162)
one of my DNS hosting providers supports ANAME record to provide CNAME record for apex/naked domain https://tools.ietf.org/id/draft-ietf-dnsop-aname-01.html - found just today trying to configure static website hosting on S3 & Cloudfront
Re:Benchmarking DNS response times of TLDs by chrisweekly on Friday January 10, 2020 @07:28AM (#22010470)
Use of CNAMES also leaves the door open to simple DDOS mitigation.
Re:Benchmarking DNS response times of TLDs by pjc50 on Friday January 10, 2020 @06:42AM (#22010295)
Even .org.uk isn't foolproof; I've had mine for 20 years and still occasionally get people leaving off the .uk. The most recent suspect is Google Android keyboard will autocomplete my email address .. and leave off the ".uk"!
Re:Benchmarking DNS response times of TLDs by pidg on Friday January 10, 2020 @06:44AM (#22010308)
As the former holder of yahoo.org.uk, I can also confirm that ordinary people don't understand the difference between .org.uk and .co.uk.
Re:Benchmarking DNS response times of TLDs by omnimus on Friday January 10, 2020 @03:30PM (#22015165)
why is that .co.uk anyway? like other countries have .de .nl.. at certain point i thought its smebody owning co.or reselling subdomains.
Re:Benchmarking DNS response times of TLDs by Symbiote on Friday January 10, 2020 @04:06PM (#22015536)
Like many countries, .UK had a second-level set of categories for different types of organization. There's also .net.uk, .sch.uk, .ac.uk, .gov.uk, .nhs.uk, .mod.uk, .police.uk, ...

.AU, .NZ, .JP, .MX, .BR, .TH... it's not uncommon.

Re:Benchmarking DNS response times of TLDs by mr__y on Friday January 10, 2020 @07:13AM (#22010419)
>some NHS systems in the UK (one of their target audiences) refused to accept emails that finished with .healthcare

not suprising at all, I've seen e-mail address validation code that (among other things) used a fixed list of TLDs. I could imagine some spam filters doing a similiar thing.

Re:Benchmarking DNS response times of TLDs by cuspycode on Friday January 10, 2020 @02:03PM (#22014075)
I've had e.g. [email protected] rejected by one of the world's top-3 shipping/courier services. This was on a .com domain registered many years ago, so it wasn't a TLD issue. And the subdomain and its MX was also established long ago. But their software finally did accept the mail address after I removed the "mysub." part. Crazy!
Re:Benchmarking DNS response times of TLDs by takeda on Friday January 10, 2020 @01:12PM (#22013237)
I know there was someone in charge of ccTLD, and used just that TLD for personal e-mail (i.e. no dots). That would throw off a lot of validators, but I suppose it also was good to avoid all kinds of robots that were scanning webpages for emails.
Re:Benchmarking DNS response times of TLDs by mytailorisrich on Friday January 10, 2020 @07:31AM (#22010483)
And I've seen validation that assumed that TLDs were 2 or 3 characters only.
Re:Benchmarking DNS response times of TLDs by mr__y on Friday January 10, 2020 @08:13AM (#22010679)
Oh yes, a simple [a-z]{2,3} in regexp. I'm pretty sure I've seen exactly this on many different occasions
Re:Benchmarking DNS response times of TLDs by unilynx on Friday January 10, 2020 @10:11AM (#22011454)
Or their 'modern' version: ([a-z]{2,3})|info)
Re:Benchmarking DNS response times of TLDs by Karunamon on Friday January 10, 2020 @11:07AM (#22011913)
There are many broken web forms out there that didn't support perfectly legitimate ccTLDs, and that's before the floodgates were thrown open. There's lots of silly ideas out there on how to validate an email address, and almost nobody uses the right one.

(To wit: Deliver to it, and if it doesn't send, that's the user's problem)

Re:Benchmarking DNS response times of TLDs by Faark on Friday January 10, 2020 @05:28PM (#22016300)
> I've come across a significant minority of people who need that "www" as a clear signal that it's a website

Now more than ever. Before they opened the tld floodgates you could be pretty sure [word].[commonTld] could be put into your browser.

So yeah, guess we have to keep using those 4 letters or come up with alternative solutions. Funniest I've seen was an ad using http:// instead.

Re:Benchmarking DNS response times of TLDs by syshum on Friday January 10, 2020 @06:30AM (#22010241)
as with all things, this depends on your target audience.

If you seeking a general population for something like healthcare, finance, or any other ever day task then yes stick to the old school TLD's