The DNS system has a record type called SRV record that can be used in a similar fashion as the MX record can be used for SMTP: It makes it possible to give a server for a certain service. Please be so kind and implement support for SRV records in w3m. As an example, you could try to webpage mc.fuz.su. It has a SRV record pointing to fuz.su:
_http._tcp.mc.fuz.su IN SRV 100 0 80 fuz.su.