dnsmasq not redirecting traffic

0

Problem: I am using PulseSecure VPN to connect to my workplace. After connecting i have to update the Hosts file /etc/hosts with my internal ip and host name to make it work else it is not accessible but the problem is that there are many domains called against 1 ip address and due to the limitation of hosts file that it not support wild card so i thought to use dnsmasq but it is also not working for me.

  1. I installed dnsmasq from home brew.
  2. Configured dnsmasq.conf file and add address like 'address=/apps.tjcocp.mydomain.com/10.50.20.118'
  3. Started dnsmasq
  4. Create resolver directory
  5. Added nameserver 10.50.20.118
  6. restarted dnsmasq also tried restarting MAC but nothing works.

when i run scutil --dns command it shows resolver:

resolver #8
  domain   : apps.tjcocp.mydomain.com
  nameserver[0] : 10.50.20.118
  flags    : Request A records, Request AAAA records
  reach    : 0x00000002 (Reachable)

when i try to browse the complete link(console-openshift-console.apps.tjcocp.mydomain.com) in browser it trys to resolve but failed by saying This site can’t be reached. If i add domin names in Hosts file then it will work but due to large domain volume it is very difficult to do so. Any help in this regard is highly appretiated.

I am using dnsmasq on Mac OS High Sierra.

dns
hosts
macos-big-sur
dnsmasq
pulsesecure
asked on Stack Overflow Apr 12, 2021 by Mohsin • edited Apr 13, 2021 by Mohsin

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0