Multiplex dip switch input to microcontroller
You could also use an I2C (or SPI) input multiplexer to read as many DIP switches as you want with only 2 (or 3) wires. They'll add less than a buck to your BOM, and can be useful for other pin expansion needs, too.
I'm using this DIP package (also available in SOT and QFN)
There are others.