# How to get IPs/hostname from clients from different network(s)?

**URL:** <https://discourse.pi-hole.net/t/how-to-get-ips-hostname-from-clients-from-different-network-s/43577>\
**Category:** Community Help\
**Created:** [January 25, 2021, 3:57pm UTC](https://discourse.pi-hole.net/t/how-to-get-ips-hostname-from-clients-from-different-network-s/43577 "2021-01-25T15:57:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [January 25, 2021, 6:48pm UTC](https://discourse.pi-hole.net/t/how-to-get-ips-hostname-from-clients-from-different-network-s/43577/2 "2021-01-25T18:48:07Z")

</div>

What do you use as router? You might be able to use EDNS(O)

> [@Support for add-subnet option from dnsmasq (ECS/EDNS0 Client Subnet)](https://discourse.pi-hole.net/t/support-for-add-subnet-option-from-dnsmasq-ecs-edns0-client-subnet/35940/1):
>
> The ask: Add support within FTLDNS for parsing the IP address/subnet passed from another dnsmasq client via add-subnet=32,128 and potentially add-mac. Asking that FTLDNS support parsing of ECS (EDNS0 Client Subnet) data from an inbound query on the requesting side. The reasoning: I have an OpenWrt router running dnsmasq for my three client subnets. It forwards queries to my Pi-hole server, which is running on a separate VM. Traditionally, the recommendation by many in the Pi-hole community is …

In general, there might be not much chance with this setup, as all queries from the different subnets appear for pihole as if they would come from 0.13-forwarding-IP (which they are, from an IP view).

You might need to change your setup and assign IPs for each subnet to your Pi-hole device. Something like  
[https://ostechnix.com/how-to-assign-multiple-ip-addresses-to-single-network-card-in-linux/](https://ostechnix.com/how-to-assign-multiple-ip-addresses-to-single-network-card-in-linux/)

---

_[View the full topic](https://discourse.pi-hole.net/t/how-to-get-ips-hostname-from-clients-from-different-network-s/43577)._
