Score:0

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

bf flag

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

Score:0
cn flag

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

Simon avatar
bf flag
Can you please provide an example of how to do it with iptables
cn flag
Why not have a go first and ask a new question if you get stuck
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.