Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

DNS should use search domains by default? #7

Open
ioquatix opened this issue Sep 21, 2015 · 3 comments
Open

DNS should use search domains by default? #7

ioquatix opened this issue Sep 21, 2015 · 3 comments

Comments

@ioquatix
Copy link
Contributor

Following from celluloid/celluloid-io#146 (comment)

  • If an instance of Celluloid::DNS::Resolver is created, do we consult resolve.conf for every request?
  • If a user specifies a search prefix, do we consult resolve.conf at all?
  • How does resolv.conf work on Mac OS X and is it compatible with Linux? What about Windows?
  • Does it make sense to use a native implementation of DNS for system-level DNS resolution, i.e. should we simply have Celluloid::DNS::Resolver defer to the OS supplied implementation?
@Asmod4n
Copy link
Contributor

Asmod4n commented Sep 21, 2015

Ruby has a class which deals which nameserver, search etc from resolv.conf and the Windows Registry: https://github.com/ruby/ruby/blob/v2_2_3/lib/resolv.rb#L959

@Asmod4n
Copy link
Contributor

Asmod4n commented Sep 21, 2015

On OS X you also have to look inside the /etc/resolver directory: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/resolver.5.html

@ioquatix
Copy link
Contributor Author

Yes, I was thinking that on Mac OS X, the resolv.rb code wouldn't work correctly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants