http://dpmaster.deathmask.net/?game=openarenadpmaster.deathmask.net is a functional master server. You could query that. I dont think you necessarily need a master as the server list are sent to the main q3 masters so you could probably grab a list by using some filters. Here are a couple of queries I use... dunno if it'll help but I guess you are talking about pulling a list of ip's or directly connecting to the master. I used qstat and also gslist (cos I couldnt work out the filter stuff on qstat)
system("$QstatPath -timeout 120 -nh -q3m,71, dpmaster.deathmask.net:27950,- > $
{browser_cache}_71");
system("$QstatPath -timeout 120 -nh -q3m,70, dpmaster.deathmask.net:27950,- > $
{browser_cache}_70");
system("gslist -q -o 5 -n quake3 -f \"(protocol = '43' OR protocol = '68') AND (
gametype LIKE 'NoGhost') AND (Mod_Build LIKE '873') \" > ${browser_cache}_874");
system("gslist -q -o 5 -n quake3 -f \"(protocol = '43') AND (gametype LIKE 'NoGh
ost') AND (Mod_Build LIKE '880') \" > ${browser_cache}_877");