摘要 |
Method and arrangement for communication of data packets between a first device (D1) in a first local network (A) and a second device (D2) in a second local network (B). where private IP addresses are used for devices present in the first and second local networks. A first gateway (100) of the first network updates (1:1) a local name server record (100a) with a domain name and an IP address of a second gateway (102) of the second network, each gateway having a local DNS function. When an outgoing DNS request is received (1:2) from the first device referring to a hostname of the second device, the IP address of the second gateway is determined (1:3) from the local name server record based on a domain name in the hostname. A DNS request is then sent (1:4) to the second gateway using the determined IP address, to obtain a current private IP address of the second device in a DNS response (1:5) from the second gateway. A DNS response is then forwarded (1:8) to the first device, referring to the current private IP address of the second device.
|