How to redirect custom urls to some local IPs with pfSense

guillaumepotier picture guillaumepotier · Apr 15, 2014 · Viewed 17k times · Source

I'm using a pfSense router and I'm desperately trying to configure a custom url (eg: myurl.ext) that should mapped by pfSense to a local server (eg: 192.168.0.x).

Like I do with my /etc/hosts and creating a line myurl.ext 192.168.0.x but on the pfSense level to do that for every device that should connect on the same network.

How could I achieve so? What is a name of what I am trying to do ? (DNS forwarding, Host override, dnsmasq, NAT....)

Answer

guillaumepotier picture guillaumepotier · Sep 13, 2014

Found that by myself some time ago.

I used "DNS forwarder" service, and added custom host overriding and redirected to a specific machine with its IP.

(used address=/domain.ext/192.168.0.42 in advanced config in DNS forwarding service)