Click here to Skip to main content
15,887,267 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
JokeRe: Hosts File Nightmare Pin
abmv14-Sep-23 5:02
professionalabmv14-Sep-23 5:02 
GeneralRe: Hosts File Nightmare PinPopular
dandy7214-Sep-23 6:13
dandy7214-Sep-23 6:13 
GeneralRe: Hosts File Nightmare Pin
snorkie14-Sep-23 6:14
professionalsnorkie14-Sep-23 6:14 
GeneralRe: Hosts File Nightmare Pin
dandy7214-Sep-23 7:15
dandy7214-Sep-23 7:15 
GeneralRe: Hosts File Nightmare Pin
Clumpco14-Sep-23 20:12
Clumpco14-Sep-23 20:12 
GeneralRe: Hosts File Nightmare Pin
Eddy Vluggen14-Sep-23 14:43
professionalEddy Vluggen14-Sep-23 14:43 
GeneralRe: Hosts File Nightmare Pin
Keefer S15-Sep-23 2:25
Keefer S15-Sep-23 2:25 
GeneralRe: Hosts File Nightmare Pin
Eddy Vluggen16-Sep-23 9:29
professionalEddy Vluggen16-Sep-23 9:29 
Can rewrite it in C# in a bit, it's not a piece of art or complex. Might be worth an article. Basically, you send a header to the MVPS host file, asking if there's a change to the file since that date. If it is, download and put it somewhere (I used SQLite, to propagate across my linked pc's). Add your own domains to it, merging two text files. Then overwrite your hostfile.

Could prolly be done from a powershell script, but for me it was quicker in C# because I have more familiarity with C#.

The PI Hole might work better, especially for a network, and your host file should not be huge. I like it because it works nicely on laptops where the PI Hole isn't always available. But basically it is download and merge, and the only nice thing about it is that it asks the MVPS host file if it changed, and if it didn't it won't download again. So, not a huge project, but I find it valuable for the moments that all other stuff fails.
Bastard Programmer from Hell Suspicious | :suss:
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

GeneralRe: Hosts File Nightmare Pin
David Crow15-Sep-23 3:00
David Crow15-Sep-23 3:00 
GeneralRe: Hosts File Nightmare Pin
Mark Starr15-Sep-23 4:00
professionalMark Starr15-Sep-23 4:00 
GeneralRe: Hosts File Nightmare Pin
Jeremy Falcon15-Sep-23 4:26
professionalJeremy Falcon15-Sep-23 4:26 
GeneralRe: Hosts File Nightmare Pin
Peter Adam15-Sep-23 8:57
professionalPeter Adam15-Sep-23 8:57 
JokeI got Shakespeare's chewed pencil... Pin
Sander Rossel14-Sep-23 2:18
professionalSander Rossel14-Sep-23 2:18 
GeneralRe: I got Shakespeare's chewed pencil... Pin
TNCaver14-Sep-23 3:25
TNCaver14-Sep-23 3:25 
JokeRe: I got Shakespeare's chewed pencil... Pin
PIEBALDconsult14-Sep-23 7:56
mvePIEBALDconsult14-Sep-23 7:56 
GeneralRe: I got Shakespeare's chewed pencil... Pin
CodeWraith14-Sep-23 22:37
CodeWraith14-Sep-23 22:37 
GeneralRe: I got Shakespeare's chewed pencil... Pin
jochance15-Sep-23 4:31
jochance15-Sep-23 4:31 
JokeInitialization in Modern C++ Pin
megaadam13-Sep-23 23:32
professionalmegaadam13-Sep-23 23:32 
GeneralRe: Initialization in Modern C++ Pin
Marc Clifton14-Sep-23 1:29
mvaMarc Clifton14-Sep-23 1:29 
GeneralRe: Initialization in Modern C++ Pin
OriginalGriff14-Sep-23 3:09
mveOriginalGriff14-Sep-23 3:09 
GeneralRe: Initialization in Modern C++ Pin
dandy7214-Sep-23 3:41
dandy7214-Sep-23 3:41 
GeneralWSO CCC OTD 14-Sep-2023 Pin
DerekT-P13-Sep-23 22:03
professionalDerekT-P13-Sep-23 22:03 
GeneralRe: WSO CCC OTD 14-Sep-2023 Pin
OriginalGriff13-Sep-23 22:08
mveOriginalGriff13-Sep-23 22:08 
GeneralRe: WSO CCC OTD 14-Sep-2023 Pin
Greg Utas14-Sep-23 1:17
professionalGreg Utas14-Sep-23 1:17 
GeneralRe: WSO CCC OTD 14-Sep-2023 Pin
pkfox14-Sep-23 1:35
professionalpkfox14-Sep-23 1:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.