Lets say I have a postgres table with the following data:
hostname | ip ---------+-------- a1 | 198.162.4.2 a1 | 198.162.7.5 a2 | 10.43.243.