0

I'm very novice on this so please answer if you can.

Is it possible to add ip address instead of url/domain to dnsmasq.conf file

Here is an example of what I tried.

bind-dynamic
bogus-priv
domain-needed
log-facility=-
local-ttl=60
address=/100.100.100.18/95.0.0.0

I've tested address=/google.com/95.0.0.0 and it works

*ip addresses are masked in this example

Simon
  • 101

1 Answers1

0

No, you can not remap one IP address to another via DNS.

If some application has just an IP address then it will not use DNS at all to try and connect (it may still do a reverse lookup for logging/security reasons, but not to connect).

You could do it via iptables and DNAT

hardillb
  • 1,552
  • 2
  • 12
  • 23