Project

General

Profile

Issue #522

Mac OS X native application won't update network interface for DNS lookups

Added by Jiehan Zheng over 6 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Affected version:
5.1.1
Resolution:

Description

Before connecting:

jiehan@Jiehans-MacBook-Pro ~> scutil --dns
DNS configuration

resolver #1
  search domain[0] : lan.peddie.org
  nameserver[0] : 10.10.21.1
  nameserver[1] : 10.10.21.2
  nameserver[2] : 192.168.1.1
  if_index : 4 (en0)
  flags    : Request A records, Request AAAA records
  reach    : Reachable

...

DNS configuration (for scoped queries)

resolver #1
  search domain[0] : lan.peddie.org
  nameserver[0] : 10.10.21.1
  nameserver[1] : 10.10.21.2
  nameserver[2] : 192.168.1.1
  if_index : 4 (en0)
  flags    : Scoped, Request A records, Request AAAA records
  reach    : Reachable

And on my gateway I configured DNS servers 8.8.8.8 and 8.8.4.4 to be pushed to clients, and that seems to work just fine after connecting:

jiehan@Jiehans-MacBook-Pro ~> scutil --dns
DNS configuration

resolver #1
  search domain[0] : lan.peddie.org
  nameserver[0] : 8.8.4.4
  nameserver[1] : 8.8.8.8
  nameserver[2] : 10.10.21.1
  nameserver[3] : 10.10.21.2
  nameserver[4] : 192.168.1.1
  if_index : 4 (en0)
  flags    : Request A records, Request AAAA records

...

DNS configuration (for scoped queries)

resolver #1
  search domain[0] : lan.peddie.org
  nameserver[0] : 8.8.4.4
  nameserver[1] : 8.8.8.8
  nameserver[2] : 10.10.21.1
  nameserver[3] : 10.10.21.2
  nameserver[4] : 192.168.1.1
  if_index : 4 (en0)
  flags    : Scoped, Request A records, Request AAAA records

However, note that the interface did not change. It remains to be en0 while I want it to be utun1, making the DNS requests to go though the tunnel as well.

Any help is much appreciated!

History

#1 Updated by Christian Strauf over 6 years ago

I can confirm this issue on my OSX machine with 10.9.2.

#2 Updated by Jiehan Zheng almost 6 years ago

Anyone has any ideas on how to solve this?

Also available in: Atom PDF