News for hackers. Stuff that matters.
Re:Disabling old IP addresses by kojoru on Wednesday October 30, 2013 @10:53AM (#6640835)
Why do people add github's ip-addresses to their hosts file? What are the practical gains?
Re:Disabling old IP addresses by voidlogic on Wednesday October 30, 2013 @11:03AM (#6640889)
practical gains? None.

theroetical gains?

* They can try to pick a server near them (I don't think the servers are geo-dist)

* No external DNS lookup (silly, whats a one-time cached 150 ms between friends)

* Immune to DNS outage (lol, if your DNS is working other stuff is prob broke..)

* More resistant to someone pretending to be github (expect that github uses HTTPS..)

So really no point I can think of... but is sure makes you computer brittle to github changing anything!

Re:Disabling old IP addresses by moonie1 on Wednesday October 30, 2013 @11:24AM (#6640988)
One scenario: If you have a build server, say running jenkins, that consumes PRs from your private github repo and automatically runs them, someone from your team has to store an API key on it. Now imagine an attacker has gotten access to the network and is able to perform DNS cache poisoning.
Re:Disabling old IP addresses by zapu on Wednesday October 30, 2013 @11:38AM (#6641058)
Wouldn't the attacker also have to have github keys, cause it's all HTTPS or SSH?
Re:Disabling old IP addresses by crb on Wednesday October 30, 2013 @01:07PM (#6641598)
Contrived example: a Puppet script that configures a VM with DNS servers, which are not otherwise provided in the image or by DHCP. You need to get that script itself somehow.
Re:Disabling old IP addresses by RobAley on Wednesday October 30, 2013 @11:49AM (#6641103)
I know a couple of people who work on locked-down networks with firewalls that require permitted sites to be specified by IP address. If you're not confident that DNS will always return the same IP address (e.g. round-robin DNS servers) a common tactic is add a specific IP to the hosts file to make sure it always matches the rule in the firewall.
Re:Disabling old IP addresses by lambda on Wednesday October 30, 2013 @02:53PM (#6642393)
Sometimes, DNS will break for me (someone's DNS server will get hit by a DDOS, say), and I'll add the appropriate records to my /etc/hosts to work around it. I may not notice that I've done this until several years later when it stops working because their IP address changed.