Hacker Newsnew | past | comments | ask | show | jobs | submit | more waynesonfire's commentslogin

that seems very risky. it doesn't take much effort for the interviewer to spot a trickster, forfieting the interview. There is also no telling the second problem would be easier. I'd rather take my chances and hope i solve it or try to limp through with a hint.


That is exactly what the interviewer did. And yes solving the problem you know how to solve is the right move.


Cool story bro. I used a llm to help me name a variable.


I disagree. Sony can't bring back Walkmans because a Walkman won't generate the returns Sony demands. Furthermore, they refuse to open-source it so it stays hidden in a vault.

Plenty of people would lose money, break even, or God willing, make a tiny profit, diving into this problem. Regardless, it would make society a happier place.


s/can't/won't/


I can take the grocery delivery order that pays $4, but I won't because the returns for my time and gas are unacceptably low.


Capitalism will make you as happy as necessary to ensure that you continue buying. No more no less.


Yes, you're describing a fundemental feature of DNS.


¯\_(ツ)_/¯

Not quite done right.


> because it is using the public ip instead of the private one.

For this edge case, the issue is not with DNS; it's that the router is not configured to allow internal clients to access the network through the public IP, vis-à-vis hairpin routing.


> - Run two haproxy instances,

This made me consider my haproxy architecture. I use haproxy acl rules and the use_backend directive to enforce security policy and routing. It denies http requests based on source ip address per service (host header)

I think a good middle-ground is to use a single haproxy but two frontends; one binds to the public interface and one for private. haproxy is now no longer responsible for routing, the router is.


Yeah you could run a single instance with multiple frontends - but the way I'm currently running things the public haproxy instance doesn't have network connectivity to the private services, meaning there is no way I can misconfigure things and expose an internal service to the internet.


because when crashing on a motorcycle, it's only the cyclists face that's turned inside out and in such a way that it's not a burden on society to treat a vegetable.


Why? Because if you need to serve ads that are being blacklisted by DNS, you need something like this.


Oh come on. I guess it can be abused that way but its so cynical. First, i heavily doubt thats the intention here, and secondly, mmost ads are blocked at the rendering stage, rather than DNS. Especially since youtube broke DNS adblocking by serving ads and contect from the same domain


why isn't your mental model to use DNS?


How will that help your computer behind your NAT communicate with my computer behind my NAT? (I think you're still stuck on the blog post's very confusing opening, which does indeed make it sound like a terrible alternative to DNS, but it's actually something entirely different, for a very different purpose.)


DNS is piece of the required kit, and not the only hard part of the task.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: