SRV DNS records

Hi all,

can somebody please help me to create 2 SRV records


I have 2 web services running on 10.10.0.10:32400 and 10.10.0.10:20020


I would like them to be resolved at site1.lan for 10.10.0.10:32400 and site2.lan for 10.10.0.10:20020


do I create an A record for same address since the A dns record doesn’t support ports


what do I do next ?

thank you

In the srv you don’t put an IP but the domain name of the server serving both ports.

srv site1.lan 32400 → A siteserver.lan 10.10.10.10
srv site2.lan 20020 → A siteserver.lan 10.10.10.10

thank you msatter, may you please elaborate on SRV I am having some issues setting them up still

does it mean that target is siteserver.lan and name is site1.lan?

thank you

I have never used that but a search on the internet gave the general workings of a SRV record.

Yes, if you use the srv target.

I have just tested it but I did not manage to obtain anything other than NXDOMAIN from the internal domain server. Sorry.

yes, same here couldn’t figure it out yet how to actually split the domains per ports