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.
dnsmasq from home brew.dnsmasqdnsmasq 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.
User contributions licensed under CC BY-SA 3.0